From c2d1f4696ae6feabdcd10158848d16c46b935ec7 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 24 Nov 2020 07:11:26 -0800 Subject: [PATCH] build: stop tracking generated files (#20) --- .../v1beta1/schema/annotation_payload.proto | 228 + .../schema/annotation_spec_color.proto | 40 + .../v1beta1/schema/data_item_payload.proto | 66 + .../v1beta1/schema/dataset_metadata.proto | 115 + .../aiplatform/v1beta1/schema/geometry.proto | 35 + .../aiplatform/v1beta1/schema/io_format.proto | 480 + .../instance/image_classification.proto | 41 + .../instance/image_object_detection.proto | 41 + .../predict/instance/image_segmentation.proto | 36 + .../instance/text_classification.proto | 35 + .../predict/instance/text_extraction.proto | 42 + .../predict/instance/text_sentiment.proto | 35 + .../instance/video_action_recognition.proto | 48 + .../instance/video_classification.proto | 48 + .../instance/video_object_tracking.proto | 48 + .../predict/params/image_classification.proto | 36 + .../params/image_object_detection.proto | 36 + .../predict/params/image_segmentation.proto | 33 + .../params/video_action_recognition.proto | 36 + .../predict/params/video_classification.proto | 61 + .../params/video_object_tracking.proto | 40 + .../predict/prediction/classification.proto | 39 + .../prediction/image_object_detection.proto | 48 + .../prediction/image_segmentation.proto | 42 + .../prediction/tabular_classification.proto | 36 + .../prediction/tabular_regression.proto | 36 + .../predict/prediction/text_extraction.proto | 49 + .../predict/prediction/text_sentiment.proto | 45 + .../prediction/time_series_forecasting.proto | 36 + .../prediction/video_action_recognition.proto | 51 + .../prediction/video_classification.proto | 64 + .../prediction/video_object_tracking.proto | 79 + .../v1beta1/schema/saved_query_metadata.proto | 41 + .../definition/automl_forecasting.proto | 296 + .../automl_image_classification.proto | 125 + .../automl_image_object_detection.proto | 117 + .../automl_image_segmentation.proto | 96 + .../definition/automl_tables.proto | 278 + .../automl_text_classification.proto | 34 + .../definition/automl_text_extraction.proto | 34 + .../definition/automl_text_sentiment.proto | 41 + .../automl_video_action_recognition.proto | 49 + .../automl_video_classification.proto | 48 + .../automl_video_object_tracking.proto | 64 + .../export_evaluated_data_items_config.proto | 39 + .../protos/protos.d.ts | 20567 +++++- .../google-cloud-aiplatform/protos/protos.js | 54099 +++++++++++++--- .../protos/protos.json | 2312 +- .../src/v1beta1/dataset_service_client.ts | 128 +- .../v1beta1/dataset_service_proto_list.json | 45 + .../src/v1beta1/endpoint_service_client.ts | 90 +- .../v1beta1/endpoint_service_proto_list.json | 45 + .../src/v1beta1/job_service_client.ts | 232 +- .../src/v1beta1/job_service_proto_list.json | 45 + .../src/v1beta1/migration_service_client.ts | 40 +- .../v1beta1/migration_service_proto_list.json | 45 + .../src/v1beta1/model_service_client.ts | 128 +- .../src/v1beta1/model_service_proto_list.json | 45 + .../src/v1beta1/pipeline_service_client.ts | 70 +- .../v1beta1/pipeline_service_proto_list.json | 45 + .../src/v1beta1/prediction_service_client.ts | 36 +- .../prediction_service_proto_list.json | 45 + .../v1beta1/specialist_pool_service_client.ts | 70 +- .../specialist_pool_service_proto_list.json | 45 + .../google-cloud-aiplatform/synth.metadata | 139 +- 65 files changed, 67857 insertions(+), 13781 deletions(-) create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/dataset_metadata.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/geometry.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/io_format.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_classification.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_object_detection.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_segmentation.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_classification.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_extraction.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_sentiment.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_action_recognition.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_classification.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_object_tracking.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_classification.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_object_detection.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_segmentation.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_action_recognition.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_classification.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_object_tracking.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/classification.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_object_detection.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_segmentation.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_classification.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_regression.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_extraction.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_sentiment.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/time_series_forecasting.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_action_recognition.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_classification.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_object_tracking.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/saved_query_metadata.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_forecasting.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_classification.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_object_detection.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_segmentation.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_tables.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_classification.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_extraction.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_sentiment.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_action_recognition.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto new file mode 100644 index 00000000000..8e355f9a6e9 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto @@ -0,0 +1,228 @@ +// 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.aiplatform.v1beta1.schema; + +import "google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto"; +import "google/cloud/aiplatform/v1beta1/schema/geometry.proto"; +import "google/protobuf/duration.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema;schema"; +option java_multiple_files = true; +option java_outer_classname = "AnnotationPayloadProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema"; + +// Annotation details specific to image classification. +message ImageClassificationAnnotation { + // The resource Id of the AnnotationSpec that this Annotation pertains to. + string annotation_spec_id = 1; + + // The display name of the AnnotationSpec that this Annotation pertains to. + string display_name = 2; +} + +// Annotation details specific to image object detection. +message ImageBoundingBoxAnnotation { + // The resource Id of the AnnotationSpec that this Annotation pertains to. + string annotation_spec_id = 1; + + // The display name of the AnnotationSpec that this Annotation pertains to. + string display_name = 2; + + // The leftmost coordinate of the bounding box. + double x_min = 3; + + // The rightmost coordinate of the bounding box. + double x_max = 4; + + // The topmost coordinate of the bounding box. + double y_min = 5; + + // The bottommost coordinate of the bounding box. + double y_max = 6; +} + +// Annotation details specific to image segmentation. +message ImageSegmentationAnnotation { + // The mask based segmentation annotation. + message MaskAnnotation { + // Google Cloud Storage URI that points to the mask image. The image must be + // in PNG format. It must have the same size as the DataItem's image. Each + // pixel in the image mask represents the AnnotationSpec which the pixel in + // the image DataItem belong to. Each color is mapped to one AnnotationSpec + // based on annotation_spec_colors. + string mask_gcs_uri = 1; + + // The mapping between color and AnnotationSpec for this Annotation. + repeated AnnotationSpecColor annotation_spec_colors = 2; + } + + // Represents a polygon in image. + message PolygonAnnotation { + // The vertexes are connected one by one and the last vertex is connected to + // the first one to represent a polygon. + repeated Vertex vertexes = 1; + + // The resource Id of the AnnotationSpec that this Annotation pertains to. + string annotation_spec_id = 2; + + // The display name of the AnnotationSpec that this Annotation pertains to. + string display_name = 3; + } + + // Represents a polyline in image. + message PolylineAnnotation { + // The vertexes are connected one by one and the last vertex in not + // connected to the first one. + repeated Vertex vertexes = 1; + + // The resource Id of the AnnotationSpec that this Annotation pertains to. + string annotation_spec_id = 2; + + // The display name of the AnnotationSpec that this Annotation pertains to. + string display_name = 3; + } + + oneof annotation { + // Mask based segmentation annotation. Only one mask annotation can exist + // for one image. + MaskAnnotation mask_annotation = 3; + + // Polygon annotation. + PolygonAnnotation polygon_annotation = 4; + + // Polyline annotation. + PolylineAnnotation polyline_annotation = 5; + } +} + +// Annotation details specific to text classification. +message TextClassificationAnnotation { + // The resource Id of the AnnotationSpec that this Annotation pertains to. + string annotation_spec_id = 1; + + // The display name of the AnnotationSpec that this Annotation pertains to. + string display_name = 2; +} + +// Annotation details specific to text extraction. +message TextExtractionAnnotation { + // The segment of the text content. + TextSegment text_segment = 1; + + // The resource Id of the AnnotationSpec that this Annotation pertains to. + string annotation_spec_id = 2; + + // The display name of the AnnotationSpec that this Annotation pertains to. + string display_name = 3; +} + +// The text segment inside of DataItem. +message TextSegment { + // Zero-based character index of the first character of the text + // segment (counting characters from the beginning of the text). + uint64 start_offset = 1; + + // 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. + uint64 end_offset = 2; + + // The text content in the segment for output only. + string content = 3; +} + +// Annotation details specific to text sentiment. +message TextSentimentAnnotation { + // The sentiment score for text. + int32 sentiment = 1; + + // The sentiment max score for text. + int32 sentiment_max = 2; + + // The resource Id of the AnnotationSpec that this Annotation pertains to. + string annotation_spec_id = 3; + + // The display name of the AnnotationSpec that this Annotation pertains to. + string display_name = 4; +} + +// Annotation details specific to video classification. +message VideoClassificationAnnotation { + // This Annotation applies to the time period represented by the TimeSegment. + // If it's not set, the Annotation applies to the whole video. + TimeSegment time_segment = 1; + + // The resource Id of the AnnotationSpec that this Annotation pertains to. + string annotation_spec_id = 2; + + // The display name of the AnnotationSpec that this Annotation pertains to. + string display_name = 3; +} + +// A time period inside of a DataItem that has a time dimension (e.g. video). +message TimeSegment { + // Start of the time segment (inclusive), represented as the duration since + // the start of the DataItem. + google.protobuf.Duration start_time_offset = 1; + + // End of the time segment (exclusive), represented as the duration since the + // start of the DataItem. + google.protobuf.Duration end_time_offset = 2; +} + +// Annotation details specific to video object tracking. +message VideoObjectTrackingAnnotation { + // 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 = 1; + + // The leftmost coordinate of the bounding box. + double x_min = 2; + + // The rightmost coordinate of the bounding box. + double x_max = 3; + + // The topmost coordinate of the bounding box. + double y_min = 4; + + // The bottommost coordinate of the bounding box. + double y_max = 5; + + // The instance of the object, expressed as a positive integer. Used to track + // the same object across different frames. + int64 instance_id = 6; + + // The resource Id of the AnnotationSpec that this Annotation pertains to. + string annotation_spec_id = 7; + + // The display name of the AnnotationSpec that this Annotation pertains to. + string display_name = 8; +} + +// Annotation details specific to video action recognition. +message VideoActionRecognitionAnnotation { + // This Annotation applies to the time period represented by the TimeSegment. + // If it's not set, the Annotation applies to the whole video. + TimeSegment time_segment = 1; + + // The resource Id of the AnnotationSpec that this Annotation pertains to. + string annotation_spec_id = 2; + + // The display name of the AnnotationSpec that this Annotation pertains to. + string display_name = 3; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto new file mode 100644 index 00000000000..f5893a90a30 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.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.aiplatform.v1beta1.schema; + +import "google/type/color.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema;schema"; +option java_multiple_files = true; +option java_outer_classname = "AnnotationSpecColorProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema"; + +// An entry of mapping between color and AnnotationSpec. The mapping is used in +// segmentation mask. +message AnnotationSpecColor { + // The color of the AnnotationSpec in a segmentation mask. + google.type.Color color = 1; + + // The display name of the AnnotationSpec represented by the color in the + // segmentation mask. + string display_name = 2; + + // The ID of the AnnotationSpec represented by the color in the segmentation + // mask. + string id = 3; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto new file mode 100644 index 00000000000..5519d1ae863 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto @@ -0,0 +1,66 @@ +// 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.aiplatform.v1beta1.schema; + +import "google/api/field_behavior.proto"; +import "google/protobuf/duration.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema;schema"; +option java_multiple_files = true; +option java_outer_classname = "DataItemPayloadProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema"; + +// Payload of Image DataItem. +message ImageDataItem { + // Required. Google Cloud Storage URI points to the original image in user's bucket. + // The image is up to 30MB in size. + string gcs_uri = 1 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The mime type of the content of the image. Only the images in below listed + // mime types are supported. + // - image/jpeg + // - image/gif + // - image/png + // - image/webp + // - image/bmp + // - image/tiff + // - image/vnd.microsoft.icon + string mime_type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Payload of Video DataItem. +message VideoDataItem { + // Required. Google Cloud Storage URI points to the original video in user's bucket. + // The video is up to 50 GB in size and up to 3 hour in duration. + string gcs_uri = 1 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The mime type of the content of the video. Only the videos in below listed + // mime types are supported. + // Supported mime_type: + // - video/mp4 + // - video/avi + // - video/quicktime + string mime_type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Payload of Text DataItem. +message TextDataItem { + // Output only. Google Cloud Storage URI points to the original text in user's bucket. + // The text file is up to 10MB in size. + string gcs_uri = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/dataset_metadata.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/dataset_metadata.proto new file mode 100644 index 00000000000..520b363806b --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/dataset_metadata.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.aiplatform.v1beta1.schema; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema;schema"; +option java_multiple_files = true; +option java_outer_classname = "DatasetMetadataProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema"; + +// The metadata of Datasets that contain Image DataItems. +message ImageDatasetMetadata { + // Points to a YAML file stored on Google Cloud Storage describing payload of + // the Image DataItems that belong to this Dataset. + string data_item_schema_uri = 1; + + // Google Cloud Storage Bucket name that contains the blob data of this + // Dataset. + string gcs_bucket = 2; +} + +// The metadata of Datasets that contain Text DataItems. +message TextDatasetMetadata { + // Points to a YAML file stored on Google Cloud Storage describing payload of + // the Text DataItems that belong to this Dataset. + string data_item_schema_uri = 1; + + // Google Cloud Storage Bucket name that contains the blob data of this + // Dataset. + string gcs_bucket = 2; +} + +// The metadata of Datasets that contain Video DataItems. +message VideoDatasetMetadata { + // Points to a YAML file stored on Google Cloud Storage describing payload of + // the Video DataItems that belong to this Dataset. + string data_item_schema_uri = 1; + + // Google Cloud Storage Bucket name that contains the blob data of this + // Dataset. + string gcs_bucket = 2; +} + +// The metadata of Datasets that contain tables data. +message TablesDatasetMetadata { + // The tables Dataset's data source. The Dataset doesn't store the data + // directly, but only pointer(s) to its data. + message InputConfig { + oneof source { + GcsSource gcs_source = 1; + + BigQuerySource bigquery_source = 2; + } + } + + message GcsSource { + // Google Cloud Storage URI to a input file, only .csv file is supported. + repeated string uri = 1; + } + + message BigQuerySource { + // The URI of a BigQuery table. + string uri = 1; + } + + InputConfig input_config = 1; +} + +// The metadata of Datasets that contain time series data. +message TimeSeriesDatasetMetadata { + // The time series Dataset's data source. The Dataset doesn't store the data + // directly, but only pointer(s) to its data. + message InputConfig { + oneof source { + GcsSource gcs_source = 1; + + BigQuerySource bigquery_source = 2; + } + } + + message GcsSource { + // Google Cloud Storage URI to a input file, only .csv file is supported. + repeated string uri = 1; + } + + message BigQuerySource { + // The URI of a BigQuery table. + string uri = 1; + } + + InputConfig input_config = 1; + + // The column name of the time series identifier column that identifies the + // time series. + string time_series_identifier_column = 2; + + // The column name of the time column that identifies time order in the time + // series. + string time_column = 3; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/geometry.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/geometry.proto new file mode 100644 index 00000000000..24c596f38b1 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/geometry.proto @@ -0,0 +1,35 @@ +// 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.aiplatform.v1beta1.schema; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema;schema"; +option java_multiple_files = true; +option java_outer_classname = "GeometryProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema"; + +// A vertex represents a 2D point in the image. +// NOTE: the normalized vertex coordinates are relative to the original image +// and range from 0 to 1. +message Vertex { + // X coordinate. + double x = 1; + + // Y coordinate. + double y = 2; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/io_format.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/io_format.proto new file mode 100644 index 00000000000..432057d12b1 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/io_format.proto @@ -0,0 +1,480 @@ +// 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.aiplatform.v1beta1.schema; + +import "google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto"; +import "google/cloud/aiplatform/v1beta1/schema/geometry.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/wrappers.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema;schema"; +option java_multiple_files = true; +option java_outer_classname = "IoFormatProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema"; + +// Prediction input format for Image Classification. +message ImageClassificationPredictionInstance { + // The image bytes or GCS URI to make the prediction on. + string content = 1; + + // The MIME type of the content of the image. Only the images in below listed + // MIME types are supported. + // - image/jpeg + // - image/gif + // - image/png + // - image/webp + // - image/bmp + // - image/tiff + // - image/vnd.microsoft.icon + string mime_type = 2; +} + +// Prediction input format for Image Object Detection. +message ImageObjectDetectionPredictionInstance { + // The image bytes or GCS URI to make the prediction on. + string content = 1; + + // The MIME type of the content of the image. Only the images in below listed + // MIME types are supported. + // - image/jpeg + // - image/gif + // - image/png + // - image/webp + // - image/bmp + // - image/tiff + // - image/vnd.microsoft.icon + string mime_type = 2; +} + +// Prediction input format for Image Segmentation. +message ImageSegmentationPredictionInstance { + // The image bytes to make the predictions on. + string content = 1; + + // The MIME type of the content of the image. Only the images in below listed + // MIME types are supported. + // - image/jpeg + // - image/png + string mime_type = 2; +} + +// Prediction input format for Video Classification. +message VideoClassificationPredictionInstance { + // The Google Cloud Storage location of the video on which to perform the + // prediction. + string content = 1; + + // The MIME type of the content of the video. Only the following are + // supported: video/mp4 video/avi video/quicktime + string mime_type = 2; + + // The beginning, inclusive, of the video's time segment on which to perform + // the prediction. Expressed as a number of seconds as measured from the + // start of the video, with "s" appended at the end. Fractions are allowed, + // up to a microsecond precision. + string time_segment_start = 3; + + // The end, exclusive, of the video's time segment on which to perform + // the prediction. Expressed as a number of seconds as measured from the + // start of the video, with "s" appended at the end. Fractions are allowed, + // up to a microsecond precision, and "Infinity" is allowed, which means the + // end of the video. + string time_segment_end = 4; +} + +// Prediction input format for Video Classification. +message VideoObjectTrackingPredictionInstance { + // The Google Cloud Storage location of the video on which to perform the + // prediction. + string content = 1; + + // The MIME type of the content of the video. Only the following are + // supported: video/mp4 video/avi video/quicktime + string mime_type = 2; + + // The beginning, inclusive, of the video's time segment on which to perform + // the prediction. Expressed as a number of seconds as measured from the + // start of the video, with "s" appended at the end. Fractions are allowed, + // up to a microsecond precision. + string time_segment_start = 3; + + // The end, exclusive, of the video's time segment on which to perform + // the prediction. Expressed as a number of seconds as measured from the + // start of the video, with "s" appended at the end. Fractions are allowed, + // up to a microsecond precision, and "Infinity" is allowed, which means the + // end of the video. + string time_segment_end = 4; +} + +// Prediction input format for Video Action Recognition. +message VideoActionRecognitionPredictionInstance { + // The Google Cloud Storage location of the video on which to perform the + // prediction. + string content = 1; + + // The MIME type of the content of the video. Only the following are + // supported: video/mp4 video/avi video/quicktime + string mime_type = 2; + + // The beginning, inclusive, of the video's time segment on which to perform + // the prediction. Expressed as a number of seconds as measured from the + // start of the video, with "s" appended at the end. Fractions are allowed, + // up to a microsecond precision. + string time_segment_start = 3; + + // The end, exclusive, of the video's time segment on which to perform + // the prediction. Expressed as a number of seconds as measured from the + // start of the video, with "s" appended at the end. Fractions are allowed, + // up to a microsecond precision, and "Infinity" is allowed, which means the + // end of the video. + string time_segment_end = 4; +} + +// Prediction input format for Text Classification. +message TextClassificationPredictionInstance { + // The text snippet to make the predictions on. + string content = 1; + + // The MIME type of the text snippet. The supported MIME types are listed + // below. + // - text/plain + string mime_type = 2; +} + +// Prediction input format for Text Sentiment. +message TextSentimentPredictionInstance { + // The text snippet to make the predictions on. + string content = 1; + + // The MIME type of the text snippet. The supported MIME types are listed + // below. + // - text/plain + string mime_type = 2; +} + +// Prediction input format for Text Extraction. +message TextExtractionPredictionInstance { + // The text snippet to make the predictions on. + string content = 1; + + // The MIME type of the text snippet. The supported MIME types are listed + // below. + // - text/plain + string mime_type = 2; + + // This field is only used for batch prediction. If a key is provided, the + // batch prediction result will by mapped to this key. If omitted, then the + // batch prediction result will contain the entire input instance. AI Platform + // will not check if keys in the request are duplicates, so it is up to the + // caller to ensure the keys are unique. + string key = 3; +} + +// Prediction model parameters for Image Classification. +message ImageClassificationPredictionParams { + // The Model only returns predictions with at least this confidence score. + // Default value is 0.0 + float confidence_threshold = 1; + + // The Model only returns up to that many top, by confidence score, + // predictions per instance. If this number is very high, the Model may return + // fewer predictions. Default value is 10. + int32 max_predictions = 2; +} + +// Prediction model parameters for Image Object Detection. +message ImageObjectDetectionPredictionParams { + // The Model only returns predictions with at least this confidence score. + // Default value is 0.0 + float confidence_threshold = 1; + + // The Model only returns up to that many top, by confidence score, + // predictions per instance. Note that number of returned predictions is also + // limited by metadata's predictionsLimit. Default value is 10. + int32 max_predictions = 2; +} + +// Prediction model parameters for Image Segmentation. +message ImageSegmentationPredictionParams { + // When the model predicts category of pixels of the image, it will only + // provide predictions for pixels that it is at least this much confident + // about. All other pixels will be classified as background. Default value is + // 0.5. + float confidence_threshold = 1; +} + +// Prediction model parameters for Video Classification. +message VideoClassificationPredictionParams { + // The Model only returns predictions with at least this confidence score. + // Default value is 0.0 + float confidence_threshold = 1; + + // The Model only returns up to that many top, by confidence score, + // predictions per instance. If this number is very high, the Model may return + // fewer predictions. Default value is 10,000. + int32 max_predictions = 2; + + // Set to true to request segment-level classification. AI Platform returns + // labels and their confidence scores for the entire time segment of the + // video that user specified in the input instance. + // Default value is true + bool segment_classification = 3; + + // Set to true to request shot-level classification. AI Platform determines + // the boundaries for each camera shot in the entire time segment of the + // video that user specified in the input instance. AI Platform 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 the training data, but there are no metrics + // provided to describe that quality. + // Default value is false + bool shot_classification = 4; + + // Set to true to request classification for a video at one-second intervals. + // AI Platform returns labels and their confidence scores for each second of + // the entire time segment of the video that user specified in the input + // WARNING: Model evaluation is not done for this classification type, the + // quality of it depends on the training data, but there are no metrics + // provided to describe that quality. Default value is false + bool one_sec_interval_classification = 5; +} + +// Prediction model parameters for Video Object Tracking. +message VideoObjectTrackingPredictionParams { + // The Model only returns predictions with at least this confidence score. + // Default value is 0.0 + float confidence_threshold = 1; + + // The model only returns up to that many top, by confidence score, + // predictions per frame of the video. If this number is very high, the + // Model may return fewer predictions per frame. Default value is 50. + int32 max_predictions = 2; + + // Only bounding boxes with shortest edge at least that long as a relative + // value of video frame size are returned. Default value is 0.0. + float min_bounding_box_size = 3; +} + +// Prediction model parameters for Video Action Recognition. +message VideoActionRecognitionPredictionParams { + // The Model only returns predictions with at least this confidence score. + // Default value is 0.0 + float confidence_threshold = 1; + + // The model only returns up to that many top, by confidence score, + // predictions per frame of the video. If this number is very high, the + // Model may return fewer predictions per frame. Default value is 50. + int32 max_predictions = 2; +} + +// Represents a line of JSONL in the batch prediction output file. +message PredictionResult { + // Some identifier from the input so that the prediction can be mapped back to + // the input instance. + oneof input { + // User's input instance. + // Struct is used here instead of Any so that JsonFormat does not append an + // extra "@type" field when we convert the proto to JSON. + google.protobuf.Struct instance = 1; + + // Optional user-provided key from the input instance. + string key = 2; + } + + // The prediction result. + // Value is used here instead of Any so that JsonFormat does not append an + // extra "@type" field when we convert the proto to JSON and so we can + // represent array of objects. + google.protobuf.Value prediction = 3; +} + +// Represents a line of JSONL in the text sentiment batch prediction output +// file. This is a hack to allow printing of integer values. +message TextSentimentPredictionResult { + // Prediction output format for Text Sentiment. + message Prediction { + // The integer sentiment labels between 0 (inclusive) and sentimentMax label + // (inclusive), while 0 maps to the least positive sentiment and + // sentimentMax maps to the most positive one. The higher the score is, the + // more positive the sentiment in the text snippet is. Note: sentimentMax is + // an integer value between 1 (inclusive) and 10 (inclusive). + int32 sentiment = 1; + } + + // User's input instance. + TextSentimentPredictionInstance instance = 1; + + // The prediction result. + Prediction prediction = 2; +} + +// Prediction output format for Image Classification. +message ClassificationPredictionResult { + // The resource IDs of the AnnotationSpecs that had been identified, ordered + // by the confidence score descendingly. + repeated int64 ids = 1; + + // The display names of the AnnotationSpecs that had been identified, order + // matches the IDs. + repeated string display_names = 2; + + // The Model's confidences in correctness of the predicted IDs, higher value + // means higher confidence. Order matches the Ids. + repeated float confidences = 3; +} + +// Prediction output format for Image Object Detection. +message ImageObjectDetectionPredictionResult { + // The resource IDs of the AnnotationSpecs that had been identified, ordered + // by the confidence score descendingly. + repeated int64 ids = 1; + + // The display names of the AnnotationSpecs that had been identified, order + // matches the IDs. + repeated string display_names = 2; + + // The Model's confidences in correctness of the predicted IDs, higher value + // means higher confidence. Order matches the Ids. + repeated float confidences = 3; + + // Bounding boxes, i.e. the rectangles over the image, that pinpoint + // the found AnnotationSpecs. Given in order that matches the IDs. Each + // bounding box is an array of 4 numbers `xMin`, `xMax`, `yMin`, and + // `yMax`, which represent the extremal coordinates of the box. They are + // relative to the image size, and the point 0,0 is in the top left + // of the image. + repeated google.protobuf.ListValue bboxes = 4; +} + +// Prediction output format for Video Classification. +message VideoClassificationPredictionResult { + // The resource ID of the AnnotationSpec that had been identified. + string id = 1; + + // The display name of the AnnotationSpec that had been identified. + string display_name = 2; + + // The type of the prediction. The requested types can be configured + // via parameters. This will be one of + // - segment-classification + // - shot-classification + // - one-sec-interval-classification + string type = 3; + + // The beginning, inclusive, of the video's time segment in which the + // AnnotationSpec has been identified. Expressed as a number of seconds as + // measured from the start of the video, with fractions up to a microsecond + // precision, and with "s" appended at the end. Note that for + // 'segment-classification' prediction type, this equals the original + // 'timeSegmentStart' from the input instance, for other types it is the + // start of a shot or a 1 second interval respectively. + google.protobuf.Duration time_segment_start = 4; + + // The end, exclusive, of the video's time segment in which the + // AnnotationSpec has been identified. Expressed as a number of seconds as + // measured from the start of the video, with fractions up to a microsecond + // precision, and with "s" appended at the end. Note that for + // 'segment-classification' prediction type, this equals the original + // 'timeSegmentEnd' from the input instance, for other types it is the end + // of a shot or a 1 second interval respectively. + google.protobuf.Duration time_segment_end = 5; + + // The Model's confidence in correction of this prediction, higher + // value means higher confidence. + google.protobuf.FloatValue confidence = 6; +} + +// Prediction output format for Video Object Tracking. +message VideoObjectTrackingPredictionResult { + // The fields `xMin`, `xMax`, `yMin`, and `yMax` refer to a bounding box, + // i.e. the rectangle over the video frame pinpointing the found + // AnnotationSpec. The coordinates are relative to the frame size, and the + // point 0,0 is in the top left of the frame. + message Frame { + // A time (frame) of a video in which the object has been detected. + // Expressed as a number of seconds as measured from the + // start of the video, with fractions up to a microsecond precision, and + // with "s" appended at the end. + google.protobuf.Duration time_offset = 1; + + // The leftmost coordinate of the bounding box. + google.protobuf.FloatValue x_min = 2; + + // The rightmost coordinate of the bounding box. + google.protobuf.FloatValue x_max = 3; + + // The topmost coordinate of the bounding box. + google.protobuf.FloatValue y_min = 4; + + // The bottommost coordinate of the bounding box. + google.protobuf.FloatValue y_max = 5; + } + + // The resource ID of the AnnotationSpec that had been identified. + string id = 1; + + // The display name of the AnnotationSpec that had been identified. + string display_name = 2; + + // The beginning, inclusive, of the video's time segment in which the + // object instance has been detected. Expressed as a number of seconds as + // measured from the start of the video, with fractions up to a microsecond + // precision, and with "s" appended at the end. + google.protobuf.Duration time_segment_start = 3; + + // The end, inclusive, of the video's time segment in which the + // object instance has been detected. Expressed as a number of seconds as + // measured from the start of the video, with fractions up to a microsecond + // precision, and with "s" appended at the end. + google.protobuf.Duration time_segment_end = 4; + + // The Model's confidence in correction of this prediction, higher + // value means higher confidence. + google.protobuf.FloatValue confidence = 5; + + // All of the frames of the video in which a single object instance has been + // detected. The bounding boxes in the frames identify the same object. + repeated Frame frames = 6; +} + +// Prediction output format for Text Extraction. +message TextExtractionPredictionResult { + // The resource IDs of the AnnotationSpecs that had been identified, + // ordered by the confidence score descendingly. + repeated int64 ids = 1; + + // The display names of the AnnotationSpecs that had been identified, + // order matches the IDs. + repeated string display_names = 2; + + // The start offsets, inclusive, of the text segment in which the + // AnnotationSpec has been identified. Expressed as a zero-based number + // of characters as measured from the start of the text snippet. + repeated int64 text_segment_start_offsets = 3; + + // The end offsets, inclusive, of the text segment in which the + // AnnotationSpec has been identified. Expressed as a zero-based number + // of characters as measured from the start of the text snippet. + repeated int64 text_segment_end_offsets = 4; + + // The Model's confidences in correctness of the predicted IDs, higher + // value means higher confidence. Order matches the Ids. + repeated float confidences = 5; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_classification.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_classification.proto new file mode 100644 index 00000000000..408f995fdc6 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_classification.proto @@ -0,0 +1,41 @@ +// 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.aiplatform.v1beta1.schema.predict.instance; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/instance;instance"; +option java_multiple_files = true; +option java_outer_classname = "ImageClassificationPredictionInstanceProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.instance"; + +// Prediction input format for Image Classification. +message ImageClassificationPredictionInstance { + // The image bytes or GCS URI to make the prediction on. + string content = 1; + + // The MIME type of the content of the image. Only the images in below listed + // MIME types are supported. + // - image/jpeg + // - image/gif + // - image/png + // - image/webp + // - image/bmp + // - image/tiff + // - image/vnd.microsoft.icon + string mime_type = 2; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_object_detection.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_object_detection.proto new file mode 100644 index 00000000000..37467912f7a --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_object_detection.proto @@ -0,0 +1,41 @@ +// 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.aiplatform.v1beta1.schema.predict.instance; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/instance;instance"; +option java_multiple_files = true; +option java_outer_classname = "ImageObjectDetectionPredictionInstanceProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.instance"; + +// Prediction input format for Image Object Detection. +message ImageObjectDetectionPredictionInstance { + // The image bytes or GCS URI to make the prediction on. + string content = 1; + + // The MIME type of the content of the image. Only the images in below listed + // MIME types are supported. + // - image/jpeg + // - image/gif + // - image/png + // - image/webp + // - image/bmp + // - image/tiff + // - image/vnd.microsoft.icon + string mime_type = 2; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_segmentation.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_segmentation.proto new file mode 100644 index 00000000000..d5477020f7c --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_segmentation.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.aiplatform.v1beta1.schema.predict.instance; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/instance;instance"; +option java_multiple_files = true; +option java_outer_classname = "ImageSegmentationPredictionInstanceProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.instance"; + +// Prediction input format for Image Segmentation. +message ImageSegmentationPredictionInstance { + // The image bytes to make the predictions on. + string content = 1; + + // The MIME type of the content of the image. Only the images in below listed + // MIME types are supported. + // - image/jpeg + // - image/png + string mime_type = 2; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_classification.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_classification.proto new file mode 100644 index 00000000000..8f6de3e6332 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_classification.proto @@ -0,0 +1,35 @@ +// 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.aiplatform.v1beta1.schema.predict.instance; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/instance;instance"; +option java_multiple_files = true; +option java_outer_classname = "TextClassificationPredictionInstanceProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.instance"; + +// Prediction input format for Text Classification. +message TextClassificationPredictionInstance { + // The text snippet to make the predictions on. + string content = 1; + + // The MIME type of the text snippet. The supported MIME types are listed + // below. + // - text/plain + string mime_type = 2; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_extraction.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_extraction.proto new file mode 100644 index 00000000000..bb592d2d1ca --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_extraction.proto @@ -0,0 +1,42 @@ +// 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.aiplatform.v1beta1.schema.predict.instance; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/instance;instance"; +option java_multiple_files = true; +option java_outer_classname = "TextExtractionPredictionInstanceProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.instance"; + +// Prediction input format for Text Extraction. +message TextExtractionPredictionInstance { + // The text snippet to make the predictions on. + string content = 1; + + // The MIME type of the text snippet. The supported MIME types are listed + // below. + // - text/plain + string mime_type = 2; + + // This field is only used for batch prediction. If a key is provided, the + // batch prediction result will by mapped to this key. If omitted, then the + // batch prediction result will contain the entire input instance. AI Platform + // will not check if keys in the request are duplicates, so it is up to the + // caller to ensure the keys are unique. + string key = 3; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_sentiment.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_sentiment.proto new file mode 100644 index 00000000000..8b12f968600 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_sentiment.proto @@ -0,0 +1,35 @@ +// 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.aiplatform.v1beta1.schema.predict.instance; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/instance;instance"; +option java_multiple_files = true; +option java_outer_classname = "TextSentimentPredictionInstanceProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.instance"; + +// Prediction input format for Text Sentiment. +message TextSentimentPredictionInstance { + // The text snippet to make the predictions on. + string content = 1; + + // The MIME type of the text snippet. The supported MIME types are listed + // below. + // - text/plain + string mime_type = 2; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_action_recognition.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_action_recognition.proto new file mode 100644 index 00000000000..6bd59b8f235 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_action_recognition.proto @@ -0,0 +1,48 @@ +// 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.aiplatform.v1beta1.schema.predict.instance; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/instance;instance"; +option java_multiple_files = true; +option java_outer_classname = "VideoActionRecognitionPredictionInstanceProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.instance"; + +// Prediction input format for Video Action Recognition. +message VideoActionRecognitionPredictionInstance { + // The Google Cloud Storage location of the video on which to perform the + // prediction. + string content = 1; + + // The MIME type of the content of the video. Only the following are + // supported: video/mp4 video/avi video/quicktime + string mime_type = 2; + + // The beginning, inclusive, of the video's time segment on which to perform + // the prediction. Expressed as a number of seconds as measured from the + // start of the video, with "s" appended at the end. Fractions are allowed, + // up to a microsecond precision. + string time_segment_start = 3; + + // The end, exclusive, of the video's time segment on which to perform + // the prediction. Expressed as a number of seconds as measured from the + // start of the video, with "s" appended at the end. Fractions are allowed, + // up to a microsecond precision, and "Infinity" is allowed, which means the + // end of the video. + string time_segment_end = 4; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_classification.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_classification.proto new file mode 100644 index 00000000000..1f1cdbdccc3 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_classification.proto @@ -0,0 +1,48 @@ +// 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.aiplatform.v1beta1.schema.predict.instance; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/instance;instance"; +option java_multiple_files = true; +option java_outer_classname = "VideoClassificationPredictionInstanceProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.instance"; + +// Prediction input format for Video Classification. +message VideoClassificationPredictionInstance { + // The Google Cloud Storage location of the video on which to perform the + // prediction. + string content = 1; + + // The MIME type of the content of the video. Only the following are + // supported: video/mp4 video/avi video/quicktime + string mime_type = 2; + + // The beginning, inclusive, of the video's time segment on which to perform + // the prediction. Expressed as a number of seconds as measured from the + // start of the video, with "s" appended at the end. Fractions are allowed, + // up to a microsecond precision. + string time_segment_start = 3; + + // The end, exclusive, of the video's time segment on which to perform + // the prediction. Expressed as a number of seconds as measured from the + // start of the video, with "s" appended at the end. Fractions are allowed, + // up to a microsecond precision, and "Infinity" is allowed, which means the + // end of the video. + string time_segment_end = 4; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_object_tracking.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_object_tracking.proto new file mode 100644 index 00000000000..53c34c952f4 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_object_tracking.proto @@ -0,0 +1,48 @@ +// 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.aiplatform.v1beta1.schema.predict.instance; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/instance;instance"; +option java_multiple_files = true; +option java_outer_classname = "VideoObjectTrackingPredictionInstanceProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.instance"; + +// Prediction input format for Video Object Tracking. +message VideoObjectTrackingPredictionInstance { + // The Google Cloud Storage location of the video on which to perform the + // prediction. + string content = 1; + + // The MIME type of the content of the video. Only the following are + // supported: video/mp4 video/avi video/quicktime + string mime_type = 2; + + // The beginning, inclusive, of the video's time segment on which to perform + // the prediction. Expressed as a number of seconds as measured from the + // start of the video, with "s" appended at the end. Fractions are allowed, + // up to a microsecond precision. + string time_segment_start = 3; + + // The end, exclusive, of the video's time segment on which to perform + // the prediction. Expressed as a number of seconds as measured from the + // start of the video, with "s" appended at the end. Fractions are allowed, + // up to a microsecond precision, and "Infinity" is allowed, which means the + // end of the video. + string time_segment_end = 4; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_classification.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_classification.proto new file mode 100644 index 00000000000..c480a26e8e0 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_classification.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.aiplatform.v1beta1.schema.predict.params; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/params;params"; +option java_multiple_files = true; +option java_outer_classname = "ImageClassificationPredictionParamsProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.params"; + +// Prediction model parameters for Image Classification. +message ImageClassificationPredictionParams { + // The Model only returns predictions with at least this confidence score. + // Default value is 0.0 + float confidence_threshold = 1; + + // The Model only returns up to that many top, by confidence score, + // predictions per instance. If this number is very high, the Model may return + // fewer predictions. Default value is 10. + int32 max_predictions = 2; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_object_detection.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_object_detection.proto new file mode 100644 index 00000000000..5a7d6f2b487 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_object_detection.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.aiplatform.v1beta1.schema.predict.params; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/params;params"; +option java_multiple_files = true; +option java_outer_classname = "ImageObjectDetectionPredictionParamsProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.params"; + +// Prediction model parameters for Image Object Detection. +message ImageObjectDetectionPredictionParams { + // The Model only returns predictions with at least this confidence score. + // Default value is 0.0 + float confidence_threshold = 1; + + // The Model only returns up to that many top, by confidence score, + // predictions per instance. Note that number of returned predictions is also + // limited by metadata's predictionsLimit. Default value is 10. + int32 max_predictions = 2; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_segmentation.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_segmentation.proto new file mode 100644 index 00000000000..8664ccf2c3e --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_segmentation.proto @@ -0,0 +1,33 @@ +// 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.aiplatform.v1beta1.schema.predict.params; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/params;params"; +option java_multiple_files = true; +option java_outer_classname = "ImageSegmentationPredictionParamsProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.params"; + +// Prediction model parameters for Image Segmentation. +message ImageSegmentationPredictionParams { + // When the model predicts category of pixels of the image, it will only + // provide predictions for pixels that it is at least this much confident + // about. All other pixels will be classified as background. Default value is + // 0.5. + float confidence_threshold = 1; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_action_recognition.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_action_recognition.proto new file mode 100644 index 00000000000..12a2e0a3bc2 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_action_recognition.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.aiplatform.v1beta1.schema.predict.params; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/params;params"; +option java_multiple_files = true; +option java_outer_classname = "VideoActionRecognitionPredictionParamsProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.params"; + +// Prediction model parameters for Video Action Recognition. +message VideoActionRecognitionPredictionParams { + // The Model only returns predictions with at least this confidence score. + // Default value is 0.0 + float confidence_threshold = 1; + + // The model only returns up to that many top, by confidence score, + // predictions per frame of the video. If this number is very high, the + // Model may return fewer predictions per frame. Default value is 50. + int32 max_predictions = 2; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_classification.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_classification.proto new file mode 100644 index 00000000000..3fbd50741ef --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_classification.proto @@ -0,0 +1,61 @@ +// 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.aiplatform.v1beta1.schema.predict.params; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/params;params"; +option java_multiple_files = true; +option java_outer_classname = "VideoClassificationPredictionParamsProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.params"; + +// Prediction model parameters for Video Classification. +message VideoClassificationPredictionParams { + // The Model only returns predictions with at least this confidence score. + // Default value is 0.0 + float confidence_threshold = 1; + + // The Model only returns up to that many top, by confidence score, + // predictions per instance. If this number is very high, the Model may return + // fewer predictions. Default value is 10,000. + int32 max_predictions = 2; + + // Set to true to request segment-level classification. AI Platform returns + // labels and their confidence scores for the entire time segment of the + // video that user specified in the input instance. + // Default value is true + bool segment_classification = 3; + + // Set to true to request shot-level classification. AI Platform determines + // the boundaries for each camera shot in the entire time segment of the + // video that user specified in the input instance. AI Platform 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 the training data, but there are no metrics + // provided to describe that quality. + // Default value is false + bool shot_classification = 4; + + // Set to true to request classification for a video at one-second intervals. + // AI Platform returns labels and their confidence scores for each second of + // the entire time segment of the video that user specified in the input + // WARNING: Model evaluation is not done for this classification type, the + // quality of it depends on the training data, but there are no metrics + // provided to describe that quality. Default value is false + bool one_sec_interval_classification = 5; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_object_tracking.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_object_tracking.proto new file mode 100644 index 00000000000..bd8cde0bb46 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_object_tracking.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.aiplatform.v1beta1.schema.predict.params; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/params;params"; +option java_multiple_files = true; +option java_outer_classname = "VideoObjectTrackingPredictionParamsProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.params"; + +// Prediction model parameters for Video Object Tracking. +message VideoObjectTrackingPredictionParams { + // The Model only returns predictions with at least this confidence score. + // Default value is 0.0 + float confidence_threshold = 1; + + // The model only returns up to that many top, by confidence score, + // predictions per frame of the video. If this number is very high, the + // Model may return fewer predictions per frame. Default value is 50. + int32 max_predictions = 2; + + // Only bounding boxes with shortest edge at least that long as a relative + // value of video frame size are returned. Default value is 0.0. + float min_bounding_box_size = 3; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/classification.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/classification.proto new file mode 100644 index 00000000000..d86f17ce548 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/classification.proto @@ -0,0 +1,39 @@ +// 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.aiplatform.v1beta1.schema.predict.prediction; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction;prediction"; +option java_multiple_files = true; +option java_outer_classname = "ClassificationPredictionResultProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.prediction"; + +// Prediction output format for Image and Text Classification. +message ClassificationPredictionResult { + // The resource IDs of the AnnotationSpecs that had been identified, ordered + // by the confidence score descendingly. + repeated int64 ids = 1; + + // The display names of the AnnotationSpecs that had been identified, order + // matches the IDs. + repeated string display_names = 2; + + // The Model's confidences in correctness of the predicted IDs, higher value + // means higher confidence. Order matches the Ids. + repeated float confidences = 3; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_object_detection.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_object_detection.proto new file mode 100644 index 00000000000..6100bd86fa3 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_object_detection.proto @@ -0,0 +1,48 @@ +// 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.aiplatform.v1beta1.schema.predict.prediction; + +import "google/protobuf/struct.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction;prediction"; +option java_multiple_files = true; +option java_outer_classname = "ImageObjectDetectionPredictionResultProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.prediction"; + +// Prediction output format for Image Object Detection. +message ImageObjectDetectionPredictionResult { + // The resource IDs of the AnnotationSpecs that had been identified, ordered + // by the confidence score descendingly. + repeated int64 ids = 1; + + // The display names of the AnnotationSpecs that had been identified, order + // matches the IDs. + repeated string display_names = 2; + + // The Model's confidences in correctness of the predicted IDs, higher value + // means higher confidence. Order matches the Ids. + repeated float confidences = 3; + + // Bounding boxes, i.e. the rectangles over the image, that pinpoint + // the found AnnotationSpecs. Given in order that matches the IDs. Each + // bounding box is an array of 4 numbers `xMin`, `xMax`, `yMin`, and + // `yMax`, which represent the extremal coordinates of the box. They are + // relative to the image size, and the point 0,0 is in the top left + // of the image. + repeated google.protobuf.ListValue bboxes = 4; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_segmentation.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_segmentation.proto new file mode 100644 index 00000000000..15997bb164f --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_segmentation.proto @@ -0,0 +1,42 @@ +// 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.aiplatform.v1beta1.schema.predict.prediction; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction;prediction"; +option java_multiple_files = true; +option java_outer_classname = "ImageSegmentationPredictionResultProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.prediction"; + +// Prediction output format for Image Segmentation. +message ImageSegmentationPredictionResult { + // A PNG image where each pixel in the mask represents the category in which + // the pixel in the original image was predicted to belong to. The size of + // this image will be the same as the original image. The mapping between the + // AnntoationSpec and the color can be found in model's metadata. The model + // will choose the most likely category and if none of the categories reach + // the confidence threshold, the pixel will be marked as background. + bytes category_mask = 1; + + // A one channel image which is encoded as an 8bit lossless PNG. The size of + // the image will be the same as the original image. For a specific pixel, + // darker color means less confidence in correctness of the cateogry in the + // categoryMask for the corresponding pixel. Black means no confidence and + // white means complete confidence. + bytes confidence_mask = 2; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_classification.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_classification.proto new file mode 100644 index 00000000000..06dcbeb37f4 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_classification.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.aiplatform.v1beta1.schema.predict.prediction; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction;prediction"; +option java_multiple_files = true; +option java_outer_classname = "TabularClassificationPredictionResultProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.prediction"; + +// Prediction output format for Tabular Classification. +message TabularClassificationPredictionResult { + // The name of the classes being classified, contains all possible values of + // the target column. + repeated string classes = 1; + + // The model's confidence in each class being correct, higher + // value means higher confidence. The N-th score corresponds to + // the N-th class in classes. + repeated float scores = 2; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_regression.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_regression.proto new file mode 100644 index 00000000000..521b270d382 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_regression.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.aiplatform.v1beta1.schema.predict.prediction; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction;prediction"; +option java_multiple_files = true; +option java_outer_classname = "TabularRegressionPredictionResultProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.prediction"; + +// Prediction output format for Tabular Regression. +message TabularRegressionPredictionResult { + // The regression value. + float value = 1; + + // The lower bound of the prediction interval. + float lower_bound = 2; + + // The upper bound of the prediction interval. + float upper_bound = 3; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_extraction.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_extraction.proto new file mode 100644 index 00000000000..f8f15352626 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_extraction.proto @@ -0,0 +1,49 @@ +// 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.aiplatform.v1beta1.schema.predict.prediction; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction;prediction"; +option java_multiple_files = true; +option java_outer_classname = "TextExtractionPredictionResultProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.prediction"; + +// Prediction output format for Text Extraction. +message TextExtractionPredictionResult { + // The resource IDs of the AnnotationSpecs that had been identified, + // ordered by the confidence score descendingly. + repeated int64 ids = 1; + + // The display names of the AnnotationSpecs that had been identified, + // order matches the IDs. + repeated string display_names = 2; + + // The start offsets, inclusive, of the text segment in which the + // AnnotationSpec has been identified. Expressed as a zero-based number + // of characters as measured from the start of the text snippet. + repeated int64 text_segment_start_offsets = 3; + + // The end offsets, inclusive, of the text segment in which the + // AnnotationSpec has been identified. Expressed as a zero-based number + // of characters as measured from the start of the text snippet. + repeated int64 text_segment_end_offsets = 4; + + // The Model's confidences in correctness of the predicted IDs, higher + // value means higher confidence. Order matches the Ids. + repeated float confidences = 5; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_sentiment.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_sentiment.proto new file mode 100644 index 00000000000..08bf34f8b0f --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_sentiment.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.aiplatform.v1beta1.schema.predict.prediction; + +import "google/cloud/aiplatform/v1beta1/schema/predict/instance/text_sentiment.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction;prediction"; +option java_multiple_files = true; +option java_outer_classname = "TextSentimentPredictionResultProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.prediction"; + +// Represents a line of JSONL in the text sentiment batch prediction output +// file. This is a hack to allow printing of integer values. +message TextSentimentPredictionResult { + // Prediction output format for Text Sentiment. + message Prediction { + // The integer sentiment labels between 0 (inclusive) and sentimentMax label + // (inclusive), while 0 maps to the least positive sentiment and + // sentimentMax maps to the most positive one. The higher the score is, the + // more positive the sentiment in the text snippet is. Note: sentimentMax is + // an integer value between 1 (inclusive) and 10 (inclusive). + int32 sentiment = 1; + } + + // User's input instance. + google.cloud.aiplatform.v1beta1.schema.predict.instance.TextSentimentPredictionInstance instance = 1; + + // The prediction result. + Prediction prediction = 2; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/time_series_forecasting.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/time_series_forecasting.proto new file mode 100644 index 00000000000..e0641736666 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/time_series_forecasting.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.aiplatform.v1beta1.schema.predict.prediction; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction;prediction"; +option java_multiple_files = true; +option java_outer_classname = "TimeSeriesForecastingPredictionResultProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.prediction"; + +// Prediction output format for Time Series Forecasting. +message TimeSeriesForecastingPredictionResult { + // The regression value. + float value = 1; + + // The lower bound of the prediction interval. + float lower_bound = 2; + + // The upper bound of the prediction interval. + float upper_bound = 3; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_action_recognition.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_action_recognition.proto new file mode 100644 index 00000000000..05bd7db9367 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_action_recognition.proto @@ -0,0 +1,51 @@ +// 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.aiplatform.v1beta1.schema.predict.prediction; + +import "google/protobuf/duration.proto"; +import "google/protobuf/wrappers.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction;prediction"; +option java_multiple_files = true; +option java_outer_classname = "VideoActionRecognitionPredictionResultProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.prediction"; + +// Prediction output format for Video Action Recognition. +message VideoActionRecognitionPredictionResult { + // The resource ID of the AnnotationSpec that had been identified. + string id = 1; + + // The display name of the AnnotationSpec that had been identified. + string display_name = 2; + + // The beginning, inclusive, of the video's time segment in which the + // AnnotationSpec has been identified. Expressed as a number of seconds as + // measured from the start of the video, with fractions up to a microsecond + // precision, and with "s" appended at the end. + google.protobuf.Duration time_segment_start = 4; + + // The end, exclusive, of the video's time segment in which the + // AnnotationSpec has been identified. Expressed as a number of seconds as + // measured from the start of the video, with fractions up to a microsecond + // precision, and with "s" appended at the end. + google.protobuf.Duration time_segment_end = 5; + + // The Model's confidence in correction of this prediction, higher + // value means higher confidence. + google.protobuf.FloatValue confidence = 6; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_classification.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_classification.proto new file mode 100644 index 00000000000..49e3f976797 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_classification.proto @@ -0,0 +1,64 @@ +// 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.aiplatform.v1beta1.schema.predict.prediction; + +import "google/protobuf/duration.proto"; +import "google/protobuf/wrappers.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction;prediction"; +option java_multiple_files = true; +option java_outer_classname = "VideoClassificationPredictionResultProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.prediction"; + +// Prediction output format for Video Classification. +message VideoClassificationPredictionResult { + // The resource ID of the AnnotationSpec that had been identified. + string id = 1; + + // The display name of the AnnotationSpec that had been identified. + string display_name = 2; + + // The type of the prediction. The requested types can be configured + // via parameters. This will be one of + // - segment-classification + // - shot-classification + // - one-sec-interval-classification + string type = 3; + + // The beginning, inclusive, of the video's time segment in which the + // AnnotationSpec has been identified. Expressed as a number of seconds as + // measured from the start of the video, with fractions up to a microsecond + // precision, and with "s" appended at the end. Note that for + // 'segment-classification' prediction type, this equals the original + // 'timeSegmentStart' from the input instance, for other types it is the + // start of a shot or a 1 second interval respectively. + google.protobuf.Duration time_segment_start = 4; + + // The end, exclusive, of the video's time segment in which the + // AnnotationSpec has been identified. Expressed as a number of seconds as + // measured from the start of the video, with fractions up to a microsecond + // precision, and with "s" appended at the end. Note that for + // 'segment-classification' prediction type, this equals the original + // 'timeSegmentEnd' from the input instance, for other types it is the end + // of a shot or a 1 second interval respectively. + google.protobuf.Duration time_segment_end = 5; + + // The Model's confidence in correction of this prediction, higher + // value means higher confidence. + google.protobuf.FloatValue confidence = 6; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_object_tracking.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_object_tracking.proto new file mode 100644 index 00000000000..2047a302e63 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_object_tracking.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.aiplatform.v1beta1.schema.predict.prediction; + +import "google/protobuf/duration.proto"; +import "google/protobuf/wrappers.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction;prediction"; +option java_multiple_files = true; +option java_outer_classname = "VideoObjectTrackingPredictionResultProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.prediction"; + +// Prediction output format for Video Object Tracking. +message VideoObjectTrackingPredictionResult { + // The fields `xMin`, `xMax`, `yMin`, and `yMax` refer to a bounding box, + // i.e. the rectangle over the video frame pinpointing the found + // AnnotationSpec. The coordinates are relative to the frame size, and the + // point 0,0 is in the top left of the frame. + message Frame { + // A time (frame) of a video in which the object has been detected. + // Expressed as a number of seconds as measured from the + // start of the video, with fractions up to a microsecond precision, and + // with "s" appended at the end. + google.protobuf.Duration time_offset = 1; + + // The leftmost coordinate of the bounding box. + google.protobuf.FloatValue x_min = 2; + + // The rightmost coordinate of the bounding box. + google.protobuf.FloatValue x_max = 3; + + // The topmost coordinate of the bounding box. + google.protobuf.FloatValue y_min = 4; + + // The bottommost coordinate of the bounding box. + google.protobuf.FloatValue y_max = 5; + } + + // The resource ID of the AnnotationSpec that had been identified. + string id = 1; + + // The display name of the AnnotationSpec that had been identified. + string display_name = 2; + + // The beginning, inclusive, of the video's time segment in which the + // object instance has been detected. Expressed as a number of seconds as + // measured from the start of the video, with fractions up to a microsecond + // precision, and with "s" appended at the end. + google.protobuf.Duration time_segment_start = 3; + + // The end, inclusive, of the video's time segment in which the + // object instance has been detected. Expressed as a number of seconds as + // measured from the start of the video, with fractions up to a microsecond + // precision, and with "s" appended at the end. + google.protobuf.Duration time_segment_end = 4; + + // The Model's confidence in correction of this prediction, higher + // value means higher confidence. + google.protobuf.FloatValue confidence = 5; + + // All of the frames of the video in which a single object instance has been + // detected. The bounding boxes in the frames identify the same object. + repeated Frame frames = 6; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/saved_query_metadata.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/saved_query_metadata.proto new file mode 100644 index 00000000000..d5995756772 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/saved_query_metadata.proto @@ -0,0 +1,41 @@ +// 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.aiplatform.v1beta1.schema; + +import "google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema;schema"; +option java_multiple_files = true; +option java_outer_classname = "SavedQueryMetadataProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema"; + +// The metadata of SavedQuery contains TextSentiment Annotations. +message TextSentimentSavedQueryMetadata { + // The maximum sentiment of sentiment Anntoation in this SavedQuery. + int32 sentiment_max = 1; +} + +message VisualInspectionClassificationLabelSavedQueryMetadata { + // Whether or not the classification label is multi_label. + bool multi_label = 1; +} + +message VisualInspectionMaskSavedQueryMetadata { + // The mapping between color and AnnotationSpec for this SavedQuery. + repeated AnnotationSpecColor color_map = 2; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_forecasting.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_forecasting.proto new file mode 100644 index 00000000000..6b0bacf1cb1 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_forecasting.proto @@ -0,0 +1,296 @@ +// 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.aiplatform.v1beta1.schema.trainingjob.definition; + +import "google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition"; +option java_multiple_files = true; +option java_outer_classname = "AutoMLForecastingProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition"; + +// A TrainingJob that trains and uploads an AutoML Forecasting Model. +message AutoMlForecasting { + // The input parameters of this TrainingJob. + AutoMlForecastingInputs inputs = 1; + + // The metadata information. + AutoMlForecastingMetadata metadata = 2; +} + +message AutoMlForecastingInputs { + message Transformation { + // Training pipeline will infer the proper transformation based on the + // statistic of dataset. + message AutoTransformation { + string column_name = 1; + } + + // Training pipeline will perform following transformation functions. + // * The value converted to float32. + // * The z_score of the value. + // * log(value+1) when the value is greater than or equal to 0. Otherwise, + // this transformation is not applied and the value is considered a + // missing value. + // * z_score of log(value+1) when the value is greater than or equal to 0. + // Otherwise, this transformation is not applied and the value is + // considered a missing value. + // * A boolean value that indicates whether the value is valid. + message NumericTransformation { + string column_name = 1; + + // If invalid values is allowed, the training pipeline will create a + // boolean feature that indicated whether the value is valid. + // Otherwise, the training pipeline will discard the input row from + // trainining data. + bool invalid_values_allowed = 2; + } + + // Training pipeline will perform following transformation functions. + // * The categorical string as is--no change to case, punctuation, + // spelling, + // tense, and so on. + // * Convert the category name to a dictionary lookup index and generate an + // embedding for each index. + // * Categories that appear less than 5 times in the training dataset are + // treated as the "unknown" category. The "unknown" category gets its own + // special lookup index and resulting embedding. + message CategoricalTransformation { + string column_name = 1; + } + + // Training pipeline will perform following transformation functions. + // * Apply the transformation functions for Numerical columns. + // * Determine the year, month, day,and weekday. Treat each value from the + // * timestamp as a Categorical column. + // * Invalid numerical values (for example, values that fall outside of a + // typical timestamp range, or are extreme values) receive no special + // treatment and are not removed. + message TimestampTransformation { + string column_name = 1; + + // 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 is RFC 3339 `date-time` format, where + // `time-offset` = `"Z"` (e.g. 1985-04-12T23:20:50.52Z) + string time_format = 2; + + // If invalid values is allowed, the training pipeline will create a + // boolean feature that indicated whether the value is valid. + // Otherwise, the training pipeline will discard the input row from + // trainining data. + bool invalid_values_allowed = 3; + } + + // Training pipeline will perform following transformation functions. + // * The text as is--no change to case, punctuation, spelling, tense, and + // so + // on. + // * Tokenize text to words. Convert each words to a dictionary lookup + // index + // and generate an embedding for each index. Combine the embedding of all + // elements into a single embedding using the mean. + // * Tokenization is based on unicode script boundaries. + // * Missing values get their own lookup index and resulting embedding. + // * Stop-words receive no special treatment and are not removed. + message TextTransformation { + string column_name = 1; + } + + // Treats the column as numerical array and performs following + // transformation functions. + // * All transformations for Numerical types applied to the average of the + // all elements. + // * The average of empty arrays is treated as zero. + message NumericArrayTransformation { + string column_name = 1; + + // If invalid values is allowed, the training pipeline will create a + // boolean feature that indicated whether the value is valid. + // Otherwise, the training pipeline will discard the input row from + // trainining data. + bool invalid_values_allowed = 2; + } + + // Treats the column as categorical array and performs following + // transformation functions. + // * For each element in the array, convert the category name to a + // dictionary + // lookup index and generate an embedding for each index. + // Combine the embedding of all elements into a single embedding using + // the mean. + // * Empty arrays treated as an embedding of zeroes. + message CategoricalArrayTransformation { + string column_name = 1; + } + + // Treats the column as text array and performs following transformation + // functions. + // * Concatenate all text values in the array into a single text value + // using + // a space (" ") as a delimiter, and then treat the result as a single + // text value. Apply the transformations for Text columns. + // * Empty arrays treated as an empty text. + message TextArrayTransformation { + string column_name = 1; + } + + // The transformation that the training pipeline will apply to the input + // columns. + oneof transformation_detail { + AutoTransformation auto = 1; + + NumericTransformation numeric = 2; + + CategoricalTransformation categorical = 3; + + TimestampTransformation timestamp = 4; + + TextTransformation text = 5; + + NumericArrayTransformation repeated_numeric = 6; + + CategoricalArrayTransformation repeated_categorical = 7; + + TextArrayTransformation repeated_text = 8; + } + } + + // A duration of time expressed in time granularity units. + message Period { + // The time granularity unit of this time period. + // The supported unit are: + // "hour" + // "day" + // "week" + // "month" + // "year" + string unit = 1; + + // The number of units per period, e.g. 3 weeks or 2 months. + int64 quantity = 2; + } + + // The name of the column that the model is to predict. + string target_column = 1; + + // The name of the column that identifies the time series. + string time_series_identifier_column = 2; + + // The name of the column that identifies time order in the time series. + string time_column = 3; + + // Each transformation will apply transform function to given input column. + // And the result will be used for training. + // When creating transformation for BigQuery Struct column, the column should + // be flattened using "." as the delimiter. + repeated Transformation transformations = 4; + + // Objective function the model is optimizing towards. The training process + // creates a model that optimizes the value of the objective + // function over the validation set. + // + // The supported optimization objectives: + // "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). + // "minimize-rmspe" - Minimize root-mean-squared percentage error (RMSPE). + // "minimize-wape-mae" - Minimize the combination of weighted absolute + // percentage error (WAPE) and mean-absolute-error (MAE). + string optimization_objective = 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; + + // Column name that should be used as the weight column. + // Higher values in this column give more importance to the row + // during model training. The column must have numeric values between 0 and + // 10000 inclusively; 0 means the row is ignored for training. If weight + // column field is not set, then all rows are assumed to have equal weight + // of 1. + string weight_column = 7; + + // Column names that should be used as static columns. + // The value of these columns are static per time series. + repeated string static_columns = 8; + + // Column names that should be used as time variant past only columns. + // This column contains information for the given entity (identified by the + // time_series_identifier_column) that is known for the past but not the + // future (e.g. population of a city in a given year, or weather on a given + // day). + repeated string time_variant_past_only_columns = 9; + + // Column names that should be used as time variant past and future columns. + // This column contains information for the given entity (identified by the + // key column) that is known for the past and the future + repeated string time_variant_past_and_future_columns = 10; + + // Expected difference in time granularity between rows in the data. If it is + // not set, the period is inferred from data. + Period period = 11; + + // The number of periods offset into the future as the start of the forecast + // window (the window of future values to predict, relative to the present.), + // where each period is one unit of granularity as defined by the `period` + // field above. Default to 0. Inclusive. + int64 forecast_window_start = 12; + + // The number of periods offset into the future as the end of the forecast + // window (the window of future values to predict, relative to the present.), + // where each period is one unit of granularity as defined by the `period` + // field above. Inclusive. + int64 forecast_window_end = 13; + + // The number of periods offset into the past to restrict past sequence, where + // each period is one unit of granularity as defined by the `period`. Default + // value 0 means that it lets algorithm to define the value. Inclusive. + int64 past_horizon = 14; + + // Configuration for exporting test set predictions to a BigQuery table. If + // this configuration is absent, then the export is not performed. + ExportEvaluatedDataItemsConfig export_evaluated_data_items_config = 15; +} + +// Model metadata specific to AutoML Forecasting. +message AutoMlForecastingMetadata { + // 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 = 1; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_classification.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_classification.proto new file mode 100644 index 00000000000..024cfef7afc --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_classification.proto @@ -0,0 +1,125 @@ +// 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.aiplatform.v1beta1.schema.trainingjob.definition; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition"; +option java_multiple_files = true; +option java_outer_classname = "AutoMLImageClassificationProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition"; + +// A TrainingJob that trains and uploads an AutoML Image Classification Model. +message AutoMlImageClassification { + // The input parameters of this TrainingJob. + AutoMlImageClassificationInputs inputs = 1; + + // The metadata information. + AutoMlImageClassificationMetadata metadata = 2; +} + +message AutoMlImageClassificationInputs { + enum ModelType { + // Should not be set. + MODEL_TYPE_UNSPECIFIED = 0; + + // A Model best tailored to be used within Google Cloud, and which cannot + // be exported. + // Default. + CLOUD = 1; + + // A model that, in addition to being available within Google + // Cloud, can also be exported (see ModelService.ExportModel) as TensorFlow + // or Core ML model and used on a mobile or edge device afterwards. + // Expected to have low latency, but may have lower prediction + // quality than other mobile models. + MOBILE_TF_LOW_LATENCY_1 = 2; + + // A model that, in addition to being available within Google + // Cloud, can also be exported (see ModelService.ExportModel) as TensorFlow + // or Core ML model and used on a mobile or edge device with afterwards. + MOBILE_TF_VERSATILE_1 = 3; + + // A model that, in addition to being available within Google + // Cloud, can also be exported (see ModelService.ExportModel) as TensorFlow + // or Core ML model and used on a mobile or edge device afterwards. + // Expected to have a higher latency, but should also have a higher + // prediction quality than other mobile models. + MOBILE_TF_HIGH_ACCURACY_1 = 4; + } + + ModelType model_type = 1; + + // The ID of the `base` model. If it is specified, the new model will be + // trained based on the `base` model. Otherwise, the new model will be + // trained from scratch. The `base` model must be in the same + // Project and Location as the new Model to train, and have the same + // modelType. + string base_model_id = 2; + + // The training budget of creating this model, expressed in milli node + // hours i.e. 1,000 value in this field means 1 node hour. The actual + // metadata.costMilliNodeHours will be equal or less than this value. + // If further model training ceases to provide any improvements, it will + // stop without using the full budget and the metadata.successfulStopReason + // will be `model-converged`. + // Note, node_hour = actual_hour * number_of_nodes_involved. + // For modelType `cloud`(default), the 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, considering 8 nodes are used. + // For model types `mobile-tf-low-latency-1`, `mobile-tf-versatile-1`, + // `mobile-tf-high-accuracy-1`, the training 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 on a + // single node that is used. + int64 budget_milli_node_hours = 3; + + // Use the entire training budget. This disables the early stopping feature. + // When false the early stopping feature is enabled, which means that + // AutoML Image Classification might stop training before the entire + // training budget has been used. + bool disable_early_stopping = 4; + + // If false, a single-label (multi-class) Model will be trained (i.e. + // assuming that for each image just up to one annotation may be + // applicable). If true, a multi-label Model will be trained (i.e. + // assuming that for each image multiple annotations may be applicable). + bool multi_label = 5; +} + +message AutoMlImageClassificationMetadata { + enum SuccessfulStopReason { + // Should not be set. + SUCCESSFUL_STOP_REASON_UNSPECIFIED = 0; + + // The inputs.budgetMilliNodeHours had been reached. + BUDGET_REACHED = 1; + + // Further training of the Model ceased to increase its quality, since it + // already has converged. + MODEL_CONVERGED = 2; + } + + // The actual training 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 inputs.budgetMilliNodeHours. + int64 cost_milli_node_hours = 1; + + // For successful job completions, this is the reason why the job has + // finished. + SuccessfulStopReason successful_stop_reason = 2; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_object_detection.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_object_detection.proto new file mode 100644 index 00000000000..c83d8e3be5b --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_object_detection.proto @@ -0,0 +1,117 @@ +// 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.aiplatform.v1beta1.schema.trainingjob.definition; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition"; +option java_multiple_files = true; +option java_outer_classname = "AutoMLImageObjectDetectionProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition"; + +// A TrainingJob that trains and uploads an AutoML Image Object Detection Model. +message AutoMlImageObjectDetection { + // The input parameters of this TrainingJob. + AutoMlImageObjectDetectionInputs inputs = 1; + + // The metadata information + AutoMlImageObjectDetectionMetadata metadata = 2; +} + +message AutoMlImageObjectDetectionInputs { + enum ModelType { + // Should not be set. + MODEL_TYPE_UNSPECIFIED = 0; + + // A model best tailored to be used within Google Cloud, and which cannot + // be exported. Expected to have a higher latency, but should also have a + // higher prediction quality than other cloud models. + CLOUD_HIGH_ACCURACY_1 = 1; + + // A model best tailored to be used within Google Cloud, and which cannot + // be exported. Expected to have a low latency, but may have lower + // prediction quality than other cloud models. + CLOUD_LOW_LATENCY_1 = 2; + + // A model that, in addition to being available within Google + // Cloud can also be exported (see ModelService.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 mobile models. + MOBILE_TF_LOW_LATENCY_1 = 3; + + // A model that, in addition to being available within Google + // Cloud can also be exported (see ModelService.ExportModel) and + // used on a mobile or edge device with TensorFlow afterwards. + MOBILE_TF_VERSATILE_1 = 4; + + // A model that, in addition to being available within Google + // Cloud, can also be exported (see ModelService.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 mobile models. + MOBILE_TF_HIGH_ACCURACY_1 = 5; + } + + ModelType model_type = 1; + + // The training budget of creating this model, expressed in milli node + // hours i.e. 1,000 value in this field means 1 node hour. The actual + // metadata.costMilliNodeHours will be equal or less than this value. + // If further model training ceases to provide any improvements, it will + // stop without using the full budget and the metadata.successfulStopReason + // will be `model-converged`. + // Note, node_hour = actual_hour * number_of_nodes_involved. + // For modelType `cloud`(default), the 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, considering 9 nodes are used. + // For model types `mobile-tf-low-latency-1`, `mobile-tf-versatile-1`, + // `mobile-tf-high-accuracy-1` + // the training 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 on a single node that is used. + int64 budget_milli_node_hours = 2; + + // Use the entire training budget. This disables the early stopping feature. + // When false the early stopping feature is enabled, which means that AutoML + // Image Object Detection might stop training before the entire training + // budget has been used. + bool disable_early_stopping = 3; +} + +message AutoMlImageObjectDetectionMetadata { + enum SuccessfulStopReason { + // Should not be set. + SUCCESSFUL_STOP_REASON_UNSPECIFIED = 0; + + // The inputs.budgetMilliNodeHours had been reached. + BUDGET_REACHED = 1; + + // Further training of the Model ceased to increase its quality, since it + // already has converged. + MODEL_CONVERGED = 2; + } + + // The actual training 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 inputs.budgetMilliNodeHours. + int64 cost_milli_node_hours = 1; + + // For successful job completions, this is the reason why the job has + // finished. + SuccessfulStopReason successful_stop_reason = 2; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_segmentation.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_segmentation.proto new file mode 100644 index 00000000000..e6625da7543 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_segmentation.proto @@ -0,0 +1,96 @@ +// 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.aiplatform.v1beta1.schema.trainingjob.definition; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition"; +option java_multiple_files = true; +option java_outer_classname = "AutoMLImageSegmentationProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition"; + +// A TrainingJob that trains and uploads an AutoML Image Segmentation Model. +message AutoMlImageSegmentation { + // The input parameters of this TrainingJob. + AutoMlImageSegmentationInputs inputs = 1; + + // The metadata information. + AutoMlImageSegmentationMetadata metadata = 2; +} + +message AutoMlImageSegmentationInputs { + enum ModelType { + // Should not be set. + MODEL_TYPE_UNSPECIFIED = 0; + + // A model to be used via prediction calls to uCAIP API. Expected + // to have a higher latency, but should also have a higher prediction + // quality than other models. + CLOUD_HIGH_ACCURACY_1 = 1; + + // A model to be used via prediction calls to uCAIP API. Expected + // to have a lower latency but relatively lower prediction quality. + CLOUD_LOW_ACCURACY_1 = 2; + } + + ModelType model_type = 1; + + // The training budget of creating this model, expressed in milli node + // hours i.e. 1,000 value in this field means 1 node hour. The actual + // metadata.costMilliNodeHours will be equal or less than this value. + // If further model training ceases to provide any improvements, it will + // stop without using the full budget and the metadata.successfulStopReason + // will be `model-converged`. + // Note, node_hour = actual_hour * number_of_nodes_involved. Or + // actaul_wall_clock_hours = train_budget_milli_node_hours / + // (number_of_nodes_involved * 1000) + // For modelType `cloud-high-accuracy-1`(default), the budget must be between + // 20,000 and 2,000,000 milli node hours, inclusive. The default value is + // 192,000 which represents one day in wall time + // (1000 milli * 24 hours * 8 nodes). + int64 budget_milli_node_hours = 2; + + // The ID of the `base` model. If it is specified, the new model will be + // trained based on the `base` model. Otherwise, the new model will be + // trained from scratch. The `base` model must be in the same + // Project and Location as the new Model to train, and have the same + // modelType. + string base_model_id = 3; +} + +message AutoMlImageSegmentationMetadata { + enum SuccessfulStopReason { + // Should not be set. + SUCCESSFUL_STOP_REASON_UNSPECIFIED = 0; + + // The inputs.budgetMilliNodeHours had been reached. + BUDGET_REACHED = 1; + + // Further training of the Model ceased to increase its quality, since it + // already has converged. + MODEL_CONVERGED = 2; + } + + // The actual training 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 inputs.budgetMilliNodeHours. + int64 cost_milli_node_hours = 1; + + // For successful job completions, this is the reason why the job has + // finished. + SuccessfulStopReason successful_stop_reason = 2; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_tables.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_tables.proto new file mode 100644 index 00000000000..8cf8eeb9970 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_tables.proto @@ -0,0 +1,278 @@ +// 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.aiplatform.v1beta1.schema.trainingjob.definition; + +import "google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition"; +option java_multiple_files = true; +option java_outer_classname = "AutoMLTablesProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition"; + +// A TrainingJob that trains and uploads an AutoML Tables Model. +message AutoMlTables { + // The input parameters of this TrainingJob. + AutoMlTablesInputs inputs = 1; + + // The metadata information. + AutoMlTablesMetadata metadata = 2; +} + +message AutoMlTablesInputs { + message Transformation { + // Training pipeline will infer the proper transformation based on the + // statistic of dataset. + message AutoTransformation { + string column_name = 1; + } + + // Training pipeline will perform following transformation functions. + // * The value converted to float32. + // * The z_score of the value. + // * log(value+1) when the value is greater than or equal to 0. Otherwise, + // this transformation is not applied and the value is considered a + // missing value. + // * z_score of log(value+1) when the value is greater than or equal to 0. + // Otherwise, this transformation is not applied and the value is + // considered a missing value. + // * A boolean value that indicates whether the value is valid. + message NumericTransformation { + string column_name = 1; + + // If invalid values is allowed, the training pipeline will create a + // boolean feature that indicated whether the value is valid. + // Otherwise, the training pipeline will discard the input row from + // trainining data. + bool invalid_values_allowed = 2; + } + + // Training pipeline will perform following transformation functions. + // * The categorical string as is--no change to case, punctuation, + // spelling, + // tense, and so on. + // * Convert the category name to a dictionary lookup index and generate an + // embedding for each index. + // * Categories that appear less than 5 times in the training dataset are + // treated as the "unknown" category. The "unknown" category gets its own + // special lookup index and resulting embedding. + message CategoricalTransformation { + string column_name = 1; + } + + // Training pipeline will perform following transformation functions. + // * Apply the transformation functions for Numerical columns. + // * Determine the year, month, day,and weekday. Treat each value from the + // * timestamp as a Categorical column. + // * Invalid numerical values (for example, values that fall outside of a + // typical timestamp range, or are extreme values) receive no special + // treatment and are not removed. + message TimestampTransformation { + string column_name = 1; + + // 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 is RFC 3339 `date-time` format, where + // `time-offset` = `"Z"` (e.g. 1985-04-12T23:20:50.52Z) + string time_format = 2; + + // If invalid values is allowed, the training pipeline will create a + // boolean feature that indicated whether the value is valid. + // Otherwise, the training pipeline will discard the input row from + // trainining data. + bool invalid_values_allowed = 3; + } + + // Training pipeline will perform following transformation functions. + // * The text as is--no change to case, punctuation, spelling, tense, and + // so + // on. + // * Tokenize text to words. Convert each words to a dictionary lookup + // index + // and generate an embedding for each index. Combine the embedding of all + // elements into a single embedding using the mean. + // * Tokenization is based on unicode script boundaries. + // * Missing values get their own lookup index and resulting embedding. + // * Stop-words receive no special treatment and are not removed. + message TextTransformation { + string column_name = 1; + } + + // Treats the column as numerical array and performs following + // transformation functions. + // * All transformations for Numerical types applied to the average of the + // all elements. + // * The average of empty arrays is treated as zero. + message NumericArrayTransformation { + string column_name = 1; + + // If invalid values is allowed, the training pipeline will create a + // boolean feature that indicated whether the value is valid. + // Otherwise, the training pipeline will discard the input row from + // trainining data. + bool invalid_values_allowed = 2; + } + + // Treats the column as categorical array and performs following + // transformation functions. + // * For each element in the array, convert the category name to a + // dictionary + // lookup index and generate an embedding for each index. + // Combine the embedding of all elements into a single embedding using + // the mean. + // * Empty arrays treated as an embedding of zeroes. + message CategoricalArrayTransformation { + string column_name = 1; + } + + // Treats the column as text array and performs following transformation + // functions. + // * Concatenate all text values in the array into a single text value + // using + // a space (" ") as a delimiter, and then treat the result as a single + // text value. Apply the transformations for Text columns. + // * Empty arrays treated as an empty text. + message TextArrayTransformation { + string column_name = 1; + } + + // The transformation that the training pipeline will apply to the input + // columns. + oneof transformation_detail { + AutoTransformation auto = 1; + + NumericTransformation numeric = 2; + + CategoricalTransformation categorical = 3; + + TimestampTransformation timestamp = 4; + + TextTransformation text = 5; + + NumericArrayTransformation repeated_numeric = 6; + + CategoricalArrayTransformation repeated_categorical = 7; + + TextArrayTransformation repeated_text = 8; + } + } + + // 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 = 5; + + // Required when optimization_objective is "maximize-recall-at-precision". + // Must be between 0 and 1, inclusive. + float optimization_objective_precision_value = 6; + } + + // The type of prediction the Model is to produce. + // "classification" - Predict one out of multiple target values is + // picked for each row. + // "regression" - Predict a value based on its relation to other values. + // This type is available only to columns that contain + // semantically numeric values, i.e. integers or floating + // point number, even if stored as e.g. strings. + string prediction_type = 1; + + // The column name of the target column that the model is to predict. + string target_column = 2; + + // Each transformation will apply transform function to given input column. + // And the result will be used for training. + // When creating transformation for BigQuery Struct column, the column should + // be flattened using "." as the delimiter. + repeated Transformation transformations = 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; + + // 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 = 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 = 8; + + // Column name that should be used as the weight column. + // Higher values in this column give more importance to the row + // during model training. The column must have numeric values between 0 and + // 10000 inclusively; 0 means the row is ignored for training. If weight + // column field is not set, then all rows are assumed to have equal weight + // of 1. + string weight_column_name = 9; + + // Configuration for exporting test set predictions to a BigQuery table. If + // this configuration is absent, then the export is not performed. + ExportEvaluatedDataItemsConfig export_evaluated_data_items_config = 10; +} + +// Model metadata specific to AutoML Tables. +message AutoMlTablesMetadata { + // 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 = 1; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_classification.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_classification.proto new file mode 100644 index 00000000000..8cc60b00b2e --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_classification.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.aiplatform.v1beta1.schema.trainingjob.definition; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition"; +option java_multiple_files = true; +option java_outer_classname = "AutoMLTextClassificationProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition"; + +// A TrainingJob that trains and uploads an AutoML Text Classification Model. +message AutoMlTextClassification { + // The input parameters of this TrainingJob. + AutoMlTextClassificationInputs inputs = 1; +} + +message AutoMlTextClassificationInputs { + bool multi_label = 1; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_extraction.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_extraction.proto new file mode 100644 index 00000000000..f979c03504f --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_extraction.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.aiplatform.v1beta1.schema.trainingjob.definition; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition"; +option java_multiple_files = true; +option java_outer_classname = "AutoMLTextExtractionProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition"; + +// A TrainingJob that trains and uploads an AutoML Text Extraction Model. +message AutoMlTextExtraction { + // The input parameters of this TrainingJob. + AutoMlTextExtractionInputs inputs = 1; +} + +message AutoMlTextExtractionInputs { + +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_sentiment.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_sentiment.proto new file mode 100644 index 00000000000..a54a344e824 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_sentiment.proto @@ -0,0 +1,41 @@ +// 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.aiplatform.v1beta1.schema.trainingjob.definition; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition"; +option java_multiple_files = true; +option java_outer_classname = "AutoMLTextSentimentProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition"; + +// A TrainingJob that trains and uploads an AutoML Text Sentiment Model. +message AutoMlTextSentiment { + // The input parameters of this TrainingJob. + AutoMlTextSentimentInputs inputs = 1; +} + +message AutoMlTextSentimentInputs { + // 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 sentimentMax (inclusive on both ends), and all the values + // in the range must be represented in the dataset before a model can be + // created. + // Only the Annotations with this sentimentMax will be used for training. + // sentimentMax value must be between 1 and 10 (inclusive). + int32 sentiment_max = 1; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_action_recognition.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_action_recognition.proto new file mode 100644 index 00000000000..53ed93d400b --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_action_recognition.proto @@ -0,0 +1,49 @@ +// 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.aiplatform.v1beta1.schema.trainingjob.definition; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition"; +option java_multiple_files = true; +option java_outer_classname = "AutoMLVideoActionRecognitionProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition"; + +// A TrainingJob that trains and uploads an AutoML Video Action Recognition +// Model. +message AutoMlVideoActionRecognition { + // The input parameters of this TrainingJob. + AutoMlVideoActionRecognitionInputs inputs = 1; +} + +message AutoMlVideoActionRecognitionInputs { + enum ModelType { + // Should not be set. + MODEL_TYPE_UNSPECIFIED = 0; + + // A model best tailored to be used within Google Cloud, and which c annot + // be exported. Default. + CLOUD = 1; + + // A model that, in addition to being available within Google Cloud, can + // also be exported (see ModelService.ExportModel) as a TensorFlow or + // TensorFlow Lite model and used on a mobile or edge device afterwards. + MOBILE_VERSATILE_1 = 2; + } + + ModelType model_type = 1; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto new file mode 100644 index 00000000000..5bb852d6d0d --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto @@ -0,0 +1,48 @@ +// 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.aiplatform.v1beta1.schema.trainingjob.definition; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition"; +option java_multiple_files = true; +option java_outer_classname = "AutoMLVideoClassificationProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition"; + +// A TrainingJob that trains and uploads an AutoML Video Classification Model. +message AutoMlVideoClassification { + // The input parameters of this TrainingJob. + AutoMlVideoClassificationInputs inputs = 1; +} + +message AutoMlVideoClassificationInputs { + enum ModelType { + // Should not be set. + MODEL_TYPE_UNSPECIFIED = 0; + + // A model best tailored to be used within Google Cloud, and which cannot + // be exported. Default. + CLOUD = 1; + + // A model that, in addition to being available within Google Cloud, can + // also be exported (see ModelService.ExportModel) as a TensorFlow or + // TensorFlow Lite model and used on a mobile or edge device afterwards. + MOBILE_VERSATILE_1 = 2; + } + + ModelType model_type = 1; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto new file mode 100644 index 00000000000..84f945e2886 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto @@ -0,0 +1,64 @@ +// 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.aiplatform.v1beta1.schema.trainingjob.definition; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition"; +option java_multiple_files = true; +option java_outer_classname = "AutoMLVideoObjectTrackingProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition"; + +// A TrainingJob that trains and uploads an AutoML Video ObjectTracking Model. +message AutoMlVideoObjectTracking { + // The input parameters of this TrainingJob. + AutoMlVideoObjectTrackingInputs inputs = 1; +} + +message AutoMlVideoObjectTrackingInputs { + enum ModelType { + // Should not be set. + MODEL_TYPE_UNSPECIFIED = 0; + + // A model best tailored to be used within Google Cloud, and which c annot + // be exported. Default. + CLOUD = 1; + + // A model that, in addition to being available within Google Cloud, can + // also be exported (see ModelService.ExportModel) as a TensorFlow or + // TensorFlow Lite model and used on a mobile or edge device afterwards. + MOBILE_VERSATILE_1 = 2; + + // A versatile model that is meant to be exported (see + // ModelService.ExportModel) and used on a Google Coral device. + MOBILE_CORAL_VERSATILE_1 = 3; + + // A model that trades off quality for low latency, to be exported (see + // ModelService.ExportModel) and used on a Google Coral device. + MOBILE_CORAL_LOW_LATENCY_1 = 4; + + // A versatile model that is meant to be exported (see + // ModelService.ExportModel) and used on an NVIDIA Jetson device. + MOBILE_JETSON_VERSATILE_1 = 5; + + // A model that trades off quality for low latency, to be exported (see + // ModelService.ExportModel) and used on an NVIDIA Jetson device. + MOBILE_JETSON_LOW_LATENCY_1 = 6; + } + + ModelType model_type = 1; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto new file mode 100644 index 00000000000..0125794bf11 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto @@ -0,0 +1,39 @@ +// 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.aiplatform.v1beta1.schema.trainingjob.definition; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition"; +option java_multiple_files = true; +option java_outer_classname = "ExportEvaluatedDataItemsConfigProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition"; + +// Configuration for exporting test set predictions to a BigQuery table. +message ExportEvaluatedDataItemsConfig { + // URI of desired destination BigQuery table. If not specified, then results + // are exported to the following auto-created BigQuery table: + // + // :export_evaluated_examples__.evaluated_examples + string destination_bigquery_uri = 1; + + // If true and an export destination is specified, then the contents of the + // destination will be overwritten. Otherwise, if the export destination + // already exists, then the export operation will not trigger and a failure + // response is returned. + bool override_existing_table = 2; +} diff --git a/packages/google-cloud-aiplatform/protos/protos.d.ts b/packages/google-cloud-aiplatform/protos/protos.d.ts index dcbc01afa72..0a8c18d6bf3 100644 --- a/packages/google-cloud-aiplatform/protos/protos.d.ts +++ b/packages/google-cloud-aiplatform/protos/protos.d.ts @@ -21000,5382 +21000,19555 @@ export namespace google { public toJSON(): { [k: string]: any }; } - /** Represents a SpecialistPoolService */ - class SpecialistPoolService extends $protobuf.rpc.Service { + /** Namespace schema. */ + namespace schema { - /** - * Constructs a new SpecialistPoolService 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); + /** Properties of an ImageClassificationAnnotation. */ + interface IImageClassificationAnnotation { - /** - * Creates new SpecialistPoolService 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): SpecialistPoolService; + /** ImageClassificationAnnotation annotationSpecId */ + annotationSpecId?: (string|null); - /** - * Calls CreateSpecialistPool. - * @param request CreateSpecialistPoolRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public createSpecialistPool(request: google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolRequest, callback: google.cloud.aiplatform.v1beta1.SpecialistPoolService.CreateSpecialistPoolCallback): void; + /** ImageClassificationAnnotation displayName */ + displayName?: (string|null); + } - /** - * Calls CreateSpecialistPool. - * @param request CreateSpecialistPoolRequest message or plain object - * @returns Promise - */ - public createSpecialistPool(request: google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolRequest): Promise; + /** Represents an ImageClassificationAnnotation. */ + class ImageClassificationAnnotation implements IImageClassificationAnnotation { - /** - * Calls GetSpecialistPool. - * @param request GetSpecialistPoolRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SpecialistPool - */ - public getSpecialistPool(request: google.cloud.aiplatform.v1beta1.IGetSpecialistPoolRequest, callback: google.cloud.aiplatform.v1beta1.SpecialistPoolService.GetSpecialistPoolCallback): void; + /** + * Constructs a new ImageClassificationAnnotation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.IImageClassificationAnnotation); - /** - * Calls GetSpecialistPool. - * @param request GetSpecialistPoolRequest message or plain object - * @returns Promise - */ - public getSpecialistPool(request: google.cloud.aiplatform.v1beta1.IGetSpecialistPoolRequest): Promise; + /** ImageClassificationAnnotation annotationSpecId. */ + public annotationSpecId: string; - /** - * Calls ListSpecialistPools. - * @param request ListSpecialistPoolsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListSpecialistPoolsResponse - */ - public listSpecialistPools(request: google.cloud.aiplatform.v1beta1.IListSpecialistPoolsRequest, callback: google.cloud.aiplatform.v1beta1.SpecialistPoolService.ListSpecialistPoolsCallback): void; + /** ImageClassificationAnnotation displayName. */ + public displayName: string; - /** - * Calls ListSpecialistPools. - * @param request ListSpecialistPoolsRequest message or plain object - * @returns Promise - */ - public listSpecialistPools(request: google.cloud.aiplatform.v1beta1.IListSpecialistPoolsRequest): Promise; + /** + * Creates a new ImageClassificationAnnotation instance using the specified properties. + * @param [properties] Properties to set + * @returns ImageClassificationAnnotation instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.IImageClassificationAnnotation): google.cloud.aiplatform.v1beta1.schema.ImageClassificationAnnotation; - /** - * Calls DeleteSpecialistPool. - * @param request DeleteSpecialistPoolRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public deleteSpecialistPool(request: google.cloud.aiplatform.v1beta1.IDeleteSpecialistPoolRequest, callback: google.cloud.aiplatform.v1beta1.SpecialistPoolService.DeleteSpecialistPoolCallback): void; + /** + * Encodes the specified ImageClassificationAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageClassificationAnnotation.verify|verify} messages. + * @param message ImageClassificationAnnotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.IImageClassificationAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Calls DeleteSpecialistPool. - * @param request DeleteSpecialistPoolRequest message or plain object - * @returns Promise - */ - public deleteSpecialistPool(request: google.cloud.aiplatform.v1beta1.IDeleteSpecialistPoolRequest): Promise; + /** + * Encodes the specified ImageClassificationAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageClassificationAnnotation.verify|verify} messages. + * @param message ImageClassificationAnnotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.IImageClassificationAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Calls UpdateSpecialistPool. - * @param request UpdateSpecialistPoolRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public updateSpecialistPool(request: google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolRequest, callback: google.cloud.aiplatform.v1beta1.SpecialistPoolService.UpdateSpecialistPoolCallback): void; + /** + * Decodes an ImageClassificationAnnotation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImageClassificationAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.ImageClassificationAnnotation; - /** - * Calls UpdateSpecialistPool. - * @param request UpdateSpecialistPoolRequest message or plain object - * @returns Promise - */ - public updateSpecialistPool(request: google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolRequest): Promise; - } + /** + * Decodes an ImageClassificationAnnotation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImageClassificationAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.ImageClassificationAnnotation; - namespace SpecialistPoolService { + /** + * Verifies an ImageClassificationAnnotation message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.SpecialistPoolService#createSpecialistPool}. - * @param error Error, if any - * @param [response] Operation - */ - type CreateSpecialistPoolCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** + * Creates an ImageClassificationAnnotation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImageClassificationAnnotation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.ImageClassificationAnnotation; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.SpecialistPoolService#getSpecialistPool}. - * @param error Error, if any - * @param [response] SpecialistPool - */ - type GetSpecialistPoolCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.SpecialistPool) => void; + /** + * Creates a plain object from an ImageClassificationAnnotation message. Also converts values to other types if specified. + * @param message ImageClassificationAnnotation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.ImageClassificationAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.SpecialistPoolService#listSpecialistPools}. - * @param error Error, if any - * @param [response] ListSpecialistPoolsResponse - */ - type ListSpecialistPoolsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse) => void; + /** + * Converts this ImageClassificationAnnotation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.SpecialistPoolService#deleteSpecialistPool}. - * @param error Error, if any - * @param [response] Operation - */ - type DeleteSpecialistPoolCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** Properties of an ImageBoundingBoxAnnotation. */ + interface IImageBoundingBoxAnnotation { - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.SpecialistPoolService#updateSpecialistPool}. - * @param error Error, if any - * @param [response] Operation - */ - type UpdateSpecialistPoolCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - } + /** ImageBoundingBoxAnnotation annotationSpecId */ + annotationSpecId?: (string|null); - /** Properties of a CreateSpecialistPoolRequest. */ - interface ICreateSpecialistPoolRequest { + /** ImageBoundingBoxAnnotation displayName */ + displayName?: (string|null); - /** CreateSpecialistPoolRequest parent */ - parent?: (string|null); + /** ImageBoundingBoxAnnotation xMin */ + xMin?: (number|null); - /** CreateSpecialistPoolRequest specialistPool */ - specialistPool?: (google.cloud.aiplatform.v1beta1.ISpecialistPool|null); - } + /** ImageBoundingBoxAnnotation xMax */ + xMax?: (number|null); - /** Represents a CreateSpecialistPoolRequest. */ - class CreateSpecialistPoolRequest implements ICreateSpecialistPoolRequest { + /** ImageBoundingBoxAnnotation yMin */ + yMin?: (number|null); - /** - * Constructs a new CreateSpecialistPoolRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolRequest); + /** ImageBoundingBoxAnnotation yMax */ + yMax?: (number|null); + } - /** CreateSpecialistPoolRequest parent. */ - public parent: string; + /** Represents an ImageBoundingBoxAnnotation. */ + class ImageBoundingBoxAnnotation implements IImageBoundingBoxAnnotation { - /** CreateSpecialistPoolRequest specialistPool. */ - public specialistPool?: (google.cloud.aiplatform.v1beta1.ISpecialistPool|null); + /** + * Constructs a new ImageBoundingBoxAnnotation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.IImageBoundingBoxAnnotation); - /** - * Creates a new CreateSpecialistPoolRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateSpecialistPoolRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolRequest): google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest; + /** ImageBoundingBoxAnnotation annotationSpecId. */ + public annotationSpecId: string; - /** - * Encodes the specified CreateSpecialistPoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest.verify|verify} messages. - * @param message CreateSpecialistPoolRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** ImageBoundingBoxAnnotation displayName. */ + public displayName: string; - /** - * Encodes the specified CreateSpecialistPoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest.verify|verify} messages. - * @param message CreateSpecialistPoolRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** ImageBoundingBoxAnnotation xMin. */ + public xMin: number; - /** - * Decodes a CreateSpecialistPoolRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateSpecialistPoolRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest; + /** ImageBoundingBoxAnnotation xMax. */ + public xMax: number; - /** - * Decodes a CreateSpecialistPoolRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateSpecialistPoolRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest; + /** ImageBoundingBoxAnnotation yMin. */ + public yMin: number; - /** - * Verifies a CreateSpecialistPoolRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** ImageBoundingBoxAnnotation yMax. */ + public yMax: number; - /** - * Creates a CreateSpecialistPoolRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateSpecialistPoolRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest; + /** + * Creates a new ImageBoundingBoxAnnotation instance using the specified properties. + * @param [properties] Properties to set + * @returns ImageBoundingBoxAnnotation instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.IImageBoundingBoxAnnotation): google.cloud.aiplatform.v1beta1.schema.ImageBoundingBoxAnnotation; - /** - * Creates a plain object from a CreateSpecialistPoolRequest message. Also converts values to other types if specified. - * @param message CreateSpecialistPoolRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified ImageBoundingBoxAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageBoundingBoxAnnotation.verify|verify} messages. + * @param message ImageBoundingBoxAnnotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.IImageBoundingBoxAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this CreateSpecialistPoolRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Encodes the specified ImageBoundingBoxAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageBoundingBoxAnnotation.verify|verify} messages. + * @param message ImageBoundingBoxAnnotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.IImageBoundingBoxAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a CreateSpecialistPoolOperationMetadata. */ - interface ICreateSpecialistPoolOperationMetadata { + /** + * Decodes an ImageBoundingBoxAnnotation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImageBoundingBoxAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.ImageBoundingBoxAnnotation; - /** CreateSpecialistPoolOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - } - - /** Represents a CreateSpecialistPoolOperationMetadata. */ - class CreateSpecialistPoolOperationMetadata implements ICreateSpecialistPoolOperationMetadata { - - /** - * Constructs a new CreateSpecialistPoolOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolOperationMetadata); + /** + * Decodes an ImageBoundingBoxAnnotation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImageBoundingBoxAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.ImageBoundingBoxAnnotation; - /** CreateSpecialistPoolOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** + * Verifies an ImageBoundingBoxAnnotation message. + * @param message Plain 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 new CreateSpecialistPoolOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateSpecialistPoolOperationMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolOperationMetadata): google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata; + /** + * Creates an ImageBoundingBoxAnnotation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImageBoundingBoxAnnotation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.ImageBoundingBoxAnnotation; - /** - * Encodes the specified CreateSpecialistPoolOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata.verify|verify} messages. - * @param message CreateSpecialistPoolOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from an ImageBoundingBoxAnnotation message. Also converts values to other types if specified. + * @param message ImageBoundingBoxAnnotation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.ImageBoundingBoxAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified CreateSpecialistPoolOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata.verify|verify} messages. - * @param message CreateSpecialistPoolOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this ImageBoundingBoxAnnotation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Decodes a CreateSpecialistPoolOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateSpecialistPoolOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata; + /** Properties of an ImageSegmentationAnnotation. */ + interface IImageSegmentationAnnotation { - /** - * Decodes a CreateSpecialistPoolOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateSpecialistPoolOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata; + /** ImageSegmentationAnnotation maskAnnotation */ + maskAnnotation?: (google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.IMaskAnnotation|null); - /** - * Verifies a CreateSpecialistPoolOperationMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** ImageSegmentationAnnotation polygonAnnotation */ + polygonAnnotation?: (google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.IPolygonAnnotation|null); - /** - * Creates a CreateSpecialistPoolOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateSpecialistPoolOperationMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata; + /** ImageSegmentationAnnotation polylineAnnotation */ + polylineAnnotation?: (google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.IPolylineAnnotation|null); + } - /** - * Creates a plain object from a CreateSpecialistPoolOperationMetadata message. Also converts values to other types if specified. - * @param message CreateSpecialistPoolOperationMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents an ImageSegmentationAnnotation. */ + class ImageSegmentationAnnotation implements IImageSegmentationAnnotation { - /** - * Converts this CreateSpecialistPoolOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Constructs a new ImageSegmentationAnnotation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.IImageSegmentationAnnotation); - /** Properties of a GetSpecialistPoolRequest. */ - interface IGetSpecialistPoolRequest { + /** ImageSegmentationAnnotation maskAnnotation. */ + public maskAnnotation?: (google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.IMaskAnnotation|null); - /** GetSpecialistPoolRequest name */ - name?: (string|null); - } + /** ImageSegmentationAnnotation polygonAnnotation. */ + public polygonAnnotation?: (google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.IPolygonAnnotation|null); - /** Represents a GetSpecialistPoolRequest. */ - class GetSpecialistPoolRequest implements IGetSpecialistPoolRequest { + /** ImageSegmentationAnnotation polylineAnnotation. */ + public polylineAnnotation?: (google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.IPolylineAnnotation|null); - /** - * Constructs a new GetSpecialistPoolRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetSpecialistPoolRequest); + /** ImageSegmentationAnnotation annotation. */ + public annotation?: ("maskAnnotation"|"polygonAnnotation"|"polylineAnnotation"); - /** GetSpecialistPoolRequest name. */ - public name: string; + /** + * Creates a new ImageSegmentationAnnotation instance using the specified properties. + * @param [properties] Properties to set + * @returns ImageSegmentationAnnotation instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.IImageSegmentationAnnotation): google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation; - /** - * Creates a new GetSpecialistPoolRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetSpecialistPoolRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetSpecialistPoolRequest): google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest; + /** + * Encodes the specified ImageSegmentationAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.verify|verify} messages. + * @param message ImageSegmentationAnnotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.IImageSegmentationAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetSpecialistPoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest.verify|verify} messages. - * @param message GetSpecialistPoolRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ImageSegmentationAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.verify|verify} messages. + * @param message ImageSegmentationAnnotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.IImageSegmentationAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetSpecialistPoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest.verify|verify} messages. - * @param message GetSpecialistPoolRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes an ImageSegmentationAnnotation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImageSegmentationAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation; - /** - * Decodes a GetSpecialistPoolRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetSpecialistPoolRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest; + /** + * Decodes an ImageSegmentationAnnotation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImageSegmentationAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation; - /** - * Decodes a GetSpecialistPoolRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetSpecialistPoolRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest; + /** + * Verifies an ImageSegmentationAnnotation message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Verifies a GetSpecialistPoolRequest message. - * @param message Plain 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 ImageSegmentationAnnotation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImageSegmentationAnnotation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation; - /** - * Creates a GetSpecialistPoolRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetSpecialistPoolRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest; + /** + * Creates a plain object from an ImageSegmentationAnnotation message. Also converts values to other types if specified. + * @param message ImageSegmentationAnnotation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a plain object from a GetSpecialistPoolRequest message. Also converts values to other types if specified. - * @param message GetSpecialistPoolRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Converts this ImageSegmentationAnnotation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Converts this GetSpecialistPoolRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + namespace ImageSegmentationAnnotation { - /** Properties of a ListSpecialistPoolsRequest. */ - interface IListSpecialistPoolsRequest { + /** Properties of a MaskAnnotation. */ + interface IMaskAnnotation { - /** ListSpecialistPoolsRequest parent */ - parent?: (string|null); + /** MaskAnnotation maskGcsUri */ + maskGcsUri?: (string|null); - /** ListSpecialistPoolsRequest pageSize */ - pageSize?: (number|null); + /** MaskAnnotation annotationSpecColors */ + annotationSpecColors?: (google.cloud.aiplatform.v1beta1.schema.IAnnotationSpecColor[]|null); + } - /** ListSpecialistPoolsRequest pageToken */ - pageToken?: (string|null); + /** Represents a MaskAnnotation. */ + class MaskAnnotation implements IMaskAnnotation { - /** ListSpecialistPoolsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); - } + /** + * Constructs a new MaskAnnotation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.IMaskAnnotation); - /** Represents a ListSpecialistPoolsRequest. */ - class ListSpecialistPoolsRequest implements IListSpecialistPoolsRequest { + /** MaskAnnotation maskGcsUri. */ + public maskGcsUri: string; - /** - * Constructs a new ListSpecialistPoolsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListSpecialistPoolsRequest); + /** MaskAnnotation annotationSpecColors. */ + public annotationSpecColors: google.cloud.aiplatform.v1beta1.schema.IAnnotationSpecColor[]; - /** ListSpecialistPoolsRequest parent. */ - public parent: string; + /** + * Creates a new MaskAnnotation instance using the specified properties. + * @param [properties] Properties to set + * @returns MaskAnnotation instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.IMaskAnnotation): google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.MaskAnnotation; - /** ListSpecialistPoolsRequest pageSize. */ - public pageSize: number; + /** + * Encodes the specified MaskAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.MaskAnnotation.verify|verify} messages. + * @param message MaskAnnotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.IMaskAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; - /** ListSpecialistPoolsRequest pageToken. */ - public pageToken: string; + /** + * Encodes the specified MaskAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.MaskAnnotation.verify|verify} messages. + * @param message MaskAnnotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.IMaskAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; - /** ListSpecialistPoolsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); - - /** - * Creates a new ListSpecialistPoolsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListSpecialistPoolsRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListSpecialistPoolsRequest): google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest; + /** + * Decodes a MaskAnnotation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MaskAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.MaskAnnotation; - /** - * Encodes the specified ListSpecialistPoolsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest.verify|verify} messages. - * @param message ListSpecialistPoolsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListSpecialistPoolsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a MaskAnnotation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MaskAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.MaskAnnotation; - /** - * Encodes the specified ListSpecialistPoolsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest.verify|verify} messages. - * @param message ListSpecialistPoolsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListSpecialistPoolsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a MaskAnnotation message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Decodes a ListSpecialistPoolsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListSpecialistPoolsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest; + /** + * Creates a MaskAnnotation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MaskAnnotation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.MaskAnnotation; - /** - * Decodes a ListSpecialistPoolsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListSpecialistPoolsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest; + /** + * Creates a plain object from a MaskAnnotation message. Also converts values to other types if specified. + * @param message MaskAnnotation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.MaskAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Verifies a ListSpecialistPoolsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Converts this MaskAnnotation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Creates a ListSpecialistPoolsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListSpecialistPoolsRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest; + /** Properties of a PolygonAnnotation. */ + interface IPolygonAnnotation { - /** - * Creates a plain object from a ListSpecialistPoolsRequest message. Also converts values to other types if specified. - * @param message ListSpecialistPoolsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** PolygonAnnotation vertexes */ + vertexes?: (google.cloud.aiplatform.v1beta1.schema.IVertex[]|null); - /** - * Converts this ListSpecialistPoolsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** PolygonAnnotation annotationSpecId */ + annotationSpecId?: (string|null); - /** Properties of a ListSpecialistPoolsResponse. */ - interface IListSpecialistPoolsResponse { + /** PolygonAnnotation displayName */ + displayName?: (string|null); + } - /** ListSpecialistPoolsResponse specialistPools */ - specialistPools?: (google.cloud.aiplatform.v1beta1.ISpecialistPool[]|null); + /** Represents a PolygonAnnotation. */ + class PolygonAnnotation implements IPolygonAnnotation { - /** ListSpecialistPoolsResponse nextPageToken */ - nextPageToken?: (string|null); - } + /** + * Constructs a new PolygonAnnotation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.IPolygonAnnotation); - /** Represents a ListSpecialistPoolsResponse. */ - class ListSpecialistPoolsResponse implements IListSpecialistPoolsResponse { + /** PolygonAnnotation vertexes. */ + public vertexes: google.cloud.aiplatform.v1beta1.schema.IVertex[]; - /** - * Constructs a new ListSpecialistPoolsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListSpecialistPoolsResponse); + /** PolygonAnnotation annotationSpecId. */ + public annotationSpecId: string; - /** ListSpecialistPoolsResponse specialistPools. */ - public specialistPools: google.cloud.aiplatform.v1beta1.ISpecialistPool[]; + /** PolygonAnnotation displayName. */ + public displayName: string; - /** ListSpecialistPoolsResponse nextPageToken. */ - public nextPageToken: string; + /** + * Creates a new PolygonAnnotation instance using the specified properties. + * @param [properties] Properties to set + * @returns PolygonAnnotation instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.IPolygonAnnotation): google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolygonAnnotation; - /** - * Creates a new ListSpecialistPoolsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListSpecialistPoolsResponse instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListSpecialistPoolsResponse): google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse; + /** + * Encodes the specified PolygonAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolygonAnnotation.verify|verify} messages. + * @param message PolygonAnnotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.IPolygonAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ListSpecialistPoolsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse.verify|verify} messages. - * @param message ListSpecialistPoolsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListSpecialistPoolsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified PolygonAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolygonAnnotation.verify|verify} messages. + * @param message PolygonAnnotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.IPolygonAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ListSpecialistPoolsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse.verify|verify} messages. - * @param message ListSpecialistPoolsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListSpecialistPoolsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a PolygonAnnotation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PolygonAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolygonAnnotation; - /** - * Decodes a ListSpecialistPoolsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListSpecialistPoolsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse; + /** + * Decodes a PolygonAnnotation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PolygonAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolygonAnnotation; - /** - * Decodes a ListSpecialistPoolsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListSpecialistPoolsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse; + /** + * Verifies a PolygonAnnotation message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Verifies a ListSpecialistPoolsResponse message. - * @param message Plain 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 PolygonAnnotation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PolygonAnnotation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolygonAnnotation; - /** - * Creates a ListSpecialistPoolsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListSpecialistPoolsResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse; + /** + * Creates a plain object from a PolygonAnnotation message. Also converts values to other types if specified. + * @param message PolygonAnnotation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolygonAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a plain object from a ListSpecialistPoolsResponse message. Also converts values to other types if specified. - * @param message ListSpecialistPoolsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Converts this PolygonAnnotation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Converts this ListSpecialistPoolsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** Properties of a PolylineAnnotation. */ + interface IPolylineAnnotation { - /** Properties of a DeleteSpecialistPoolRequest. */ - interface IDeleteSpecialistPoolRequest { + /** PolylineAnnotation vertexes */ + vertexes?: (google.cloud.aiplatform.v1beta1.schema.IVertex[]|null); - /** DeleteSpecialistPoolRequest name */ - name?: (string|null); + /** PolylineAnnotation annotationSpecId */ + annotationSpecId?: (string|null); - /** DeleteSpecialistPoolRequest force */ - force?: (boolean|null); - } + /** PolylineAnnotation displayName */ + displayName?: (string|null); + } - /** Represents a DeleteSpecialistPoolRequest. */ - class DeleteSpecialistPoolRequest implements IDeleteSpecialistPoolRequest { + /** Represents a PolylineAnnotation. */ + class PolylineAnnotation implements IPolylineAnnotation { - /** - * Constructs a new DeleteSpecialistPoolRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteSpecialistPoolRequest); + /** + * Constructs a new PolylineAnnotation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.IPolylineAnnotation); - /** DeleteSpecialistPoolRequest name. */ - public name: string; + /** PolylineAnnotation vertexes. */ + public vertexes: google.cloud.aiplatform.v1beta1.schema.IVertex[]; - /** DeleteSpecialistPoolRequest force. */ - public force: boolean; + /** PolylineAnnotation annotationSpecId. */ + public annotationSpecId: string; - /** - * Creates a new DeleteSpecialistPoolRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteSpecialistPoolRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteSpecialistPoolRequest): google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest; + /** PolylineAnnotation displayName. */ + public displayName: string; - /** - * Encodes the specified DeleteSpecialistPoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest.verify|verify} messages. - * @param message DeleteSpecialistPoolRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new PolylineAnnotation instance using the specified properties. + * @param [properties] Properties to set + * @returns PolylineAnnotation instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.IPolylineAnnotation): google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolylineAnnotation; - /** - * Encodes the specified DeleteSpecialistPoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest.verify|verify} messages. + /** + * Encodes the specified PolylineAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolylineAnnotation.verify|verify} messages. + * @param message PolylineAnnotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.IPolylineAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PolylineAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolylineAnnotation.verify|verify} messages. + * @param message PolylineAnnotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.IPolylineAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PolylineAnnotation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PolylineAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolylineAnnotation; + + /** + * Decodes a PolylineAnnotation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PolylineAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolylineAnnotation; + + /** + * Verifies a PolylineAnnotation message. + * @param message Plain 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 PolylineAnnotation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PolylineAnnotation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolylineAnnotation; + + /** + * Creates a plain object from a PolylineAnnotation message. Also converts values to other types if specified. + * @param message PolylineAnnotation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolylineAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PolylineAnnotation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of a TextClassificationAnnotation. */ + interface ITextClassificationAnnotation { + + /** TextClassificationAnnotation annotationSpecId */ + annotationSpecId?: (string|null); + + /** TextClassificationAnnotation displayName */ + displayName?: (string|null); + } + + /** Represents a TextClassificationAnnotation. */ + class TextClassificationAnnotation implements ITextClassificationAnnotation { + + /** + * Constructs a new TextClassificationAnnotation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.ITextClassificationAnnotation); + + /** TextClassificationAnnotation annotationSpecId. */ + public annotationSpecId: string; + + /** TextClassificationAnnotation displayName. */ + public displayName: string; + + /** + * Creates a new TextClassificationAnnotation instance using the specified properties. + * @param [properties] Properties to set + * @returns TextClassificationAnnotation instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.ITextClassificationAnnotation): google.cloud.aiplatform.v1beta1.schema.TextClassificationAnnotation; + + /** + * Encodes the specified TextClassificationAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextClassificationAnnotation.verify|verify} messages. + * @param message TextClassificationAnnotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.ITextClassificationAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TextClassificationAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextClassificationAnnotation.verify|verify} messages. + * @param message TextClassificationAnnotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.ITextClassificationAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TextClassificationAnnotation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TextClassificationAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.TextClassificationAnnotation; + + /** + * Decodes a TextClassificationAnnotation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TextClassificationAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.TextClassificationAnnotation; + + /** + * Verifies a TextClassificationAnnotation message. + * @param message Plain 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 TextClassificationAnnotation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TextClassificationAnnotation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.TextClassificationAnnotation; + + /** + * Creates a plain object from a TextClassificationAnnotation message. Also converts values to other types if specified. + * @param message TextClassificationAnnotation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.TextClassificationAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TextClassificationAnnotation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a TextExtractionAnnotation. */ + interface ITextExtractionAnnotation { + + /** TextExtractionAnnotation textSegment */ + textSegment?: (google.cloud.aiplatform.v1beta1.schema.ITextSegment|null); + + /** TextExtractionAnnotation annotationSpecId */ + annotationSpecId?: (string|null); + + /** TextExtractionAnnotation displayName */ + displayName?: (string|null); + } + + /** Represents a TextExtractionAnnotation. */ + class TextExtractionAnnotation implements ITextExtractionAnnotation { + + /** + * Constructs a new TextExtractionAnnotation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.ITextExtractionAnnotation); + + /** TextExtractionAnnotation textSegment. */ + public textSegment?: (google.cloud.aiplatform.v1beta1.schema.ITextSegment|null); + + /** TextExtractionAnnotation annotationSpecId. */ + public annotationSpecId: string; + + /** TextExtractionAnnotation displayName. */ + public displayName: string; + + /** + * Creates a new TextExtractionAnnotation instance using the specified properties. + * @param [properties] Properties to set + * @returns TextExtractionAnnotation instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.ITextExtractionAnnotation): google.cloud.aiplatform.v1beta1.schema.TextExtractionAnnotation; + + /** + * Encodes the specified TextExtractionAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.ITextExtractionAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TextExtractionAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.TextExtractionAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TextExtractionAnnotation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a TextSegment. */ + interface ITextSegment { + + /** TextSegment startOffset */ + startOffset?: (number|Long|string|null); + + /** TextSegment endOffset */ + endOffset?: (number|Long|string|null); + + /** TextSegment content */ + content?: (string|null); + } + + /** Represents a TextSegment. */ + class TextSegment implements ITextSegment { + + /** + * Constructs a new TextSegment. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.ITextSegment); + + /** TextSegment startOffset. */ + public startOffset: (number|Long|string); + + /** TextSegment endOffset. */ + public endOffset: (number|Long|string); + + /** TextSegment content. */ + public content: string; + + /** + * Creates a new TextSegment instance using the specified properties. + * @param [properties] Properties to set + * @returns TextSegment instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.ITextSegment): google.cloud.aiplatform.v1beta1.schema.TextSegment; + + /** + * Encodes the specified TextSegment message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.ITextSegment, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TextSegment message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.TextSegment, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TextSegment to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a TextSentimentAnnotation. */ + interface ITextSentimentAnnotation { + + /** TextSentimentAnnotation sentiment */ + sentiment?: (number|null); + + /** TextSentimentAnnotation sentimentMax */ + sentimentMax?: (number|null); + + /** TextSentimentAnnotation annotationSpecId */ + annotationSpecId?: (string|null); + + /** TextSentimentAnnotation displayName */ + displayName?: (string|null); + } + + /** Represents a TextSentimentAnnotation. */ + class TextSentimentAnnotation implements ITextSentimentAnnotation { + + /** + * Constructs a new TextSentimentAnnotation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.ITextSentimentAnnotation); + + /** TextSentimentAnnotation sentiment. */ + public sentiment: number; + + /** TextSentimentAnnotation sentimentMax. */ + public sentimentMax: number; + + /** TextSentimentAnnotation annotationSpecId. */ + public annotationSpecId: string; + + /** TextSentimentAnnotation displayName. */ + public displayName: string; + + /** + * Creates a new TextSentimentAnnotation instance using the specified properties. + * @param [properties] Properties to set + * @returns TextSentimentAnnotation instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.ITextSentimentAnnotation): google.cloud.aiplatform.v1beta1.schema.TextSentimentAnnotation; + + /** + * Encodes the specified TextSentimentAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.ITextSentimentAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TextSentimentAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.TextSentimentAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TextSentimentAnnotation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a VideoClassificationAnnotation. */ + interface IVideoClassificationAnnotation { + + /** VideoClassificationAnnotation timeSegment */ + timeSegment?: (google.cloud.aiplatform.v1beta1.schema.ITimeSegment|null); + + /** VideoClassificationAnnotation annotationSpecId */ + annotationSpecId?: (string|null); + + /** VideoClassificationAnnotation displayName */ + displayName?: (string|null); + } + + /** Represents a VideoClassificationAnnotation. */ + class VideoClassificationAnnotation implements IVideoClassificationAnnotation { + + /** + * Constructs a new VideoClassificationAnnotation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.IVideoClassificationAnnotation); + + /** VideoClassificationAnnotation timeSegment. */ + public timeSegment?: (google.cloud.aiplatform.v1beta1.schema.ITimeSegment|null); + + /** VideoClassificationAnnotation annotationSpecId. */ + public annotationSpecId: string; + + /** VideoClassificationAnnotation displayName. */ + public displayName: string; + + /** + * Creates a new VideoClassificationAnnotation instance using the specified properties. + * @param [properties] Properties to set + * @returns VideoClassificationAnnotation instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.IVideoClassificationAnnotation): google.cloud.aiplatform.v1beta1.schema.VideoClassificationAnnotation; + + /** + * Encodes the specified VideoClassificationAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.IVideoClassificationAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VideoClassificationAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.VideoClassificationAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VideoClassificationAnnotation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** 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.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.ITimeSegment): google.cloud.aiplatform.v1beta1.schema.TimeSegment; + + /** + * Encodes the specified TimeSegment message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.ITimeSegment, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TimeSegment message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.TimeSegment, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TimeSegment to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a VideoObjectTrackingAnnotation. */ + interface IVideoObjectTrackingAnnotation { + + /** VideoObjectTrackingAnnotation timeOffset */ + timeOffset?: (google.protobuf.IDuration|null); + + /** VideoObjectTrackingAnnotation xMin */ + xMin?: (number|null); + + /** VideoObjectTrackingAnnotation xMax */ + xMax?: (number|null); + + /** VideoObjectTrackingAnnotation yMin */ + yMin?: (number|null); + + /** VideoObjectTrackingAnnotation yMax */ + yMax?: (number|null); + + /** VideoObjectTrackingAnnotation instanceId */ + instanceId?: (number|Long|string|null); + + /** VideoObjectTrackingAnnotation annotationSpecId */ + annotationSpecId?: (string|null); + + /** VideoObjectTrackingAnnotation displayName */ + displayName?: (string|null); + } + + /** Represents a VideoObjectTrackingAnnotation. */ + class VideoObjectTrackingAnnotation implements IVideoObjectTrackingAnnotation { + + /** + * Constructs a new VideoObjectTrackingAnnotation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.IVideoObjectTrackingAnnotation); + + /** VideoObjectTrackingAnnotation timeOffset. */ + public timeOffset?: (google.protobuf.IDuration|null); + + /** VideoObjectTrackingAnnotation xMin. */ + public xMin: number; + + /** VideoObjectTrackingAnnotation xMax. */ + public xMax: number; + + /** VideoObjectTrackingAnnotation yMin. */ + public yMin: number; + + /** VideoObjectTrackingAnnotation yMax. */ + public yMax: number; + + /** VideoObjectTrackingAnnotation instanceId. */ + public instanceId: (number|Long|string); + + /** VideoObjectTrackingAnnotation annotationSpecId. */ + public annotationSpecId: string; + + /** VideoObjectTrackingAnnotation displayName. */ + public displayName: string; + + /** + * Creates a new VideoObjectTrackingAnnotation instance using the specified properties. + * @param [properties] Properties to set + * @returns VideoObjectTrackingAnnotation instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.IVideoObjectTrackingAnnotation): google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingAnnotation; + + /** + * Encodes the specified VideoObjectTrackingAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.IVideoObjectTrackingAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VideoObjectTrackingAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.VideoObjectTrackingAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VideoObjectTrackingAnnotation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a VideoActionRecognitionAnnotation. */ + interface IVideoActionRecognitionAnnotation { + + /** VideoActionRecognitionAnnotation timeSegment */ + timeSegment?: (google.cloud.aiplatform.v1beta1.schema.ITimeSegment|null); + + /** VideoActionRecognitionAnnotation annotationSpecId */ + annotationSpecId?: (string|null); + + /** VideoActionRecognitionAnnotation displayName */ + displayName?: (string|null); + } + + /** Represents a VideoActionRecognitionAnnotation. */ + class VideoActionRecognitionAnnotation implements IVideoActionRecognitionAnnotation { + + /** + * Constructs a new VideoActionRecognitionAnnotation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.IVideoActionRecognitionAnnotation); + + /** VideoActionRecognitionAnnotation timeSegment. */ + public timeSegment?: (google.cloud.aiplatform.v1beta1.schema.ITimeSegment|null); + + /** VideoActionRecognitionAnnotation annotationSpecId. */ + public annotationSpecId: string; + + /** VideoActionRecognitionAnnotation displayName. */ + public displayName: string; + + /** + * Creates a new VideoActionRecognitionAnnotation instance using the specified properties. + * @param [properties] Properties to set + * @returns VideoActionRecognitionAnnotation instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.IVideoActionRecognitionAnnotation): google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionAnnotation; + + /** + * Encodes the specified VideoActionRecognitionAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionAnnotation.verify|verify} messages. + * @param message VideoActionRecognitionAnnotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.IVideoActionRecognitionAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VideoActionRecognitionAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionAnnotation.verify|verify} messages. + * @param message VideoActionRecognitionAnnotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.IVideoActionRecognitionAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VideoActionRecognitionAnnotation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VideoActionRecognitionAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionAnnotation; + + /** + * Decodes a VideoActionRecognitionAnnotation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VideoActionRecognitionAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionAnnotation; + + /** + * Verifies a VideoActionRecognitionAnnotation message. + * @param message Plain 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 VideoActionRecognitionAnnotation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VideoActionRecognitionAnnotation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionAnnotation; + + /** + * Creates a plain object from a VideoActionRecognitionAnnotation message. Also converts values to other types if specified. + * @param message VideoActionRecognitionAnnotation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VideoActionRecognitionAnnotation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AnnotationSpecColor. */ + interface IAnnotationSpecColor { + + /** AnnotationSpecColor color */ + color?: (google.type.IColor|null); + + /** AnnotationSpecColor displayName */ + displayName?: (string|null); + + /** AnnotationSpecColor id */ + id?: (string|null); + } + + /** Represents an AnnotationSpecColor. */ + class AnnotationSpecColor implements IAnnotationSpecColor { + + /** + * Constructs a new AnnotationSpecColor. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.IAnnotationSpecColor); + + /** AnnotationSpecColor color. */ + public color?: (google.type.IColor|null); + + /** AnnotationSpecColor displayName. */ + public displayName: string; + + /** AnnotationSpecColor id. */ + public id: string; + + /** + * Creates a new AnnotationSpecColor instance using the specified properties. + * @param [properties] Properties to set + * @returns AnnotationSpecColor instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.IAnnotationSpecColor): google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor; + + /** + * Encodes the specified AnnotationSpecColor message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor.verify|verify} messages. + * @param message AnnotationSpecColor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.IAnnotationSpecColor, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AnnotationSpecColor message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor.verify|verify} messages. + * @param message AnnotationSpecColor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.IAnnotationSpecColor, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AnnotationSpecColor message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AnnotationSpecColor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor; + + /** + * Decodes an AnnotationSpecColor message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AnnotationSpecColor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor; + + /** + * Verifies an AnnotationSpecColor message. + * @param message Plain 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 AnnotationSpecColor message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AnnotationSpecColor + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor; + + /** + * Creates a plain object from an AnnotationSpecColor message. Also converts values to other types if specified. + * @param message AnnotationSpecColor + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AnnotationSpecColor to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Vertex. */ + interface IVertex { + + /** Vertex x */ + x?: (number|null); + + /** Vertex y */ + y?: (number|null); + } + + /** Represents a Vertex. */ + class Vertex implements IVertex { + + /** + * Constructs a new Vertex. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.IVertex); + + /** Vertex x. */ + public x: number; + + /** Vertex y. */ + public y: number; + + /** + * Creates a new Vertex instance using the specified properties. + * @param [properties] Properties to set + * @returns Vertex instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.IVertex): google.cloud.aiplatform.v1beta1.schema.Vertex; + + /** + * Encodes the specified Vertex message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.Vertex.verify|verify} messages. + * @param message Vertex message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.IVertex, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Vertex message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.Vertex.verify|verify} messages. + * @param message Vertex message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.IVertex, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Vertex message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Vertex + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.Vertex; + + /** + * Decodes a Vertex message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Vertex + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.Vertex; + + /** + * Verifies a Vertex message. + * @param message Plain 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 Vertex message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Vertex + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.Vertex; + + /** + * Creates a plain object from a Vertex message. Also converts values to other types if specified. + * @param message Vertex + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.Vertex, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Vertex to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an ImageDataItem. */ + interface IImageDataItem { + + /** ImageDataItem gcsUri */ + gcsUri?: (string|null); + + /** ImageDataItem mimeType */ + mimeType?: (string|null); + } + + /** Represents an ImageDataItem. */ + class ImageDataItem implements IImageDataItem { + + /** + * Constructs a new ImageDataItem. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.IImageDataItem); + + /** ImageDataItem gcsUri. */ + public gcsUri: string; + + /** ImageDataItem mimeType. */ + public mimeType: string; + + /** + * Creates a new ImageDataItem instance using the specified properties. + * @param [properties] Properties to set + * @returns ImageDataItem instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.IImageDataItem): google.cloud.aiplatform.v1beta1.schema.ImageDataItem; + + /** + * Encodes the specified ImageDataItem message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageDataItem.verify|verify} messages. + * @param message ImageDataItem message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.IImageDataItem, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ImageDataItem message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageDataItem.verify|verify} messages. + * @param message ImageDataItem message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.IImageDataItem, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ImageDataItem message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImageDataItem + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.ImageDataItem; + + /** + * Decodes an ImageDataItem message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImageDataItem + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.ImageDataItem; + + /** + * Verifies an ImageDataItem message. + * @param message Plain 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 ImageDataItem message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImageDataItem + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.ImageDataItem; + + /** + * Creates a plain object from an ImageDataItem message. Also converts values to other types if specified. + * @param message ImageDataItem + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.ImageDataItem, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ImageDataItem to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a VideoDataItem. */ + interface IVideoDataItem { + + /** VideoDataItem gcsUri */ + gcsUri?: (string|null); + + /** VideoDataItem mimeType */ + mimeType?: (string|null); + } + + /** Represents a VideoDataItem. */ + class VideoDataItem implements IVideoDataItem { + + /** + * Constructs a new VideoDataItem. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.IVideoDataItem); + + /** VideoDataItem gcsUri. */ + public gcsUri: string; + + /** VideoDataItem mimeType. */ + public mimeType: string; + + /** + * Creates a new VideoDataItem instance using the specified properties. + * @param [properties] Properties to set + * @returns VideoDataItem instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.IVideoDataItem): google.cloud.aiplatform.v1beta1.schema.VideoDataItem; + + /** + * Encodes the specified VideoDataItem message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoDataItem.verify|verify} messages. + * @param message VideoDataItem message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.IVideoDataItem, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VideoDataItem message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoDataItem.verify|verify} messages. + * @param message VideoDataItem message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.IVideoDataItem, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VideoDataItem message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VideoDataItem + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.VideoDataItem; + + /** + * Decodes a VideoDataItem message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VideoDataItem + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.VideoDataItem; + + /** + * Verifies a VideoDataItem message. + * @param message Plain 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 VideoDataItem message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VideoDataItem + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.VideoDataItem; + + /** + * Creates a plain object from a VideoDataItem message. Also converts values to other types if specified. + * @param message VideoDataItem + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.VideoDataItem, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VideoDataItem to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a TextDataItem. */ + interface ITextDataItem { + + /** TextDataItem gcsUri */ + gcsUri?: (string|null); + } + + /** Represents a TextDataItem. */ + class TextDataItem implements ITextDataItem { + + /** + * Constructs a new TextDataItem. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.ITextDataItem); + + /** TextDataItem gcsUri. */ + public gcsUri: string; + + /** + * Creates a new TextDataItem instance using the specified properties. + * @param [properties] Properties to set + * @returns TextDataItem instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.ITextDataItem): google.cloud.aiplatform.v1beta1.schema.TextDataItem; + + /** + * Encodes the specified TextDataItem message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextDataItem.verify|verify} messages. + * @param message TextDataItem message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.ITextDataItem, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TextDataItem message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextDataItem.verify|verify} messages. + * @param message TextDataItem message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.ITextDataItem, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TextDataItem message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TextDataItem + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.TextDataItem; + + /** + * Decodes a TextDataItem message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TextDataItem + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.TextDataItem; + + /** + * Verifies a TextDataItem message. + * @param message Plain 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 TextDataItem message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TextDataItem + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.TextDataItem; + + /** + * Creates a plain object from a TextDataItem message. Also converts values to other types if specified. + * @param message TextDataItem + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.TextDataItem, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TextDataItem to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an ImageDatasetMetadata. */ + interface IImageDatasetMetadata { + + /** ImageDatasetMetadata dataItemSchemaUri */ + dataItemSchemaUri?: (string|null); + + /** ImageDatasetMetadata gcsBucket */ + gcsBucket?: (string|null); + } + + /** Represents an ImageDatasetMetadata. */ + class ImageDatasetMetadata implements IImageDatasetMetadata { + + /** + * Constructs a new ImageDatasetMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.IImageDatasetMetadata); + + /** ImageDatasetMetadata dataItemSchemaUri. */ + public dataItemSchemaUri: string; + + /** ImageDatasetMetadata gcsBucket. */ + public gcsBucket: string; + + /** + * Creates a new ImageDatasetMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns ImageDatasetMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.IImageDatasetMetadata): google.cloud.aiplatform.v1beta1.schema.ImageDatasetMetadata; + + /** + * Encodes the specified ImageDatasetMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageDatasetMetadata.verify|verify} messages. + * @param message ImageDatasetMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.IImageDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ImageDatasetMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageDatasetMetadata.verify|verify} messages. + * @param message ImageDatasetMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.IImageDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ImageDatasetMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImageDatasetMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.ImageDatasetMetadata; + + /** + * Decodes an ImageDatasetMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImageDatasetMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.ImageDatasetMetadata; + + /** + * Verifies an ImageDatasetMetadata message. + * @param message Plain 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 ImageDatasetMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImageDatasetMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.ImageDatasetMetadata; + + /** + * Creates a plain object from an ImageDatasetMetadata message. Also converts values to other types if specified. + * @param message ImageDatasetMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.ImageDatasetMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ImageDatasetMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a TextDatasetMetadata. */ + interface ITextDatasetMetadata { + + /** TextDatasetMetadata dataItemSchemaUri */ + dataItemSchemaUri?: (string|null); + + /** TextDatasetMetadata gcsBucket */ + gcsBucket?: (string|null); + } + + /** Represents a TextDatasetMetadata. */ + class TextDatasetMetadata implements ITextDatasetMetadata { + + /** + * Constructs a new TextDatasetMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.ITextDatasetMetadata); + + /** TextDatasetMetadata dataItemSchemaUri. */ + public dataItemSchemaUri: string; + + /** TextDatasetMetadata gcsBucket. */ + public gcsBucket: string; + + /** + * Creates a new TextDatasetMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns TextDatasetMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.ITextDatasetMetadata): google.cloud.aiplatform.v1beta1.schema.TextDatasetMetadata; + + /** + * Encodes the specified TextDatasetMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextDatasetMetadata.verify|verify} messages. + * @param message TextDatasetMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.ITextDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TextDatasetMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextDatasetMetadata.verify|verify} messages. + * @param message TextDatasetMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.ITextDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TextDatasetMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TextDatasetMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.TextDatasetMetadata; + + /** + * Decodes a TextDatasetMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TextDatasetMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.TextDatasetMetadata; + + /** + * Verifies a TextDatasetMetadata message. + * @param message Plain 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 TextDatasetMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TextDatasetMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.TextDatasetMetadata; + + /** + * Creates a plain object from a TextDatasetMetadata message. Also converts values to other types if specified. + * @param message TextDatasetMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.TextDatasetMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TextDatasetMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a VideoDatasetMetadata. */ + interface IVideoDatasetMetadata { + + /** VideoDatasetMetadata dataItemSchemaUri */ + dataItemSchemaUri?: (string|null); + + /** VideoDatasetMetadata gcsBucket */ + gcsBucket?: (string|null); + } + + /** Represents a VideoDatasetMetadata. */ + class VideoDatasetMetadata implements IVideoDatasetMetadata { + + /** + * Constructs a new VideoDatasetMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.IVideoDatasetMetadata); + + /** VideoDatasetMetadata dataItemSchemaUri. */ + public dataItemSchemaUri: string; + + /** VideoDatasetMetadata gcsBucket. */ + public gcsBucket: string; + + /** + * Creates a new VideoDatasetMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns VideoDatasetMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.IVideoDatasetMetadata): google.cloud.aiplatform.v1beta1.schema.VideoDatasetMetadata; + + /** + * Encodes the specified VideoDatasetMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoDatasetMetadata.verify|verify} messages. + * @param message VideoDatasetMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.IVideoDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VideoDatasetMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoDatasetMetadata.verify|verify} messages. + * @param message VideoDatasetMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.IVideoDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VideoDatasetMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VideoDatasetMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.VideoDatasetMetadata; + + /** + * Decodes a VideoDatasetMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VideoDatasetMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.VideoDatasetMetadata; + + /** + * Verifies a VideoDatasetMetadata message. + * @param message Plain 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 VideoDatasetMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VideoDatasetMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.VideoDatasetMetadata; + + /** + * Creates a plain object from a VideoDatasetMetadata message. Also converts values to other types if specified. + * @param message VideoDatasetMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.VideoDatasetMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VideoDatasetMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a TablesDatasetMetadata. */ + interface ITablesDatasetMetadata { + + /** TablesDatasetMetadata inputConfig */ + inputConfig?: (google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.IInputConfig|null); + } + + /** Represents a TablesDatasetMetadata. */ + class TablesDatasetMetadata implements ITablesDatasetMetadata { + + /** + * Constructs a new TablesDatasetMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.ITablesDatasetMetadata); + + /** TablesDatasetMetadata inputConfig. */ + public inputConfig?: (google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.IInputConfig|null); + + /** + * Creates a new TablesDatasetMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns TablesDatasetMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.ITablesDatasetMetadata): google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata; + + /** + * Encodes the specified TablesDatasetMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.ITablesDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TablesDatasetMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.TablesDatasetMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TablesDatasetMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace TablesDatasetMetadata { + + /** Properties of an InputConfig. */ + interface IInputConfig { + + /** InputConfig gcsSource */ + gcsSource?: (google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.IGcsSource|null); + + /** InputConfig bigquerySource */ + bigquerySource?: (google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.IBigQuerySource|null); + } + + /** Represents an InputConfig. */ + class InputConfig implements IInputConfig { + + /** + * Constructs a new InputConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.IInputConfig); + + /** InputConfig gcsSource. */ + public gcsSource?: (google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.IGcsSource|null); + + /** InputConfig bigquerySource. */ + public bigquerySource?: (google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.IBigQuerySource|null); + + /** 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.aiplatform.v1beta1.schema.TablesDatasetMetadata.IInputConfig): google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.InputConfig; + + /** + * Encodes the specified InputConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.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.aiplatform.v1beta1.schema.TablesDatasetMetadata.IInputConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InputConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.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.aiplatform.v1beta1.schema.TablesDatasetMetadata.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.aiplatform.v1beta1.schema.TablesDatasetMetadata.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.aiplatform.v1beta1.schema.TablesDatasetMetadata.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.aiplatform.v1beta1.schema.TablesDatasetMetadata.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.aiplatform.v1beta1.schema.TablesDatasetMetadata.InputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InputConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GcsSource. */ + interface IGcsSource { + + /** GcsSource uri */ + uri?: (string[]|null); + } + + /** Represents a GcsSource. */ + class GcsSource implements IGcsSource { + + /** + * Constructs a new GcsSource. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.IGcsSource); + + /** GcsSource uri. */ + public uri: string[]; + + /** + * Creates a new GcsSource instance using the specified properties. + * @param [properties] Properties to set + * @returns GcsSource instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.IGcsSource): google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.GcsSource; + + /** + * Encodes the specified GcsSource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.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.aiplatform.v1beta1.schema.TablesDatasetMetadata.IGcsSource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GcsSource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.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.aiplatform.v1beta1.schema.TablesDatasetMetadata.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.aiplatform.v1beta1.schema.TablesDatasetMetadata.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.aiplatform.v1beta1.schema.TablesDatasetMetadata.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.aiplatform.v1beta1.schema.TablesDatasetMetadata.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.aiplatform.v1beta1.schema.TablesDatasetMetadata.GcsSource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GcsSource to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a BigQuerySource. */ + interface IBigQuerySource { + + /** BigQuerySource uri */ + uri?: (string|null); + } + + /** Represents a BigQuerySource. */ + class BigQuerySource implements IBigQuerySource { + + /** + * Constructs a new BigQuerySource. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.IBigQuerySource); + + /** BigQuerySource uri. */ + public uri: string; + + /** + * Creates a new BigQuerySource instance using the specified properties. + * @param [properties] Properties to set + * @returns BigQuerySource instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.IBigQuerySource): google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.BigQuerySource; + + /** + * Encodes the specified BigQuerySource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.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.aiplatform.v1beta1.schema.TablesDatasetMetadata.IBigQuerySource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BigQuerySource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.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.aiplatform.v1beta1.schema.TablesDatasetMetadata.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.aiplatform.v1beta1.schema.TablesDatasetMetadata.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.aiplatform.v1beta1.schema.TablesDatasetMetadata.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.aiplatform.v1beta1.schema.TablesDatasetMetadata.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.aiplatform.v1beta1.schema.TablesDatasetMetadata.BigQuerySource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BigQuerySource to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of a TimeSeriesDatasetMetadata. */ + interface ITimeSeriesDatasetMetadata { + + /** TimeSeriesDatasetMetadata inputConfig */ + inputConfig?: (google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.IInputConfig|null); + + /** TimeSeriesDatasetMetadata timeSeriesIdentifierColumn */ + timeSeriesIdentifierColumn?: (string|null); + + /** TimeSeriesDatasetMetadata timeColumn */ + timeColumn?: (string|null); + } + + /** Represents a TimeSeriesDatasetMetadata. */ + class TimeSeriesDatasetMetadata implements ITimeSeriesDatasetMetadata { + + /** + * Constructs a new TimeSeriesDatasetMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.ITimeSeriesDatasetMetadata); + + /** TimeSeriesDatasetMetadata inputConfig. */ + public inputConfig?: (google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.IInputConfig|null); + + /** TimeSeriesDatasetMetadata timeSeriesIdentifierColumn. */ + public timeSeriesIdentifierColumn: string; + + /** TimeSeriesDatasetMetadata timeColumn. */ + public timeColumn: string; + + /** + * Creates a new TimeSeriesDatasetMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns TimeSeriesDatasetMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.ITimeSeriesDatasetMetadata): google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata; + + /** + * Encodes the specified TimeSeriesDatasetMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.verify|verify} messages. + * @param message TimeSeriesDatasetMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.ITimeSeriesDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TimeSeriesDatasetMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.verify|verify} messages. + * @param message TimeSeriesDatasetMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.ITimeSeriesDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TimeSeriesDatasetMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TimeSeriesDatasetMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata; + + /** + * Decodes a TimeSeriesDatasetMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TimeSeriesDatasetMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata; + + /** + * Verifies a TimeSeriesDatasetMetadata message. + * @param message Plain 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 TimeSeriesDatasetMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TimeSeriesDatasetMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata; + + /** + * Creates a plain object from a TimeSeriesDatasetMetadata message. Also converts values to other types if specified. + * @param message TimeSeriesDatasetMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TimeSeriesDatasetMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace TimeSeriesDatasetMetadata { + + /** Properties of an InputConfig. */ + interface IInputConfig { + + /** InputConfig gcsSource */ + gcsSource?: (google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.IGcsSource|null); + + /** InputConfig bigquerySource */ + bigquerySource?: (google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.IBigQuerySource|null); + } + + /** Represents an InputConfig. */ + class InputConfig implements IInputConfig { + + /** + * Constructs a new InputConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.IInputConfig); + + /** InputConfig gcsSource. */ + public gcsSource?: (google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.IGcsSource|null); + + /** InputConfig bigquerySource. */ + public bigquerySource?: (google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.IBigQuerySource|null); + + /** 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.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.IInputConfig): google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.InputConfig; + + /** + * Encodes the specified InputConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.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.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.IInputConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InputConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.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.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.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.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.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.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.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.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.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.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.InputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InputConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GcsSource. */ + interface IGcsSource { + + /** GcsSource uri */ + uri?: (string[]|null); + } + + /** Represents a GcsSource. */ + class GcsSource implements IGcsSource { + + /** + * Constructs a new GcsSource. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.IGcsSource); + + /** GcsSource uri. */ + public uri: string[]; + + /** + * Creates a new GcsSource instance using the specified properties. + * @param [properties] Properties to set + * @returns GcsSource instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.IGcsSource): google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.GcsSource; + + /** + * Encodes the specified GcsSource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.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.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.IGcsSource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GcsSource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.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.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.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.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.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.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.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.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.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.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.GcsSource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GcsSource to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a BigQuerySource. */ + interface IBigQuerySource { + + /** BigQuerySource uri */ + uri?: (string|null); + } + + /** Represents a BigQuerySource. */ + class BigQuerySource implements IBigQuerySource { + + /** + * Constructs a new BigQuerySource. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.IBigQuerySource); + + /** BigQuerySource uri. */ + public uri: string; + + /** + * Creates a new BigQuerySource instance using the specified properties. + * @param [properties] Properties to set + * @returns BigQuerySource instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.IBigQuerySource): google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.BigQuerySource; + + /** + * Encodes the specified BigQuerySource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.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.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.IBigQuerySource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BigQuerySource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.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.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.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.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.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.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.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.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.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.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.BigQuerySource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BigQuerySource to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of an ImageClassificationPredictionInstance. */ + interface IImageClassificationPredictionInstance { + + /** ImageClassificationPredictionInstance content */ + content?: (string|null); + + /** ImageClassificationPredictionInstance mimeType */ + mimeType?: (string|null); + } + + /** Represents an ImageClassificationPredictionInstance. */ + class ImageClassificationPredictionInstance implements IImageClassificationPredictionInstance { + + /** + * Constructs a new ImageClassificationPredictionInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.IImageClassificationPredictionInstance); + + /** ImageClassificationPredictionInstance content. */ + public content: string; + + /** ImageClassificationPredictionInstance mimeType. */ + public mimeType: string; + + /** + * Creates a new ImageClassificationPredictionInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns ImageClassificationPredictionInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.IImageClassificationPredictionInstance): google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionInstance; + + /** + * Encodes the specified ImageClassificationPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionInstance.verify|verify} messages. + * @param message ImageClassificationPredictionInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.IImageClassificationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ImageClassificationPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionInstance.verify|verify} messages. + * @param message ImageClassificationPredictionInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.IImageClassificationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ImageClassificationPredictionInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImageClassificationPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionInstance; + + /** + * Decodes an ImageClassificationPredictionInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImageClassificationPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionInstance; + + /** + * Verifies an ImageClassificationPredictionInstance message. + * @param message Plain 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 ImageClassificationPredictionInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImageClassificationPredictionInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionInstance; + + /** + * Creates a plain object from an ImageClassificationPredictionInstance message. Also converts values to other types if specified. + * @param message ImageClassificationPredictionInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ImageClassificationPredictionInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an ImageObjectDetectionPredictionInstance. */ + interface IImageObjectDetectionPredictionInstance { + + /** ImageObjectDetectionPredictionInstance content */ + content?: (string|null); + + /** ImageObjectDetectionPredictionInstance mimeType */ + mimeType?: (string|null); + } + + /** Represents an ImageObjectDetectionPredictionInstance. */ + class ImageObjectDetectionPredictionInstance implements IImageObjectDetectionPredictionInstance { + + /** + * Constructs a new ImageObjectDetectionPredictionInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.IImageObjectDetectionPredictionInstance); + + /** ImageObjectDetectionPredictionInstance content. */ + public content: string; + + /** ImageObjectDetectionPredictionInstance mimeType. */ + public mimeType: string; + + /** + * Creates a new ImageObjectDetectionPredictionInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns ImageObjectDetectionPredictionInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.IImageObjectDetectionPredictionInstance): google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionInstance; + + /** + * Encodes the specified ImageObjectDetectionPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionInstance.verify|verify} messages. + * @param message ImageObjectDetectionPredictionInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.IImageObjectDetectionPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ImageObjectDetectionPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionInstance.verify|verify} messages. + * @param message ImageObjectDetectionPredictionInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.IImageObjectDetectionPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ImageObjectDetectionPredictionInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImageObjectDetectionPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionInstance; + + /** + * Decodes an ImageObjectDetectionPredictionInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImageObjectDetectionPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionInstance; + + /** + * Verifies an ImageObjectDetectionPredictionInstance message. + * @param message Plain 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 ImageObjectDetectionPredictionInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImageObjectDetectionPredictionInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionInstance; + + /** + * Creates a plain object from an ImageObjectDetectionPredictionInstance message. Also converts values to other types if specified. + * @param message ImageObjectDetectionPredictionInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ImageObjectDetectionPredictionInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an ImageSegmentationPredictionInstance. */ + interface IImageSegmentationPredictionInstance { + + /** ImageSegmentationPredictionInstance content */ + content?: (string|null); + + /** ImageSegmentationPredictionInstance mimeType */ + mimeType?: (string|null); + } + + /** Represents an ImageSegmentationPredictionInstance. */ + class ImageSegmentationPredictionInstance implements IImageSegmentationPredictionInstance { + + /** + * Constructs a new ImageSegmentationPredictionInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.IImageSegmentationPredictionInstance); + + /** ImageSegmentationPredictionInstance content. */ + public content: string; + + /** ImageSegmentationPredictionInstance mimeType. */ + public mimeType: string; + + /** + * Creates a new ImageSegmentationPredictionInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns ImageSegmentationPredictionInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.IImageSegmentationPredictionInstance): google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionInstance; + + /** + * Encodes the specified ImageSegmentationPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionInstance.verify|verify} messages. + * @param message ImageSegmentationPredictionInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.IImageSegmentationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ImageSegmentationPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionInstance.verify|verify} messages. + * @param message ImageSegmentationPredictionInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.IImageSegmentationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ImageSegmentationPredictionInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImageSegmentationPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionInstance; + + /** + * Decodes an ImageSegmentationPredictionInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImageSegmentationPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionInstance; + + /** + * Verifies an ImageSegmentationPredictionInstance message. + * @param message Plain 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 ImageSegmentationPredictionInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImageSegmentationPredictionInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionInstance; + + /** + * Creates a plain object from an ImageSegmentationPredictionInstance message. Also converts values to other types if specified. + * @param message ImageSegmentationPredictionInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ImageSegmentationPredictionInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a VideoClassificationPredictionInstance. */ + interface IVideoClassificationPredictionInstance { + + /** VideoClassificationPredictionInstance content */ + content?: (string|null); + + /** VideoClassificationPredictionInstance mimeType */ + mimeType?: (string|null); + + /** VideoClassificationPredictionInstance timeSegmentStart */ + timeSegmentStart?: (string|null); + + /** VideoClassificationPredictionInstance timeSegmentEnd */ + timeSegmentEnd?: (string|null); + } + + /** Represents a VideoClassificationPredictionInstance. */ + class VideoClassificationPredictionInstance implements IVideoClassificationPredictionInstance { + + /** + * Constructs a new VideoClassificationPredictionInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.IVideoClassificationPredictionInstance); + + /** VideoClassificationPredictionInstance content. */ + public content: string; + + /** VideoClassificationPredictionInstance mimeType. */ + public mimeType: string; + + /** VideoClassificationPredictionInstance timeSegmentStart. */ + public timeSegmentStart: string; + + /** VideoClassificationPredictionInstance timeSegmentEnd. */ + public timeSegmentEnd: string; + + /** + * Creates a new VideoClassificationPredictionInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns VideoClassificationPredictionInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.IVideoClassificationPredictionInstance): google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionInstance; + + /** + * Encodes the specified VideoClassificationPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionInstance.verify|verify} messages. + * @param message VideoClassificationPredictionInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.IVideoClassificationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VideoClassificationPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionInstance.verify|verify} messages. + * @param message VideoClassificationPredictionInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.IVideoClassificationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VideoClassificationPredictionInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VideoClassificationPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionInstance; + + /** + * Decodes a VideoClassificationPredictionInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VideoClassificationPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionInstance; + + /** + * Verifies a VideoClassificationPredictionInstance message. + * @param message Plain 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 VideoClassificationPredictionInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VideoClassificationPredictionInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionInstance; + + /** + * Creates a plain object from a VideoClassificationPredictionInstance message. Also converts values to other types if specified. + * @param message VideoClassificationPredictionInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VideoClassificationPredictionInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a VideoObjectTrackingPredictionInstance. */ + interface IVideoObjectTrackingPredictionInstance { + + /** VideoObjectTrackingPredictionInstance content */ + content?: (string|null); + + /** VideoObjectTrackingPredictionInstance mimeType */ + mimeType?: (string|null); + + /** VideoObjectTrackingPredictionInstance timeSegmentStart */ + timeSegmentStart?: (string|null); + + /** VideoObjectTrackingPredictionInstance timeSegmentEnd */ + timeSegmentEnd?: (string|null); + } + + /** Represents a VideoObjectTrackingPredictionInstance. */ + class VideoObjectTrackingPredictionInstance implements IVideoObjectTrackingPredictionInstance { + + /** + * Constructs a new VideoObjectTrackingPredictionInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.IVideoObjectTrackingPredictionInstance); + + /** VideoObjectTrackingPredictionInstance content. */ + public content: string; + + /** VideoObjectTrackingPredictionInstance mimeType. */ + public mimeType: string; + + /** VideoObjectTrackingPredictionInstance timeSegmentStart. */ + public timeSegmentStart: string; + + /** VideoObjectTrackingPredictionInstance timeSegmentEnd. */ + public timeSegmentEnd: string; + + /** + * Creates a new VideoObjectTrackingPredictionInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns VideoObjectTrackingPredictionInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.IVideoObjectTrackingPredictionInstance): google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionInstance; + + /** + * Encodes the specified VideoObjectTrackingPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionInstance.verify|verify} messages. + * @param message VideoObjectTrackingPredictionInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.IVideoObjectTrackingPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VideoObjectTrackingPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionInstance.verify|verify} messages. + * @param message VideoObjectTrackingPredictionInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.IVideoObjectTrackingPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VideoObjectTrackingPredictionInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VideoObjectTrackingPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionInstance; + + /** + * Decodes a VideoObjectTrackingPredictionInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VideoObjectTrackingPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionInstance; + + /** + * Verifies a VideoObjectTrackingPredictionInstance message. + * @param message Plain 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 VideoObjectTrackingPredictionInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VideoObjectTrackingPredictionInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionInstance; + + /** + * Creates a plain object from a VideoObjectTrackingPredictionInstance message. Also converts values to other types if specified. + * @param message VideoObjectTrackingPredictionInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VideoObjectTrackingPredictionInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a VideoActionRecognitionPredictionInstance. */ + interface IVideoActionRecognitionPredictionInstance { + + /** VideoActionRecognitionPredictionInstance content */ + content?: (string|null); + + /** VideoActionRecognitionPredictionInstance mimeType */ + mimeType?: (string|null); + + /** VideoActionRecognitionPredictionInstance timeSegmentStart */ + timeSegmentStart?: (string|null); + + /** VideoActionRecognitionPredictionInstance timeSegmentEnd */ + timeSegmentEnd?: (string|null); + } + + /** Represents a VideoActionRecognitionPredictionInstance. */ + class VideoActionRecognitionPredictionInstance implements IVideoActionRecognitionPredictionInstance { + + /** + * Constructs a new VideoActionRecognitionPredictionInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.IVideoActionRecognitionPredictionInstance); + + /** VideoActionRecognitionPredictionInstance content. */ + public content: string; + + /** VideoActionRecognitionPredictionInstance mimeType. */ + public mimeType: string; + + /** VideoActionRecognitionPredictionInstance timeSegmentStart. */ + public timeSegmentStart: string; + + /** VideoActionRecognitionPredictionInstance timeSegmentEnd. */ + public timeSegmentEnd: string; + + /** + * Creates a new VideoActionRecognitionPredictionInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns VideoActionRecognitionPredictionInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.IVideoActionRecognitionPredictionInstance): google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionInstance; + + /** + * Encodes the specified VideoActionRecognitionPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionInstance.verify|verify} messages. + * @param message VideoActionRecognitionPredictionInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.IVideoActionRecognitionPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VideoActionRecognitionPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionInstance.verify|verify} messages. + * @param message VideoActionRecognitionPredictionInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.IVideoActionRecognitionPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VideoActionRecognitionPredictionInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VideoActionRecognitionPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionInstance; + + /** + * Decodes a VideoActionRecognitionPredictionInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VideoActionRecognitionPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionInstance; + + /** + * Verifies a VideoActionRecognitionPredictionInstance message. + * @param message Plain 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 VideoActionRecognitionPredictionInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VideoActionRecognitionPredictionInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionInstance; + + /** + * Creates a plain object from a VideoActionRecognitionPredictionInstance message. Also converts values to other types if specified. + * @param message VideoActionRecognitionPredictionInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VideoActionRecognitionPredictionInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a TextClassificationPredictionInstance. */ + interface ITextClassificationPredictionInstance { + + /** TextClassificationPredictionInstance content */ + content?: (string|null); + + /** TextClassificationPredictionInstance mimeType */ + mimeType?: (string|null); + } + + /** Represents a TextClassificationPredictionInstance. */ + class TextClassificationPredictionInstance implements ITextClassificationPredictionInstance { + + /** + * Constructs a new TextClassificationPredictionInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.ITextClassificationPredictionInstance); + + /** TextClassificationPredictionInstance content. */ + public content: string; + + /** TextClassificationPredictionInstance mimeType. */ + public mimeType: string; + + /** + * Creates a new TextClassificationPredictionInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns TextClassificationPredictionInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.ITextClassificationPredictionInstance): google.cloud.aiplatform.v1beta1.schema.TextClassificationPredictionInstance; + + /** + * Encodes the specified TextClassificationPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextClassificationPredictionInstance.verify|verify} messages. + * @param message TextClassificationPredictionInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.ITextClassificationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TextClassificationPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextClassificationPredictionInstance.verify|verify} messages. + * @param message TextClassificationPredictionInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.ITextClassificationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TextClassificationPredictionInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TextClassificationPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.TextClassificationPredictionInstance; + + /** + * Decodes a TextClassificationPredictionInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TextClassificationPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.TextClassificationPredictionInstance; + + /** + * Verifies a TextClassificationPredictionInstance message. + * @param message Plain 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 TextClassificationPredictionInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TextClassificationPredictionInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.TextClassificationPredictionInstance; + + /** + * Creates a plain object from a TextClassificationPredictionInstance message. Also converts values to other types if specified. + * @param message TextClassificationPredictionInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.TextClassificationPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TextClassificationPredictionInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a TextSentimentPredictionInstance. */ + interface ITextSentimentPredictionInstance { + + /** TextSentimentPredictionInstance content */ + content?: (string|null); + + /** TextSentimentPredictionInstance mimeType */ + mimeType?: (string|null); + } + + /** Represents a TextSentimentPredictionInstance. */ + class TextSentimentPredictionInstance implements ITextSentimentPredictionInstance { + + /** + * Constructs a new TextSentimentPredictionInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.ITextSentimentPredictionInstance); + + /** TextSentimentPredictionInstance content. */ + public content: string; + + /** TextSentimentPredictionInstance mimeType. */ + public mimeType: string; + + /** + * Creates a new TextSentimentPredictionInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns TextSentimentPredictionInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.ITextSentimentPredictionInstance): google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionInstance; + + /** + * Encodes the specified TextSentimentPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionInstance.verify|verify} messages. + * @param message TextSentimentPredictionInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.ITextSentimentPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TextSentimentPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionInstance.verify|verify} messages. + * @param message TextSentimentPredictionInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.ITextSentimentPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TextSentimentPredictionInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TextSentimentPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionInstance; + + /** + * Decodes a TextSentimentPredictionInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TextSentimentPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionInstance; + + /** + * Verifies a TextSentimentPredictionInstance message. + * @param message Plain 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 TextSentimentPredictionInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TextSentimentPredictionInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionInstance; + + /** + * Creates a plain object from a TextSentimentPredictionInstance message. Also converts values to other types if specified. + * @param message TextSentimentPredictionInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TextSentimentPredictionInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a TextExtractionPredictionInstance. */ + interface ITextExtractionPredictionInstance { + + /** TextExtractionPredictionInstance content */ + content?: (string|null); + + /** TextExtractionPredictionInstance mimeType */ + mimeType?: (string|null); + + /** TextExtractionPredictionInstance key */ + key?: (string|null); + } + + /** Represents a TextExtractionPredictionInstance. */ + class TextExtractionPredictionInstance implements ITextExtractionPredictionInstance { + + /** + * Constructs a new TextExtractionPredictionInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.ITextExtractionPredictionInstance); + + /** TextExtractionPredictionInstance content. */ + public content: string; + + /** TextExtractionPredictionInstance mimeType. */ + public mimeType: string; + + /** TextExtractionPredictionInstance key. */ + public key: string; + + /** + * Creates a new TextExtractionPredictionInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns TextExtractionPredictionInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.ITextExtractionPredictionInstance): google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionInstance; + + /** + * Encodes the specified TextExtractionPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionInstance.verify|verify} messages. + * @param message TextExtractionPredictionInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.ITextExtractionPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TextExtractionPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionInstance.verify|verify} messages. + * @param message TextExtractionPredictionInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.ITextExtractionPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TextExtractionPredictionInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TextExtractionPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionInstance; + + /** + * Decodes a TextExtractionPredictionInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TextExtractionPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionInstance; + + /** + * Verifies a TextExtractionPredictionInstance message. + * @param message Plain 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 TextExtractionPredictionInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TextExtractionPredictionInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionInstance; + + /** + * Creates a plain object from a TextExtractionPredictionInstance message. Also converts values to other types if specified. + * @param message TextExtractionPredictionInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TextExtractionPredictionInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an ImageClassificationPredictionParams. */ + interface IImageClassificationPredictionParams { + + /** ImageClassificationPredictionParams confidenceThreshold */ + confidenceThreshold?: (number|null); + + /** ImageClassificationPredictionParams maxPredictions */ + maxPredictions?: (number|null); + } + + /** Represents an ImageClassificationPredictionParams. */ + class ImageClassificationPredictionParams implements IImageClassificationPredictionParams { + + /** + * Constructs a new ImageClassificationPredictionParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.IImageClassificationPredictionParams); + + /** ImageClassificationPredictionParams confidenceThreshold. */ + public confidenceThreshold: number; + + /** ImageClassificationPredictionParams maxPredictions. */ + public maxPredictions: number; + + /** + * Creates a new ImageClassificationPredictionParams instance using the specified properties. + * @param [properties] Properties to set + * @returns ImageClassificationPredictionParams instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.IImageClassificationPredictionParams): google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionParams; + + /** + * Encodes the specified ImageClassificationPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionParams.verify|verify} messages. + * @param message ImageClassificationPredictionParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.IImageClassificationPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ImageClassificationPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionParams.verify|verify} messages. + * @param message ImageClassificationPredictionParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.IImageClassificationPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ImageClassificationPredictionParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImageClassificationPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionParams; + + /** + * Decodes an ImageClassificationPredictionParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImageClassificationPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionParams; + + /** + * Verifies an ImageClassificationPredictionParams message. + * @param message Plain 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 ImageClassificationPredictionParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImageClassificationPredictionParams + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionParams; + + /** + * Creates a plain object from an ImageClassificationPredictionParams message. Also converts values to other types if specified. + * @param message ImageClassificationPredictionParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ImageClassificationPredictionParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an ImageObjectDetectionPredictionParams. */ + interface IImageObjectDetectionPredictionParams { + + /** ImageObjectDetectionPredictionParams confidenceThreshold */ + confidenceThreshold?: (number|null); + + /** ImageObjectDetectionPredictionParams maxPredictions */ + maxPredictions?: (number|null); + } + + /** Represents an ImageObjectDetectionPredictionParams. */ + class ImageObjectDetectionPredictionParams implements IImageObjectDetectionPredictionParams { + + /** + * Constructs a new ImageObjectDetectionPredictionParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.IImageObjectDetectionPredictionParams); + + /** ImageObjectDetectionPredictionParams confidenceThreshold. */ + public confidenceThreshold: number; + + /** ImageObjectDetectionPredictionParams maxPredictions. */ + public maxPredictions: number; + + /** + * Creates a new ImageObjectDetectionPredictionParams instance using the specified properties. + * @param [properties] Properties to set + * @returns ImageObjectDetectionPredictionParams instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.IImageObjectDetectionPredictionParams): google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionParams; + + /** + * Encodes the specified ImageObjectDetectionPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionParams.verify|verify} messages. + * @param message ImageObjectDetectionPredictionParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.IImageObjectDetectionPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ImageObjectDetectionPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionParams.verify|verify} messages. + * @param message ImageObjectDetectionPredictionParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.IImageObjectDetectionPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ImageObjectDetectionPredictionParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImageObjectDetectionPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionParams; + + /** + * Decodes an ImageObjectDetectionPredictionParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImageObjectDetectionPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionParams; + + /** + * Verifies an ImageObjectDetectionPredictionParams message. + * @param message Plain 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 ImageObjectDetectionPredictionParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImageObjectDetectionPredictionParams + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionParams; + + /** + * Creates a plain object from an ImageObjectDetectionPredictionParams message. Also converts values to other types if specified. + * @param message ImageObjectDetectionPredictionParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ImageObjectDetectionPredictionParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an ImageSegmentationPredictionParams. */ + interface IImageSegmentationPredictionParams { + + /** ImageSegmentationPredictionParams confidenceThreshold */ + confidenceThreshold?: (number|null); + } + + /** Represents an ImageSegmentationPredictionParams. */ + class ImageSegmentationPredictionParams implements IImageSegmentationPredictionParams { + + /** + * Constructs a new ImageSegmentationPredictionParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.IImageSegmentationPredictionParams); + + /** ImageSegmentationPredictionParams confidenceThreshold. */ + public confidenceThreshold: number; + + /** + * Creates a new ImageSegmentationPredictionParams instance using the specified properties. + * @param [properties] Properties to set + * @returns ImageSegmentationPredictionParams instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.IImageSegmentationPredictionParams): google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionParams; + + /** + * Encodes the specified ImageSegmentationPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionParams.verify|verify} messages. + * @param message ImageSegmentationPredictionParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.IImageSegmentationPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ImageSegmentationPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionParams.verify|verify} messages. + * @param message ImageSegmentationPredictionParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.IImageSegmentationPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ImageSegmentationPredictionParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImageSegmentationPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionParams; + + /** + * Decodes an ImageSegmentationPredictionParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImageSegmentationPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionParams; + + /** + * Verifies an ImageSegmentationPredictionParams message. + * @param message Plain 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 ImageSegmentationPredictionParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImageSegmentationPredictionParams + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionParams; + + /** + * Creates a plain object from an ImageSegmentationPredictionParams message. Also converts values to other types if specified. + * @param message ImageSegmentationPredictionParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ImageSegmentationPredictionParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a VideoClassificationPredictionParams. */ + interface IVideoClassificationPredictionParams { + + /** VideoClassificationPredictionParams confidenceThreshold */ + confidenceThreshold?: (number|null); + + /** VideoClassificationPredictionParams maxPredictions */ + maxPredictions?: (number|null); + + /** VideoClassificationPredictionParams segmentClassification */ + segmentClassification?: (boolean|null); + + /** VideoClassificationPredictionParams shotClassification */ + shotClassification?: (boolean|null); + + /** VideoClassificationPredictionParams oneSecIntervalClassification */ + oneSecIntervalClassification?: (boolean|null); + } + + /** Represents a VideoClassificationPredictionParams. */ + class VideoClassificationPredictionParams implements IVideoClassificationPredictionParams { + + /** + * Constructs a new VideoClassificationPredictionParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.IVideoClassificationPredictionParams); + + /** VideoClassificationPredictionParams confidenceThreshold. */ + public confidenceThreshold: number; + + /** VideoClassificationPredictionParams maxPredictions. */ + public maxPredictions: number; + + /** VideoClassificationPredictionParams segmentClassification. */ + public segmentClassification: boolean; + + /** VideoClassificationPredictionParams shotClassification. */ + public shotClassification: boolean; + + /** VideoClassificationPredictionParams oneSecIntervalClassification. */ + public oneSecIntervalClassification: boolean; + + /** + * Creates a new VideoClassificationPredictionParams instance using the specified properties. + * @param [properties] Properties to set + * @returns VideoClassificationPredictionParams instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.IVideoClassificationPredictionParams): google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionParams; + + /** + * Encodes the specified VideoClassificationPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionParams.verify|verify} messages. + * @param message VideoClassificationPredictionParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.IVideoClassificationPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VideoClassificationPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionParams.verify|verify} messages. + * @param message VideoClassificationPredictionParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.IVideoClassificationPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VideoClassificationPredictionParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VideoClassificationPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionParams; + + /** + * Decodes a VideoClassificationPredictionParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VideoClassificationPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionParams; + + /** + * Verifies a VideoClassificationPredictionParams message. + * @param message Plain 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 VideoClassificationPredictionParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VideoClassificationPredictionParams + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionParams; + + /** + * Creates a plain object from a VideoClassificationPredictionParams message. Also converts values to other types if specified. + * @param message VideoClassificationPredictionParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VideoClassificationPredictionParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a VideoObjectTrackingPredictionParams. */ + interface IVideoObjectTrackingPredictionParams { + + /** VideoObjectTrackingPredictionParams confidenceThreshold */ + confidenceThreshold?: (number|null); + + /** VideoObjectTrackingPredictionParams maxPredictions */ + maxPredictions?: (number|null); + + /** VideoObjectTrackingPredictionParams minBoundingBoxSize */ + minBoundingBoxSize?: (number|null); + } + + /** Represents a VideoObjectTrackingPredictionParams. */ + class VideoObjectTrackingPredictionParams implements IVideoObjectTrackingPredictionParams { + + /** + * Constructs a new VideoObjectTrackingPredictionParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.IVideoObjectTrackingPredictionParams); + + /** VideoObjectTrackingPredictionParams confidenceThreshold. */ + public confidenceThreshold: number; + + /** VideoObjectTrackingPredictionParams maxPredictions. */ + public maxPredictions: number; + + /** VideoObjectTrackingPredictionParams minBoundingBoxSize. */ + public minBoundingBoxSize: number; + + /** + * Creates a new VideoObjectTrackingPredictionParams instance using the specified properties. + * @param [properties] Properties to set + * @returns VideoObjectTrackingPredictionParams instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.IVideoObjectTrackingPredictionParams): google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionParams; + + /** + * Encodes the specified VideoObjectTrackingPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionParams.verify|verify} messages. + * @param message VideoObjectTrackingPredictionParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.IVideoObjectTrackingPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VideoObjectTrackingPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionParams.verify|verify} messages. + * @param message VideoObjectTrackingPredictionParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.IVideoObjectTrackingPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VideoObjectTrackingPredictionParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VideoObjectTrackingPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionParams; + + /** + * Decodes a VideoObjectTrackingPredictionParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VideoObjectTrackingPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionParams; + + /** + * Verifies a VideoObjectTrackingPredictionParams message. + * @param message Plain 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 VideoObjectTrackingPredictionParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VideoObjectTrackingPredictionParams + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionParams; + + /** + * Creates a plain object from a VideoObjectTrackingPredictionParams message. Also converts values to other types if specified. + * @param message VideoObjectTrackingPredictionParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VideoObjectTrackingPredictionParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a VideoActionRecognitionPredictionParams. */ + interface IVideoActionRecognitionPredictionParams { + + /** VideoActionRecognitionPredictionParams confidenceThreshold */ + confidenceThreshold?: (number|null); + + /** VideoActionRecognitionPredictionParams maxPredictions */ + maxPredictions?: (number|null); + } + + /** Represents a VideoActionRecognitionPredictionParams. */ + class VideoActionRecognitionPredictionParams implements IVideoActionRecognitionPredictionParams { + + /** + * Constructs a new VideoActionRecognitionPredictionParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.IVideoActionRecognitionPredictionParams); + + /** VideoActionRecognitionPredictionParams confidenceThreshold. */ + public confidenceThreshold: number; + + /** VideoActionRecognitionPredictionParams maxPredictions. */ + public maxPredictions: number; + + /** + * Creates a new VideoActionRecognitionPredictionParams instance using the specified properties. + * @param [properties] Properties to set + * @returns VideoActionRecognitionPredictionParams instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.IVideoActionRecognitionPredictionParams): google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionParams; + + /** + * Encodes the specified VideoActionRecognitionPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionParams.verify|verify} messages. + * @param message VideoActionRecognitionPredictionParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.IVideoActionRecognitionPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VideoActionRecognitionPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionParams.verify|verify} messages. + * @param message VideoActionRecognitionPredictionParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.IVideoActionRecognitionPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VideoActionRecognitionPredictionParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VideoActionRecognitionPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionParams; + + /** + * Decodes a VideoActionRecognitionPredictionParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VideoActionRecognitionPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionParams; + + /** + * Verifies a VideoActionRecognitionPredictionParams message. + * @param message Plain 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 VideoActionRecognitionPredictionParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VideoActionRecognitionPredictionParams + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionParams; + + /** + * Creates a plain object from a VideoActionRecognitionPredictionParams message. Also converts values to other types if specified. + * @param message VideoActionRecognitionPredictionParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VideoActionRecognitionPredictionParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a PredictionResult. */ + interface IPredictionResult { + + /** PredictionResult instance */ + instance?: (google.protobuf.IStruct|null); + + /** PredictionResult key */ + key?: (string|null); + + /** PredictionResult prediction */ + prediction?: (google.protobuf.IValue|null); + } + + /** Represents a PredictionResult. */ + class PredictionResult implements IPredictionResult { + + /** + * Constructs a new PredictionResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.IPredictionResult); + + /** PredictionResult instance. */ + public instance?: (google.protobuf.IStruct|null); + + /** PredictionResult key. */ + public key: string; + + /** PredictionResult prediction. */ + public prediction?: (google.protobuf.IValue|null); + + /** PredictionResult input. */ + public input?: ("instance"|"key"); + + /** + * Creates a new PredictionResult instance using the specified properties. + * @param [properties] Properties to set + * @returns PredictionResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.IPredictionResult): google.cloud.aiplatform.v1beta1.schema.PredictionResult; + + /** + * Encodes the specified PredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.PredictionResult.verify|verify} messages. + * @param message PredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.IPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.PredictionResult.verify|verify} messages. + * @param message PredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.IPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PredictionResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.PredictionResult; + + /** + * Decodes a PredictionResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.PredictionResult; + + /** + * Verifies a PredictionResult message. + * @param message Plain 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 PredictionResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PredictionResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.PredictionResult; + + /** + * Creates a plain object from a PredictionResult message. Also converts values to other types if specified. + * @param message PredictionResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.PredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PredictionResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a TextSentimentPredictionResult. */ + interface ITextSentimentPredictionResult { + + /** TextSentimentPredictionResult instance */ + instance?: (google.cloud.aiplatform.v1beta1.schema.ITextSentimentPredictionInstance|null); + + /** TextSentimentPredictionResult prediction */ + prediction?: (google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.IPrediction|null); + } + + /** Represents a TextSentimentPredictionResult. */ + class TextSentimentPredictionResult implements ITextSentimentPredictionResult { + + /** + * Constructs a new TextSentimentPredictionResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.ITextSentimentPredictionResult); + + /** TextSentimentPredictionResult instance. */ + public instance?: (google.cloud.aiplatform.v1beta1.schema.ITextSentimentPredictionInstance|null); + + /** TextSentimentPredictionResult prediction. */ + public prediction?: (google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.IPrediction|null); + + /** + * Creates a new TextSentimentPredictionResult instance using the specified properties. + * @param [properties] Properties to set + * @returns TextSentimentPredictionResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.ITextSentimentPredictionResult): google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult; + + /** + * Encodes the specified TextSentimentPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.verify|verify} messages. + * @param message TextSentimentPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.ITextSentimentPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TextSentimentPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.verify|verify} messages. + * @param message TextSentimentPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.ITextSentimentPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TextSentimentPredictionResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TextSentimentPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult; + + /** + * Decodes a TextSentimentPredictionResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TextSentimentPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult; + + /** + * Verifies a TextSentimentPredictionResult message. + * @param message Plain 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 TextSentimentPredictionResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TextSentimentPredictionResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult; + + /** + * Creates a plain object from a TextSentimentPredictionResult message. Also converts values to other types if specified. + * @param message TextSentimentPredictionResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TextSentimentPredictionResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace TextSentimentPredictionResult { + + /** Properties of a Prediction. */ + interface IPrediction { + + /** Prediction sentiment */ + sentiment?: (number|null); + } + + /** Represents a Prediction. */ + class Prediction implements IPrediction { + + /** + * Constructs a new Prediction. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.IPrediction); + + /** Prediction sentiment. */ + public sentiment: number; + + /** + * Creates a new Prediction instance using the specified properties. + * @param [properties] Properties to set + * @returns Prediction instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.IPrediction): google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.Prediction; + + /** + * Encodes the specified Prediction message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.Prediction.verify|verify} messages. + * @param message Prediction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.IPrediction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Prediction message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.Prediction.verify|verify} messages. + * @param message Prediction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.IPrediction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Prediction message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Prediction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.Prediction; + + /** + * Decodes a Prediction message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Prediction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.Prediction; + + /** + * Verifies a Prediction message. + * @param message Plain 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 Prediction message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Prediction + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.Prediction; + + /** + * Creates a plain object from a Prediction message. Also converts values to other types if specified. + * @param message Prediction + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.Prediction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Prediction to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of a ClassificationPredictionResult. */ + interface IClassificationPredictionResult { + + /** ClassificationPredictionResult ids */ + ids?: ((number|Long|string)[]|null); + + /** ClassificationPredictionResult displayNames */ + displayNames?: (string[]|null); + + /** ClassificationPredictionResult confidences */ + confidences?: (number[]|null); + } + + /** Represents a ClassificationPredictionResult. */ + class ClassificationPredictionResult implements IClassificationPredictionResult { + + /** + * Constructs a new ClassificationPredictionResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.IClassificationPredictionResult); + + /** ClassificationPredictionResult ids. */ + public ids: (number|Long|string)[]; + + /** ClassificationPredictionResult displayNames. */ + public displayNames: string[]; + + /** ClassificationPredictionResult confidences. */ + public confidences: number[]; + + /** + * Creates a new ClassificationPredictionResult instance using the specified properties. + * @param [properties] Properties to set + * @returns ClassificationPredictionResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.IClassificationPredictionResult): google.cloud.aiplatform.v1beta1.schema.ClassificationPredictionResult; + + /** + * Encodes the specified ClassificationPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ClassificationPredictionResult.verify|verify} messages. + * @param message ClassificationPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.IClassificationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ClassificationPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ClassificationPredictionResult.verify|verify} messages. + * @param message ClassificationPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.IClassificationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ClassificationPredictionResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ClassificationPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.ClassificationPredictionResult; + + /** + * Decodes a ClassificationPredictionResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ClassificationPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.ClassificationPredictionResult; + + /** + * Verifies a ClassificationPredictionResult message. + * @param message Plain 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 ClassificationPredictionResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ClassificationPredictionResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.ClassificationPredictionResult; + + /** + * Creates a plain object from a ClassificationPredictionResult message. Also converts values to other types if specified. + * @param message ClassificationPredictionResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.ClassificationPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ClassificationPredictionResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an ImageObjectDetectionPredictionResult. */ + interface IImageObjectDetectionPredictionResult { + + /** ImageObjectDetectionPredictionResult ids */ + ids?: ((number|Long|string)[]|null); + + /** ImageObjectDetectionPredictionResult displayNames */ + displayNames?: (string[]|null); + + /** ImageObjectDetectionPredictionResult confidences */ + confidences?: (number[]|null); + + /** ImageObjectDetectionPredictionResult bboxes */ + bboxes?: (google.protobuf.IListValue[]|null); + } + + /** Represents an ImageObjectDetectionPredictionResult. */ + class ImageObjectDetectionPredictionResult implements IImageObjectDetectionPredictionResult { + + /** + * Constructs a new ImageObjectDetectionPredictionResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.IImageObjectDetectionPredictionResult); + + /** ImageObjectDetectionPredictionResult ids. */ + public ids: (number|Long|string)[]; + + /** ImageObjectDetectionPredictionResult displayNames. */ + public displayNames: string[]; + + /** ImageObjectDetectionPredictionResult confidences. */ + public confidences: number[]; + + /** ImageObjectDetectionPredictionResult bboxes. */ + public bboxes: google.protobuf.IListValue[]; + + /** + * Creates a new ImageObjectDetectionPredictionResult instance using the specified properties. + * @param [properties] Properties to set + * @returns ImageObjectDetectionPredictionResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.IImageObjectDetectionPredictionResult): google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionResult; + + /** + * Encodes the specified ImageObjectDetectionPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionResult.verify|verify} messages. + * @param message ImageObjectDetectionPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.IImageObjectDetectionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ImageObjectDetectionPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionResult.verify|verify} messages. + * @param message ImageObjectDetectionPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.IImageObjectDetectionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ImageObjectDetectionPredictionResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImageObjectDetectionPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionResult; + + /** + * Decodes an ImageObjectDetectionPredictionResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImageObjectDetectionPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionResult; + + /** + * Verifies an ImageObjectDetectionPredictionResult message. + * @param message Plain 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 ImageObjectDetectionPredictionResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImageObjectDetectionPredictionResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionResult; + + /** + * Creates a plain object from an ImageObjectDetectionPredictionResult message. Also converts values to other types if specified. + * @param message ImageObjectDetectionPredictionResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ImageObjectDetectionPredictionResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a VideoClassificationPredictionResult. */ + interface IVideoClassificationPredictionResult { + + /** VideoClassificationPredictionResult id */ + id?: (string|null); + + /** VideoClassificationPredictionResult displayName */ + displayName?: (string|null); + + /** VideoClassificationPredictionResult type */ + type?: (string|null); + + /** VideoClassificationPredictionResult timeSegmentStart */ + timeSegmentStart?: (google.protobuf.IDuration|null); + + /** VideoClassificationPredictionResult timeSegmentEnd */ + timeSegmentEnd?: (google.protobuf.IDuration|null); + + /** VideoClassificationPredictionResult confidence */ + confidence?: (google.protobuf.IFloatValue|null); + } + + /** Represents a VideoClassificationPredictionResult. */ + class VideoClassificationPredictionResult implements IVideoClassificationPredictionResult { + + /** + * Constructs a new VideoClassificationPredictionResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.IVideoClassificationPredictionResult); + + /** VideoClassificationPredictionResult id. */ + public id: string; + + /** VideoClassificationPredictionResult displayName. */ + public displayName: string; + + /** VideoClassificationPredictionResult type. */ + public type: string; + + /** VideoClassificationPredictionResult timeSegmentStart. */ + public timeSegmentStart?: (google.protobuf.IDuration|null); + + /** VideoClassificationPredictionResult timeSegmentEnd. */ + public timeSegmentEnd?: (google.protobuf.IDuration|null); + + /** VideoClassificationPredictionResult confidence. */ + public confidence?: (google.protobuf.IFloatValue|null); + + /** + * Creates a new VideoClassificationPredictionResult instance using the specified properties. + * @param [properties] Properties to set + * @returns VideoClassificationPredictionResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.IVideoClassificationPredictionResult): google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionResult; + + /** + * Encodes the specified VideoClassificationPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionResult.verify|verify} messages. + * @param message VideoClassificationPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.IVideoClassificationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VideoClassificationPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionResult.verify|verify} messages. + * @param message VideoClassificationPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.IVideoClassificationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VideoClassificationPredictionResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VideoClassificationPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionResult; + + /** + * Decodes a VideoClassificationPredictionResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VideoClassificationPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionResult; + + /** + * Verifies a VideoClassificationPredictionResult message. + * @param message Plain 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 VideoClassificationPredictionResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VideoClassificationPredictionResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionResult; + + /** + * Creates a plain object from a VideoClassificationPredictionResult message. Also converts values to other types if specified. + * @param message VideoClassificationPredictionResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VideoClassificationPredictionResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a VideoObjectTrackingPredictionResult. */ + interface IVideoObjectTrackingPredictionResult { + + /** VideoObjectTrackingPredictionResult id */ + id?: (string|null); + + /** VideoObjectTrackingPredictionResult displayName */ + displayName?: (string|null); + + /** VideoObjectTrackingPredictionResult timeSegmentStart */ + timeSegmentStart?: (google.protobuf.IDuration|null); + + /** VideoObjectTrackingPredictionResult timeSegmentEnd */ + timeSegmentEnd?: (google.protobuf.IDuration|null); + + /** VideoObjectTrackingPredictionResult confidence */ + confidence?: (google.protobuf.IFloatValue|null); + + /** VideoObjectTrackingPredictionResult frames */ + frames?: (google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.IFrame[]|null); + } + + /** Represents a VideoObjectTrackingPredictionResult. */ + class VideoObjectTrackingPredictionResult implements IVideoObjectTrackingPredictionResult { + + /** + * Constructs a new VideoObjectTrackingPredictionResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.IVideoObjectTrackingPredictionResult); + + /** VideoObjectTrackingPredictionResult id. */ + public id: string; + + /** VideoObjectTrackingPredictionResult displayName. */ + public displayName: string; + + /** VideoObjectTrackingPredictionResult timeSegmentStart. */ + public timeSegmentStart?: (google.protobuf.IDuration|null); + + /** VideoObjectTrackingPredictionResult timeSegmentEnd. */ + public timeSegmentEnd?: (google.protobuf.IDuration|null); + + /** VideoObjectTrackingPredictionResult confidence. */ + public confidence?: (google.protobuf.IFloatValue|null); + + /** VideoObjectTrackingPredictionResult frames. */ + public frames: google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.IFrame[]; + + /** + * Creates a new VideoObjectTrackingPredictionResult instance using the specified properties. + * @param [properties] Properties to set + * @returns VideoObjectTrackingPredictionResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.IVideoObjectTrackingPredictionResult): google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult; + + /** + * Encodes the specified VideoObjectTrackingPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.verify|verify} messages. + * @param message VideoObjectTrackingPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.IVideoObjectTrackingPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VideoObjectTrackingPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.verify|verify} messages. + * @param message VideoObjectTrackingPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.IVideoObjectTrackingPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VideoObjectTrackingPredictionResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VideoObjectTrackingPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult; + + /** + * Decodes a VideoObjectTrackingPredictionResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VideoObjectTrackingPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult; + + /** + * Verifies a VideoObjectTrackingPredictionResult message. + * @param message Plain 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 VideoObjectTrackingPredictionResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VideoObjectTrackingPredictionResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult; + + /** + * Creates a plain object from a VideoObjectTrackingPredictionResult message. Also converts values to other types if specified. + * @param message VideoObjectTrackingPredictionResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VideoObjectTrackingPredictionResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace VideoObjectTrackingPredictionResult { + + /** Properties of a Frame. */ + interface IFrame { + + /** Frame timeOffset */ + timeOffset?: (google.protobuf.IDuration|null); + + /** Frame xMin */ + xMin?: (google.protobuf.IFloatValue|null); + + /** Frame xMax */ + xMax?: (google.protobuf.IFloatValue|null); + + /** Frame yMin */ + yMin?: (google.protobuf.IFloatValue|null); + + /** Frame yMax */ + yMax?: (google.protobuf.IFloatValue|null); + } + + /** Represents a Frame. */ + class Frame implements IFrame { + + /** + * Constructs a new Frame. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.IFrame); + + /** Frame timeOffset. */ + public timeOffset?: (google.protobuf.IDuration|null); + + /** Frame xMin. */ + public xMin?: (google.protobuf.IFloatValue|null); + + /** Frame xMax. */ + public xMax?: (google.protobuf.IFloatValue|null); + + /** Frame yMin. */ + public yMin?: (google.protobuf.IFloatValue|null); + + /** Frame yMax. */ + public yMax?: (google.protobuf.IFloatValue|null); + + /** + * Creates a new Frame instance using the specified properties. + * @param [properties] Properties to set + * @returns Frame instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.IFrame): google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame; + + /** + * Encodes the specified Frame message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame.verify|verify} messages. + * @param message Frame message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.IFrame, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Frame message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame.verify|verify} messages. + * @param message Frame message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.IFrame, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Frame message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Frame + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame; + + /** + * Decodes a Frame message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Frame + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame; + + /** + * Verifies a Frame message. + * @param message Plain 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 Frame message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Frame + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame; + + /** + * Creates a plain object from a Frame message. Also converts values to other types if specified. + * @param message Frame + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Frame to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of a TextExtractionPredictionResult. */ + interface ITextExtractionPredictionResult { + + /** TextExtractionPredictionResult ids */ + ids?: ((number|Long|string)[]|null); + + /** TextExtractionPredictionResult displayNames */ + displayNames?: (string[]|null); + + /** TextExtractionPredictionResult textSegmentStartOffsets */ + textSegmentStartOffsets?: ((number|Long|string)[]|null); + + /** TextExtractionPredictionResult textSegmentEndOffsets */ + textSegmentEndOffsets?: ((number|Long|string)[]|null); + + /** TextExtractionPredictionResult confidences */ + confidences?: (number[]|null); + } + + /** Represents a TextExtractionPredictionResult. */ + class TextExtractionPredictionResult implements ITextExtractionPredictionResult { + + /** + * Constructs a new TextExtractionPredictionResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.ITextExtractionPredictionResult); + + /** TextExtractionPredictionResult ids. */ + public ids: (number|Long|string)[]; + + /** TextExtractionPredictionResult displayNames. */ + public displayNames: string[]; + + /** TextExtractionPredictionResult textSegmentStartOffsets. */ + public textSegmentStartOffsets: (number|Long|string)[]; + + /** TextExtractionPredictionResult textSegmentEndOffsets. */ + public textSegmentEndOffsets: (number|Long|string)[]; + + /** TextExtractionPredictionResult confidences. */ + public confidences: number[]; + + /** + * Creates a new TextExtractionPredictionResult instance using the specified properties. + * @param [properties] Properties to set + * @returns TextExtractionPredictionResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.ITextExtractionPredictionResult): google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionResult; + + /** + * Encodes the specified TextExtractionPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionResult.verify|verify} messages. + * @param message TextExtractionPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.ITextExtractionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TextExtractionPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionResult.verify|verify} messages. + * @param message TextExtractionPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.ITextExtractionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TextExtractionPredictionResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TextExtractionPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionResult; + + /** + * Decodes a TextExtractionPredictionResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TextExtractionPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionResult; + + /** + * Verifies a TextExtractionPredictionResult message. + * @param message Plain 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 TextExtractionPredictionResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TextExtractionPredictionResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionResult; + + /** + * Creates a plain object from a TextExtractionPredictionResult message. Also converts values to other types if specified. + * @param message TextExtractionPredictionResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TextExtractionPredictionResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Namespace predict. */ + namespace predict { + + /** Namespace instance. */ + namespace instance { + + /** Properties of an ImageClassificationPredictionInstance. */ + interface IImageClassificationPredictionInstance { + + /** ImageClassificationPredictionInstance content */ + content?: (string|null); + + /** ImageClassificationPredictionInstance mimeType */ + mimeType?: (string|null); + } + + /** Represents an ImageClassificationPredictionInstance. */ + class ImageClassificationPredictionInstance implements IImageClassificationPredictionInstance { + + /** + * Constructs a new ImageClassificationPredictionInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.predict.instance.IImageClassificationPredictionInstance); + + /** ImageClassificationPredictionInstance content. */ + public content: string; + + /** ImageClassificationPredictionInstance mimeType. */ + public mimeType: string; + + /** + * Creates a new ImageClassificationPredictionInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns ImageClassificationPredictionInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.predict.instance.IImageClassificationPredictionInstance): google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageClassificationPredictionInstance; + + /** + * Encodes the specified ImageClassificationPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageClassificationPredictionInstance.verify|verify} messages. + * @param message ImageClassificationPredictionInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.predict.instance.IImageClassificationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ImageClassificationPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageClassificationPredictionInstance.verify|verify} messages. + * @param message ImageClassificationPredictionInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.predict.instance.IImageClassificationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ImageClassificationPredictionInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImageClassificationPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageClassificationPredictionInstance; + + /** + * Decodes an ImageClassificationPredictionInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImageClassificationPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageClassificationPredictionInstance; + + /** + * Verifies an ImageClassificationPredictionInstance message. + * @param message Plain 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 ImageClassificationPredictionInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImageClassificationPredictionInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageClassificationPredictionInstance; + + /** + * Creates a plain object from an ImageClassificationPredictionInstance message. Also converts values to other types if specified. + * @param message ImageClassificationPredictionInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageClassificationPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ImageClassificationPredictionInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an ImageObjectDetectionPredictionInstance. */ + interface IImageObjectDetectionPredictionInstance { + + /** ImageObjectDetectionPredictionInstance content */ + content?: (string|null); + + /** ImageObjectDetectionPredictionInstance mimeType */ + mimeType?: (string|null); + } + + /** Represents an ImageObjectDetectionPredictionInstance. */ + class ImageObjectDetectionPredictionInstance implements IImageObjectDetectionPredictionInstance { + + /** + * Constructs a new ImageObjectDetectionPredictionInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.predict.instance.IImageObjectDetectionPredictionInstance); + + /** ImageObjectDetectionPredictionInstance content. */ + public content: string; + + /** ImageObjectDetectionPredictionInstance mimeType. */ + public mimeType: string; + + /** + * Creates a new ImageObjectDetectionPredictionInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns ImageObjectDetectionPredictionInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.predict.instance.IImageObjectDetectionPredictionInstance): google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageObjectDetectionPredictionInstance; + + /** + * Encodes the specified ImageObjectDetectionPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageObjectDetectionPredictionInstance.verify|verify} messages. + * @param message ImageObjectDetectionPredictionInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.predict.instance.IImageObjectDetectionPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ImageObjectDetectionPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageObjectDetectionPredictionInstance.verify|verify} messages. + * @param message ImageObjectDetectionPredictionInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.predict.instance.IImageObjectDetectionPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ImageObjectDetectionPredictionInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImageObjectDetectionPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageObjectDetectionPredictionInstance; + + /** + * Decodes an ImageObjectDetectionPredictionInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImageObjectDetectionPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageObjectDetectionPredictionInstance; + + /** + * Verifies an ImageObjectDetectionPredictionInstance message. + * @param message Plain 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 ImageObjectDetectionPredictionInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImageObjectDetectionPredictionInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageObjectDetectionPredictionInstance; + + /** + * Creates a plain object from an ImageObjectDetectionPredictionInstance message. Also converts values to other types if specified. + * @param message ImageObjectDetectionPredictionInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageObjectDetectionPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ImageObjectDetectionPredictionInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an ImageSegmentationPredictionInstance. */ + interface IImageSegmentationPredictionInstance { + + /** ImageSegmentationPredictionInstance content */ + content?: (string|null); + + /** ImageSegmentationPredictionInstance mimeType */ + mimeType?: (string|null); + } + + /** Represents an ImageSegmentationPredictionInstance. */ + class ImageSegmentationPredictionInstance implements IImageSegmentationPredictionInstance { + + /** + * Constructs a new ImageSegmentationPredictionInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.predict.instance.IImageSegmentationPredictionInstance); + + /** ImageSegmentationPredictionInstance content. */ + public content: string; + + /** ImageSegmentationPredictionInstance mimeType. */ + public mimeType: string; + + /** + * Creates a new ImageSegmentationPredictionInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns ImageSegmentationPredictionInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.predict.instance.IImageSegmentationPredictionInstance): google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageSegmentationPredictionInstance; + + /** + * Encodes the specified ImageSegmentationPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageSegmentationPredictionInstance.verify|verify} messages. + * @param message ImageSegmentationPredictionInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.predict.instance.IImageSegmentationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ImageSegmentationPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageSegmentationPredictionInstance.verify|verify} messages. + * @param message ImageSegmentationPredictionInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.predict.instance.IImageSegmentationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ImageSegmentationPredictionInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImageSegmentationPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageSegmentationPredictionInstance; + + /** + * Decodes an ImageSegmentationPredictionInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImageSegmentationPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageSegmentationPredictionInstance; + + /** + * Verifies an ImageSegmentationPredictionInstance message. + * @param message Plain 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 ImageSegmentationPredictionInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImageSegmentationPredictionInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageSegmentationPredictionInstance; + + /** + * Creates a plain object from an ImageSegmentationPredictionInstance message. Also converts values to other types if specified. + * @param message ImageSegmentationPredictionInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageSegmentationPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ImageSegmentationPredictionInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a TextClassificationPredictionInstance. */ + interface ITextClassificationPredictionInstance { + + /** TextClassificationPredictionInstance content */ + content?: (string|null); + + /** TextClassificationPredictionInstance mimeType */ + mimeType?: (string|null); + } + + /** Represents a TextClassificationPredictionInstance. */ + class TextClassificationPredictionInstance implements ITextClassificationPredictionInstance { + + /** + * Constructs a new TextClassificationPredictionInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.predict.instance.ITextClassificationPredictionInstance); + + /** TextClassificationPredictionInstance content. */ + public content: string; + + /** TextClassificationPredictionInstance mimeType. */ + public mimeType: string; + + /** + * Creates a new TextClassificationPredictionInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns TextClassificationPredictionInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.predict.instance.ITextClassificationPredictionInstance): google.cloud.aiplatform.v1beta1.schema.predict.instance.TextClassificationPredictionInstance; + + /** + * Encodes the specified TextClassificationPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.instance.TextClassificationPredictionInstance.verify|verify} messages. + * @param message TextClassificationPredictionInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.predict.instance.ITextClassificationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TextClassificationPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.instance.TextClassificationPredictionInstance.verify|verify} messages. + * @param message TextClassificationPredictionInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.predict.instance.ITextClassificationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TextClassificationPredictionInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TextClassificationPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.predict.instance.TextClassificationPredictionInstance; + + /** + * Decodes a TextClassificationPredictionInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TextClassificationPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.predict.instance.TextClassificationPredictionInstance; + + /** + * Verifies a TextClassificationPredictionInstance message. + * @param message Plain 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 TextClassificationPredictionInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TextClassificationPredictionInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.predict.instance.TextClassificationPredictionInstance; + + /** + * Creates a plain object from a TextClassificationPredictionInstance message. Also converts values to other types if specified. + * @param message TextClassificationPredictionInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.predict.instance.TextClassificationPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TextClassificationPredictionInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a TextExtractionPredictionInstance. */ + interface ITextExtractionPredictionInstance { + + /** TextExtractionPredictionInstance content */ + content?: (string|null); + + /** TextExtractionPredictionInstance mimeType */ + mimeType?: (string|null); + + /** TextExtractionPredictionInstance key */ + key?: (string|null); + } + + /** Represents a TextExtractionPredictionInstance. */ + class TextExtractionPredictionInstance implements ITextExtractionPredictionInstance { + + /** + * Constructs a new TextExtractionPredictionInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.predict.instance.ITextExtractionPredictionInstance); + + /** TextExtractionPredictionInstance content. */ + public content: string; + + /** TextExtractionPredictionInstance mimeType. */ + public mimeType: string; + + /** TextExtractionPredictionInstance key. */ + public key: string; + + /** + * Creates a new TextExtractionPredictionInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns TextExtractionPredictionInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.predict.instance.ITextExtractionPredictionInstance): google.cloud.aiplatform.v1beta1.schema.predict.instance.TextExtractionPredictionInstance; + + /** + * Encodes the specified TextExtractionPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.instance.TextExtractionPredictionInstance.verify|verify} messages. + * @param message TextExtractionPredictionInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.predict.instance.ITextExtractionPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TextExtractionPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.instance.TextExtractionPredictionInstance.verify|verify} messages. + * @param message TextExtractionPredictionInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.predict.instance.ITextExtractionPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TextExtractionPredictionInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TextExtractionPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.predict.instance.TextExtractionPredictionInstance; + + /** + * Decodes a TextExtractionPredictionInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TextExtractionPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.predict.instance.TextExtractionPredictionInstance; + + /** + * Verifies a TextExtractionPredictionInstance message. + * @param message Plain 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 TextExtractionPredictionInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TextExtractionPredictionInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.predict.instance.TextExtractionPredictionInstance; + + /** + * Creates a plain object from a TextExtractionPredictionInstance message. Also converts values to other types if specified. + * @param message TextExtractionPredictionInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.predict.instance.TextExtractionPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TextExtractionPredictionInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a TextSentimentPredictionInstance. */ + interface ITextSentimentPredictionInstance { + + /** TextSentimentPredictionInstance content */ + content?: (string|null); + + /** TextSentimentPredictionInstance mimeType */ + mimeType?: (string|null); + } + + /** Represents a TextSentimentPredictionInstance. */ + class TextSentimentPredictionInstance implements ITextSentimentPredictionInstance { + + /** + * Constructs a new TextSentimentPredictionInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.predict.instance.ITextSentimentPredictionInstance); + + /** TextSentimentPredictionInstance content. */ + public content: string; + + /** TextSentimentPredictionInstance mimeType. */ + public mimeType: string; + + /** + * Creates a new TextSentimentPredictionInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns TextSentimentPredictionInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.predict.instance.ITextSentimentPredictionInstance): google.cloud.aiplatform.v1beta1.schema.predict.instance.TextSentimentPredictionInstance; + + /** + * Encodes the specified TextSentimentPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.instance.TextSentimentPredictionInstance.verify|verify} messages. + * @param message TextSentimentPredictionInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.predict.instance.ITextSentimentPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TextSentimentPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.instance.TextSentimentPredictionInstance.verify|verify} messages. + * @param message TextSentimentPredictionInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.predict.instance.ITextSentimentPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TextSentimentPredictionInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TextSentimentPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.predict.instance.TextSentimentPredictionInstance; + + /** + * Decodes a TextSentimentPredictionInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TextSentimentPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.predict.instance.TextSentimentPredictionInstance; + + /** + * Verifies a TextSentimentPredictionInstance message. + * @param message Plain 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 TextSentimentPredictionInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TextSentimentPredictionInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.predict.instance.TextSentimentPredictionInstance; + + /** + * Creates a plain object from a TextSentimentPredictionInstance message. Also converts values to other types if specified. + * @param message TextSentimentPredictionInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.predict.instance.TextSentimentPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TextSentimentPredictionInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a VideoActionRecognitionPredictionInstance. */ + interface IVideoActionRecognitionPredictionInstance { + + /** VideoActionRecognitionPredictionInstance content */ + content?: (string|null); + + /** VideoActionRecognitionPredictionInstance mimeType */ + mimeType?: (string|null); + + /** VideoActionRecognitionPredictionInstance timeSegmentStart */ + timeSegmentStart?: (string|null); + + /** VideoActionRecognitionPredictionInstance timeSegmentEnd */ + timeSegmentEnd?: (string|null); + } + + /** Represents a VideoActionRecognitionPredictionInstance. */ + class VideoActionRecognitionPredictionInstance implements IVideoActionRecognitionPredictionInstance { + + /** + * Constructs a new VideoActionRecognitionPredictionInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.predict.instance.IVideoActionRecognitionPredictionInstance); + + /** VideoActionRecognitionPredictionInstance content. */ + public content: string; + + /** VideoActionRecognitionPredictionInstance mimeType. */ + public mimeType: string; + + /** VideoActionRecognitionPredictionInstance timeSegmentStart. */ + public timeSegmentStart: string; + + /** VideoActionRecognitionPredictionInstance timeSegmentEnd. */ + public timeSegmentEnd: string; + + /** + * Creates a new VideoActionRecognitionPredictionInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns VideoActionRecognitionPredictionInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.predict.instance.IVideoActionRecognitionPredictionInstance): google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoActionRecognitionPredictionInstance; + + /** + * Encodes the specified VideoActionRecognitionPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoActionRecognitionPredictionInstance.verify|verify} messages. + * @param message VideoActionRecognitionPredictionInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.predict.instance.IVideoActionRecognitionPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VideoActionRecognitionPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoActionRecognitionPredictionInstance.verify|verify} messages. + * @param message VideoActionRecognitionPredictionInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.predict.instance.IVideoActionRecognitionPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VideoActionRecognitionPredictionInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VideoActionRecognitionPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoActionRecognitionPredictionInstance; + + /** + * Decodes a VideoActionRecognitionPredictionInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VideoActionRecognitionPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoActionRecognitionPredictionInstance; + + /** + * Verifies a VideoActionRecognitionPredictionInstance message. + * @param message Plain 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 VideoActionRecognitionPredictionInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VideoActionRecognitionPredictionInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoActionRecognitionPredictionInstance; + + /** + * Creates a plain object from a VideoActionRecognitionPredictionInstance message. Also converts values to other types if specified. + * @param message VideoActionRecognitionPredictionInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoActionRecognitionPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VideoActionRecognitionPredictionInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a VideoClassificationPredictionInstance. */ + interface IVideoClassificationPredictionInstance { + + /** VideoClassificationPredictionInstance content */ + content?: (string|null); + + /** VideoClassificationPredictionInstance mimeType */ + mimeType?: (string|null); + + /** VideoClassificationPredictionInstance timeSegmentStart */ + timeSegmentStart?: (string|null); + + /** VideoClassificationPredictionInstance timeSegmentEnd */ + timeSegmentEnd?: (string|null); + } + + /** Represents a VideoClassificationPredictionInstance. */ + class VideoClassificationPredictionInstance implements IVideoClassificationPredictionInstance { + + /** + * Constructs a new VideoClassificationPredictionInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.predict.instance.IVideoClassificationPredictionInstance); + + /** VideoClassificationPredictionInstance content. */ + public content: string; + + /** VideoClassificationPredictionInstance mimeType. */ + public mimeType: string; + + /** VideoClassificationPredictionInstance timeSegmentStart. */ + public timeSegmentStart: string; + + /** VideoClassificationPredictionInstance timeSegmentEnd. */ + public timeSegmentEnd: string; + + /** + * Creates a new VideoClassificationPredictionInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns VideoClassificationPredictionInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.predict.instance.IVideoClassificationPredictionInstance): google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoClassificationPredictionInstance; + + /** + * Encodes the specified VideoClassificationPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoClassificationPredictionInstance.verify|verify} messages. + * @param message VideoClassificationPredictionInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.predict.instance.IVideoClassificationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VideoClassificationPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoClassificationPredictionInstance.verify|verify} messages. + * @param message VideoClassificationPredictionInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.predict.instance.IVideoClassificationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VideoClassificationPredictionInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VideoClassificationPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoClassificationPredictionInstance; + + /** + * Decodes a VideoClassificationPredictionInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VideoClassificationPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoClassificationPredictionInstance; + + /** + * Verifies a VideoClassificationPredictionInstance message. + * @param message Plain 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 VideoClassificationPredictionInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VideoClassificationPredictionInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoClassificationPredictionInstance; + + /** + * Creates a plain object from a VideoClassificationPredictionInstance message. Also converts values to other types if specified. + * @param message VideoClassificationPredictionInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoClassificationPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VideoClassificationPredictionInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a VideoObjectTrackingPredictionInstance. */ + interface IVideoObjectTrackingPredictionInstance { + + /** VideoObjectTrackingPredictionInstance content */ + content?: (string|null); + + /** VideoObjectTrackingPredictionInstance mimeType */ + mimeType?: (string|null); + + /** VideoObjectTrackingPredictionInstance timeSegmentStart */ + timeSegmentStart?: (string|null); + + /** VideoObjectTrackingPredictionInstance timeSegmentEnd */ + timeSegmentEnd?: (string|null); + } + + /** Represents a VideoObjectTrackingPredictionInstance. */ + class VideoObjectTrackingPredictionInstance implements IVideoObjectTrackingPredictionInstance { + + /** + * Constructs a new VideoObjectTrackingPredictionInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.predict.instance.IVideoObjectTrackingPredictionInstance); + + /** VideoObjectTrackingPredictionInstance content. */ + public content: string; + + /** VideoObjectTrackingPredictionInstance mimeType. */ + public mimeType: string; + + /** VideoObjectTrackingPredictionInstance timeSegmentStart. */ + public timeSegmentStart: string; + + /** VideoObjectTrackingPredictionInstance timeSegmentEnd. */ + public timeSegmentEnd: string; + + /** + * Creates a new VideoObjectTrackingPredictionInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns VideoObjectTrackingPredictionInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.predict.instance.IVideoObjectTrackingPredictionInstance): google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoObjectTrackingPredictionInstance; + + /** + * Encodes the specified VideoObjectTrackingPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoObjectTrackingPredictionInstance.verify|verify} messages. + * @param message VideoObjectTrackingPredictionInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.predict.instance.IVideoObjectTrackingPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VideoObjectTrackingPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoObjectTrackingPredictionInstance.verify|verify} messages. + * @param message VideoObjectTrackingPredictionInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.predict.instance.IVideoObjectTrackingPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VideoObjectTrackingPredictionInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VideoObjectTrackingPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoObjectTrackingPredictionInstance; + + /** + * Decodes a VideoObjectTrackingPredictionInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VideoObjectTrackingPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoObjectTrackingPredictionInstance; + + /** + * Verifies a VideoObjectTrackingPredictionInstance message. + * @param message Plain 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 VideoObjectTrackingPredictionInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VideoObjectTrackingPredictionInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoObjectTrackingPredictionInstance; + + /** + * Creates a plain object from a VideoObjectTrackingPredictionInstance message. Also converts values to other types if specified. + * @param message VideoObjectTrackingPredictionInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoObjectTrackingPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VideoObjectTrackingPredictionInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Namespace params. */ + namespace params { + + /** Properties of an ImageClassificationPredictionParams. */ + interface IImageClassificationPredictionParams { + + /** ImageClassificationPredictionParams confidenceThreshold */ + confidenceThreshold?: (number|null); + + /** ImageClassificationPredictionParams maxPredictions */ + maxPredictions?: (number|null); + } + + /** Represents an ImageClassificationPredictionParams. */ + class ImageClassificationPredictionParams implements IImageClassificationPredictionParams { + + /** + * Constructs a new ImageClassificationPredictionParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.predict.params.IImageClassificationPredictionParams); + + /** ImageClassificationPredictionParams confidenceThreshold. */ + public confidenceThreshold: number; + + /** ImageClassificationPredictionParams maxPredictions. */ + public maxPredictions: number; + + /** + * Creates a new ImageClassificationPredictionParams instance using the specified properties. + * @param [properties] Properties to set + * @returns ImageClassificationPredictionParams instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.predict.params.IImageClassificationPredictionParams): google.cloud.aiplatform.v1beta1.schema.predict.params.ImageClassificationPredictionParams; + + /** + * Encodes the specified ImageClassificationPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.params.ImageClassificationPredictionParams.verify|verify} messages. + * @param message ImageClassificationPredictionParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.predict.params.IImageClassificationPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ImageClassificationPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.params.ImageClassificationPredictionParams.verify|verify} messages. + * @param message ImageClassificationPredictionParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.predict.params.IImageClassificationPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ImageClassificationPredictionParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImageClassificationPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.predict.params.ImageClassificationPredictionParams; + + /** + * Decodes an ImageClassificationPredictionParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImageClassificationPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.predict.params.ImageClassificationPredictionParams; + + /** + * Verifies an ImageClassificationPredictionParams message. + * @param message Plain 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 ImageClassificationPredictionParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImageClassificationPredictionParams + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.predict.params.ImageClassificationPredictionParams; + + /** + * Creates a plain object from an ImageClassificationPredictionParams message. Also converts values to other types if specified. + * @param message ImageClassificationPredictionParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.predict.params.ImageClassificationPredictionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ImageClassificationPredictionParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an ImageObjectDetectionPredictionParams. */ + interface IImageObjectDetectionPredictionParams { + + /** ImageObjectDetectionPredictionParams confidenceThreshold */ + confidenceThreshold?: (number|null); + + /** ImageObjectDetectionPredictionParams maxPredictions */ + maxPredictions?: (number|null); + } + + /** Represents an ImageObjectDetectionPredictionParams. */ + class ImageObjectDetectionPredictionParams implements IImageObjectDetectionPredictionParams { + + /** + * Constructs a new ImageObjectDetectionPredictionParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.predict.params.IImageObjectDetectionPredictionParams); + + /** ImageObjectDetectionPredictionParams confidenceThreshold. */ + public confidenceThreshold: number; + + /** ImageObjectDetectionPredictionParams maxPredictions. */ + public maxPredictions: number; + + /** + * Creates a new ImageObjectDetectionPredictionParams instance using the specified properties. + * @param [properties] Properties to set + * @returns ImageObjectDetectionPredictionParams instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.predict.params.IImageObjectDetectionPredictionParams): google.cloud.aiplatform.v1beta1.schema.predict.params.ImageObjectDetectionPredictionParams; + + /** + * Encodes the specified ImageObjectDetectionPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.params.ImageObjectDetectionPredictionParams.verify|verify} messages. + * @param message ImageObjectDetectionPredictionParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.predict.params.IImageObjectDetectionPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ImageObjectDetectionPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.params.ImageObjectDetectionPredictionParams.verify|verify} messages. + * @param message ImageObjectDetectionPredictionParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.predict.params.IImageObjectDetectionPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ImageObjectDetectionPredictionParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImageObjectDetectionPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.predict.params.ImageObjectDetectionPredictionParams; + + /** + * Decodes an ImageObjectDetectionPredictionParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImageObjectDetectionPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.predict.params.ImageObjectDetectionPredictionParams; + + /** + * Verifies an ImageObjectDetectionPredictionParams message. + * @param message Plain 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 ImageObjectDetectionPredictionParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImageObjectDetectionPredictionParams + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.predict.params.ImageObjectDetectionPredictionParams; + + /** + * Creates a plain object from an ImageObjectDetectionPredictionParams message. Also converts values to other types if specified. + * @param message ImageObjectDetectionPredictionParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.predict.params.ImageObjectDetectionPredictionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ImageObjectDetectionPredictionParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an ImageSegmentationPredictionParams. */ + interface IImageSegmentationPredictionParams { + + /** ImageSegmentationPredictionParams confidenceThreshold */ + confidenceThreshold?: (number|null); + } + + /** Represents an ImageSegmentationPredictionParams. */ + class ImageSegmentationPredictionParams implements IImageSegmentationPredictionParams { + + /** + * Constructs a new ImageSegmentationPredictionParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.predict.params.IImageSegmentationPredictionParams); + + /** ImageSegmentationPredictionParams confidenceThreshold. */ + public confidenceThreshold: number; + + /** + * Creates a new ImageSegmentationPredictionParams instance using the specified properties. + * @param [properties] Properties to set + * @returns ImageSegmentationPredictionParams instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.predict.params.IImageSegmentationPredictionParams): google.cloud.aiplatform.v1beta1.schema.predict.params.ImageSegmentationPredictionParams; + + /** + * Encodes the specified ImageSegmentationPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.params.ImageSegmentationPredictionParams.verify|verify} messages. + * @param message ImageSegmentationPredictionParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.predict.params.IImageSegmentationPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ImageSegmentationPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.params.ImageSegmentationPredictionParams.verify|verify} messages. + * @param message ImageSegmentationPredictionParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.predict.params.IImageSegmentationPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ImageSegmentationPredictionParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImageSegmentationPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.predict.params.ImageSegmentationPredictionParams; + + /** + * Decodes an ImageSegmentationPredictionParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImageSegmentationPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.predict.params.ImageSegmentationPredictionParams; + + /** + * Verifies an ImageSegmentationPredictionParams message. + * @param message Plain 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 ImageSegmentationPredictionParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImageSegmentationPredictionParams + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.predict.params.ImageSegmentationPredictionParams; + + /** + * Creates a plain object from an ImageSegmentationPredictionParams message. Also converts values to other types if specified. + * @param message ImageSegmentationPredictionParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.predict.params.ImageSegmentationPredictionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ImageSegmentationPredictionParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a VideoActionRecognitionPredictionParams. */ + interface IVideoActionRecognitionPredictionParams { + + /** VideoActionRecognitionPredictionParams confidenceThreshold */ + confidenceThreshold?: (number|null); + + /** VideoActionRecognitionPredictionParams maxPredictions */ + maxPredictions?: (number|null); + } + + /** Represents a VideoActionRecognitionPredictionParams. */ + class VideoActionRecognitionPredictionParams implements IVideoActionRecognitionPredictionParams { + + /** + * Constructs a new VideoActionRecognitionPredictionParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.predict.params.IVideoActionRecognitionPredictionParams); + + /** VideoActionRecognitionPredictionParams confidenceThreshold. */ + public confidenceThreshold: number; + + /** VideoActionRecognitionPredictionParams maxPredictions. */ + public maxPredictions: number; + + /** + * Creates a new VideoActionRecognitionPredictionParams instance using the specified properties. + * @param [properties] Properties to set + * @returns VideoActionRecognitionPredictionParams instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.predict.params.IVideoActionRecognitionPredictionParams): google.cloud.aiplatform.v1beta1.schema.predict.params.VideoActionRecognitionPredictionParams; + + /** + * Encodes the specified VideoActionRecognitionPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.params.VideoActionRecognitionPredictionParams.verify|verify} messages. + * @param message VideoActionRecognitionPredictionParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.predict.params.IVideoActionRecognitionPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VideoActionRecognitionPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.params.VideoActionRecognitionPredictionParams.verify|verify} messages. + * @param message VideoActionRecognitionPredictionParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.predict.params.IVideoActionRecognitionPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VideoActionRecognitionPredictionParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VideoActionRecognitionPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.predict.params.VideoActionRecognitionPredictionParams; + + /** + * Decodes a VideoActionRecognitionPredictionParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VideoActionRecognitionPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.predict.params.VideoActionRecognitionPredictionParams; + + /** + * Verifies a VideoActionRecognitionPredictionParams message. + * @param message Plain 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 VideoActionRecognitionPredictionParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VideoActionRecognitionPredictionParams + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.predict.params.VideoActionRecognitionPredictionParams; + + /** + * Creates a plain object from a VideoActionRecognitionPredictionParams message. Also converts values to other types if specified. + * @param message VideoActionRecognitionPredictionParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.predict.params.VideoActionRecognitionPredictionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VideoActionRecognitionPredictionParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a VideoClassificationPredictionParams. */ + interface IVideoClassificationPredictionParams { + + /** VideoClassificationPredictionParams confidenceThreshold */ + confidenceThreshold?: (number|null); + + /** VideoClassificationPredictionParams maxPredictions */ + maxPredictions?: (number|null); + + /** VideoClassificationPredictionParams segmentClassification */ + segmentClassification?: (boolean|null); + + /** VideoClassificationPredictionParams shotClassification */ + shotClassification?: (boolean|null); + + /** VideoClassificationPredictionParams oneSecIntervalClassification */ + oneSecIntervalClassification?: (boolean|null); + } + + /** Represents a VideoClassificationPredictionParams. */ + class VideoClassificationPredictionParams implements IVideoClassificationPredictionParams { + + /** + * Constructs a new VideoClassificationPredictionParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.predict.params.IVideoClassificationPredictionParams); + + /** VideoClassificationPredictionParams confidenceThreshold. */ + public confidenceThreshold: number; + + /** VideoClassificationPredictionParams maxPredictions. */ + public maxPredictions: number; + + /** VideoClassificationPredictionParams segmentClassification. */ + public segmentClassification: boolean; + + /** VideoClassificationPredictionParams shotClassification. */ + public shotClassification: boolean; + + /** VideoClassificationPredictionParams oneSecIntervalClassification. */ + public oneSecIntervalClassification: boolean; + + /** + * Creates a new VideoClassificationPredictionParams instance using the specified properties. + * @param [properties] Properties to set + * @returns VideoClassificationPredictionParams instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.predict.params.IVideoClassificationPredictionParams): google.cloud.aiplatform.v1beta1.schema.predict.params.VideoClassificationPredictionParams; + + /** + * Encodes the specified VideoClassificationPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.params.VideoClassificationPredictionParams.verify|verify} messages. + * @param message VideoClassificationPredictionParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.predict.params.IVideoClassificationPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VideoClassificationPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.params.VideoClassificationPredictionParams.verify|verify} messages. + * @param message VideoClassificationPredictionParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.predict.params.IVideoClassificationPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VideoClassificationPredictionParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VideoClassificationPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.predict.params.VideoClassificationPredictionParams; + + /** + * Decodes a VideoClassificationPredictionParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VideoClassificationPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.predict.params.VideoClassificationPredictionParams; + + /** + * Verifies a VideoClassificationPredictionParams message. + * @param message Plain 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 VideoClassificationPredictionParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VideoClassificationPredictionParams + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.predict.params.VideoClassificationPredictionParams; + + /** + * Creates a plain object from a VideoClassificationPredictionParams message. Also converts values to other types if specified. + * @param message VideoClassificationPredictionParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.predict.params.VideoClassificationPredictionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VideoClassificationPredictionParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a VideoObjectTrackingPredictionParams. */ + interface IVideoObjectTrackingPredictionParams { + + /** VideoObjectTrackingPredictionParams confidenceThreshold */ + confidenceThreshold?: (number|null); + + /** VideoObjectTrackingPredictionParams maxPredictions */ + maxPredictions?: (number|null); + + /** VideoObjectTrackingPredictionParams minBoundingBoxSize */ + minBoundingBoxSize?: (number|null); + } + + /** Represents a VideoObjectTrackingPredictionParams. */ + class VideoObjectTrackingPredictionParams implements IVideoObjectTrackingPredictionParams { + + /** + * Constructs a new VideoObjectTrackingPredictionParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.predict.params.IVideoObjectTrackingPredictionParams); + + /** VideoObjectTrackingPredictionParams confidenceThreshold. */ + public confidenceThreshold: number; + + /** VideoObjectTrackingPredictionParams maxPredictions. */ + public maxPredictions: number; + + /** VideoObjectTrackingPredictionParams minBoundingBoxSize. */ + public minBoundingBoxSize: number; + + /** + * Creates a new VideoObjectTrackingPredictionParams instance using the specified properties. + * @param [properties] Properties to set + * @returns VideoObjectTrackingPredictionParams instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.predict.params.IVideoObjectTrackingPredictionParams): google.cloud.aiplatform.v1beta1.schema.predict.params.VideoObjectTrackingPredictionParams; + + /** + * Encodes the specified VideoObjectTrackingPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.params.VideoObjectTrackingPredictionParams.verify|verify} messages. + * @param message VideoObjectTrackingPredictionParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.predict.params.IVideoObjectTrackingPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VideoObjectTrackingPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.params.VideoObjectTrackingPredictionParams.verify|verify} messages. + * @param message VideoObjectTrackingPredictionParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.predict.params.IVideoObjectTrackingPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VideoObjectTrackingPredictionParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VideoObjectTrackingPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.predict.params.VideoObjectTrackingPredictionParams; + + /** + * Decodes a VideoObjectTrackingPredictionParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VideoObjectTrackingPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.predict.params.VideoObjectTrackingPredictionParams; + + /** + * Verifies a VideoObjectTrackingPredictionParams message. + * @param message Plain 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 VideoObjectTrackingPredictionParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VideoObjectTrackingPredictionParams + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.predict.params.VideoObjectTrackingPredictionParams; + + /** + * Creates a plain object from a VideoObjectTrackingPredictionParams message. Also converts values to other types if specified. + * @param message VideoObjectTrackingPredictionParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.predict.params.VideoObjectTrackingPredictionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VideoObjectTrackingPredictionParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Namespace prediction. */ + namespace prediction { + + /** Properties of a ClassificationPredictionResult. */ + interface IClassificationPredictionResult { + + /** ClassificationPredictionResult ids */ + ids?: ((number|Long|string)[]|null); + + /** ClassificationPredictionResult displayNames */ + displayNames?: (string[]|null); + + /** ClassificationPredictionResult confidences */ + confidences?: (number[]|null); + } + + /** Represents a ClassificationPredictionResult. */ + class ClassificationPredictionResult implements IClassificationPredictionResult { + + /** + * Constructs a new ClassificationPredictionResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.predict.prediction.IClassificationPredictionResult); + + /** ClassificationPredictionResult ids. */ + public ids: (number|Long|string)[]; + + /** ClassificationPredictionResult displayNames. */ + public displayNames: string[]; + + /** ClassificationPredictionResult confidences. */ + public confidences: number[]; + + /** + * Creates a new ClassificationPredictionResult instance using the specified properties. + * @param [properties] Properties to set + * @returns ClassificationPredictionResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.predict.prediction.IClassificationPredictionResult): google.cloud.aiplatform.v1beta1.schema.predict.prediction.ClassificationPredictionResult; + + /** + * Encodes the specified ClassificationPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.ClassificationPredictionResult.verify|verify} messages. + * @param message ClassificationPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.IClassificationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ClassificationPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.ClassificationPredictionResult.verify|verify} messages. + * @param message ClassificationPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.IClassificationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ClassificationPredictionResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ClassificationPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.predict.prediction.ClassificationPredictionResult; + + /** + * Decodes a ClassificationPredictionResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ClassificationPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.predict.prediction.ClassificationPredictionResult; + + /** + * Verifies a ClassificationPredictionResult message. + * @param message Plain 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 ClassificationPredictionResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ClassificationPredictionResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.predict.prediction.ClassificationPredictionResult; + + /** + * Creates a plain object from a ClassificationPredictionResult message. Also converts values to other types if specified. + * @param message ClassificationPredictionResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.ClassificationPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ClassificationPredictionResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an ImageObjectDetectionPredictionResult. */ + interface IImageObjectDetectionPredictionResult { + + /** ImageObjectDetectionPredictionResult ids */ + ids?: ((number|Long|string)[]|null); + + /** ImageObjectDetectionPredictionResult displayNames */ + displayNames?: (string[]|null); + + /** ImageObjectDetectionPredictionResult confidences */ + confidences?: (number[]|null); + + /** ImageObjectDetectionPredictionResult bboxes */ + bboxes?: (google.protobuf.IListValue[]|null); + } + + /** Represents an ImageObjectDetectionPredictionResult. */ + class ImageObjectDetectionPredictionResult implements IImageObjectDetectionPredictionResult { + + /** + * Constructs a new ImageObjectDetectionPredictionResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.predict.prediction.IImageObjectDetectionPredictionResult); + + /** ImageObjectDetectionPredictionResult ids. */ + public ids: (number|Long|string)[]; + + /** ImageObjectDetectionPredictionResult displayNames. */ + public displayNames: string[]; + + /** ImageObjectDetectionPredictionResult confidences. */ + public confidences: number[]; + + /** ImageObjectDetectionPredictionResult bboxes. */ + public bboxes: google.protobuf.IListValue[]; + + /** + * Creates a new ImageObjectDetectionPredictionResult instance using the specified properties. + * @param [properties] Properties to set + * @returns ImageObjectDetectionPredictionResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.predict.prediction.IImageObjectDetectionPredictionResult): google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult; + + /** + * Encodes the specified ImageObjectDetectionPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult.verify|verify} messages. + * @param message ImageObjectDetectionPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.IImageObjectDetectionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ImageObjectDetectionPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult.verify|verify} messages. + * @param message ImageObjectDetectionPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.IImageObjectDetectionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ImageObjectDetectionPredictionResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImageObjectDetectionPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult; + + /** + * Decodes an ImageObjectDetectionPredictionResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImageObjectDetectionPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult; + + /** + * Verifies an ImageObjectDetectionPredictionResult message. + * @param message Plain 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 ImageObjectDetectionPredictionResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImageObjectDetectionPredictionResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult; + + /** + * Creates a plain object from an ImageObjectDetectionPredictionResult message. Also converts values to other types if specified. + * @param message ImageObjectDetectionPredictionResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ImageObjectDetectionPredictionResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an ImageSegmentationPredictionResult. */ + interface IImageSegmentationPredictionResult { + + /** ImageSegmentationPredictionResult categoryMask */ + categoryMask?: (Uint8Array|string|null); + + /** ImageSegmentationPredictionResult confidenceMask */ + confidenceMask?: (Uint8Array|string|null); + } + + /** Represents an ImageSegmentationPredictionResult. */ + class ImageSegmentationPredictionResult implements IImageSegmentationPredictionResult { + + /** + * Constructs a new ImageSegmentationPredictionResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.predict.prediction.IImageSegmentationPredictionResult); + + /** ImageSegmentationPredictionResult categoryMask. */ + public categoryMask: (Uint8Array|string); + + /** ImageSegmentationPredictionResult confidenceMask. */ + public confidenceMask: (Uint8Array|string); + + /** + * Creates a new ImageSegmentationPredictionResult instance using the specified properties. + * @param [properties] Properties to set + * @returns ImageSegmentationPredictionResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.predict.prediction.IImageSegmentationPredictionResult): google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageSegmentationPredictionResult; + + /** + * Encodes the specified ImageSegmentationPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageSegmentationPredictionResult.verify|verify} messages. + * @param message ImageSegmentationPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.IImageSegmentationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ImageSegmentationPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageSegmentationPredictionResult.verify|verify} messages. + * @param message ImageSegmentationPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.IImageSegmentationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ImageSegmentationPredictionResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImageSegmentationPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageSegmentationPredictionResult; + + /** + * Decodes an ImageSegmentationPredictionResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImageSegmentationPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageSegmentationPredictionResult; + + /** + * Verifies an ImageSegmentationPredictionResult message. + * @param message Plain 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 ImageSegmentationPredictionResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImageSegmentationPredictionResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageSegmentationPredictionResult; + + /** + * Creates a plain object from an ImageSegmentationPredictionResult message. Also converts values to other types if specified. + * @param message ImageSegmentationPredictionResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageSegmentationPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ImageSegmentationPredictionResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a TabularClassificationPredictionResult. */ + interface ITabularClassificationPredictionResult { + + /** TabularClassificationPredictionResult classes */ + classes?: (string[]|null); + + /** TabularClassificationPredictionResult scores */ + scores?: (number[]|null); + } + + /** Represents a TabularClassificationPredictionResult. */ + class TabularClassificationPredictionResult implements ITabularClassificationPredictionResult { + + /** + * Constructs a new TabularClassificationPredictionResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITabularClassificationPredictionResult); + + /** TabularClassificationPredictionResult classes. */ + public classes: string[]; + + /** TabularClassificationPredictionResult scores. */ + public scores: number[]; + + /** + * Creates a new TabularClassificationPredictionResult instance using the specified properties. + * @param [properties] Properties to set + * @returns TabularClassificationPredictionResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITabularClassificationPredictionResult): google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularClassificationPredictionResult; + + /** + * Encodes the specified TabularClassificationPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularClassificationPredictionResult.verify|verify} messages. + * @param message TabularClassificationPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITabularClassificationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TabularClassificationPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularClassificationPredictionResult.verify|verify} messages. + * @param message TabularClassificationPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITabularClassificationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TabularClassificationPredictionResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TabularClassificationPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularClassificationPredictionResult; + + /** + * Decodes a TabularClassificationPredictionResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TabularClassificationPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularClassificationPredictionResult; + + /** + * Verifies a TabularClassificationPredictionResult message. + * @param message Plain 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 TabularClassificationPredictionResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TabularClassificationPredictionResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularClassificationPredictionResult; + + /** + * Creates a plain object from a TabularClassificationPredictionResult message. Also converts values to other types if specified. + * @param message TabularClassificationPredictionResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularClassificationPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TabularClassificationPredictionResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a TabularRegressionPredictionResult. */ + interface ITabularRegressionPredictionResult { + + /** TabularRegressionPredictionResult value */ + value?: (number|null); + + /** TabularRegressionPredictionResult lowerBound */ + lowerBound?: (number|null); + + /** TabularRegressionPredictionResult upperBound */ + upperBound?: (number|null); + } + + /** Represents a TabularRegressionPredictionResult. */ + class TabularRegressionPredictionResult implements ITabularRegressionPredictionResult { + + /** + * Constructs a new TabularRegressionPredictionResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITabularRegressionPredictionResult); + + /** TabularRegressionPredictionResult value. */ + public value: number; + + /** TabularRegressionPredictionResult lowerBound. */ + public lowerBound: number; + + /** TabularRegressionPredictionResult upperBound. */ + public upperBound: number; + + /** + * Creates a new TabularRegressionPredictionResult instance using the specified properties. + * @param [properties] Properties to set + * @returns TabularRegressionPredictionResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITabularRegressionPredictionResult): google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularRegressionPredictionResult; + + /** + * Encodes the specified TabularRegressionPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularRegressionPredictionResult.verify|verify} messages. + * @param message TabularRegressionPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITabularRegressionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TabularRegressionPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularRegressionPredictionResult.verify|verify} messages. + * @param message TabularRegressionPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITabularRegressionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TabularRegressionPredictionResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TabularRegressionPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularRegressionPredictionResult; + + /** + * Decodes a TabularRegressionPredictionResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TabularRegressionPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularRegressionPredictionResult; + + /** + * Verifies a TabularRegressionPredictionResult message. + * @param message Plain 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 TabularRegressionPredictionResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TabularRegressionPredictionResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularRegressionPredictionResult; + + /** + * Creates a plain object from a TabularRegressionPredictionResult message. Also converts values to other types if specified. + * @param message TabularRegressionPredictionResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularRegressionPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TabularRegressionPredictionResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a TextExtractionPredictionResult. */ + interface ITextExtractionPredictionResult { + + /** TextExtractionPredictionResult ids */ + ids?: ((number|Long|string)[]|null); + + /** TextExtractionPredictionResult displayNames */ + displayNames?: (string[]|null); + + /** TextExtractionPredictionResult textSegmentStartOffsets */ + textSegmentStartOffsets?: ((number|Long|string)[]|null); + + /** TextExtractionPredictionResult textSegmentEndOffsets */ + textSegmentEndOffsets?: ((number|Long|string)[]|null); + + /** TextExtractionPredictionResult confidences */ + confidences?: (number[]|null); + } + + /** Represents a TextExtractionPredictionResult. */ + class TextExtractionPredictionResult implements ITextExtractionPredictionResult { + + /** + * Constructs a new TextExtractionPredictionResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITextExtractionPredictionResult); + + /** TextExtractionPredictionResult ids. */ + public ids: (number|Long|string)[]; + + /** TextExtractionPredictionResult displayNames. */ + public displayNames: string[]; + + /** TextExtractionPredictionResult textSegmentStartOffsets. */ + public textSegmentStartOffsets: (number|Long|string)[]; + + /** TextExtractionPredictionResult textSegmentEndOffsets. */ + public textSegmentEndOffsets: (number|Long|string)[]; + + /** TextExtractionPredictionResult confidences. */ + public confidences: number[]; + + /** + * Creates a new TextExtractionPredictionResult instance using the specified properties. + * @param [properties] Properties to set + * @returns TextExtractionPredictionResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITextExtractionPredictionResult): google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult; + + /** + * Encodes the specified TextExtractionPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult.verify|verify} messages. + * @param message TextExtractionPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITextExtractionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TextExtractionPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult.verify|verify} messages. + * @param message TextExtractionPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITextExtractionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TextExtractionPredictionResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TextExtractionPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult; + + /** + * Decodes a TextExtractionPredictionResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TextExtractionPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult; + + /** + * Verifies a TextExtractionPredictionResult message. + * @param message Plain 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 TextExtractionPredictionResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TextExtractionPredictionResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult; + + /** + * Creates a plain object from a TextExtractionPredictionResult message. Also converts values to other types if specified. + * @param message TextExtractionPredictionResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TextExtractionPredictionResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a TextSentimentPredictionResult. */ + interface ITextSentimentPredictionResult { + + /** TextSentimentPredictionResult instance */ + instance?: (google.cloud.aiplatform.v1beta1.schema.predict.instance.ITextSentimentPredictionInstance|null); + + /** TextSentimentPredictionResult prediction */ + prediction?: (google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.IPrediction|null); + } + + /** Represents a TextSentimentPredictionResult. */ + class TextSentimentPredictionResult implements ITextSentimentPredictionResult { + + /** + * Constructs a new TextSentimentPredictionResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITextSentimentPredictionResult); + + /** TextSentimentPredictionResult instance. */ + public instance?: (google.cloud.aiplatform.v1beta1.schema.predict.instance.ITextSentimentPredictionInstance|null); + + /** TextSentimentPredictionResult prediction. */ + public prediction?: (google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.IPrediction|null); + + /** + * Creates a new TextSentimentPredictionResult instance using the specified properties. + * @param [properties] Properties to set + * @returns TextSentimentPredictionResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITextSentimentPredictionResult): google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult; + + /** + * Encodes the specified TextSentimentPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.verify|verify} messages. + * @param message TextSentimentPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITextSentimentPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TextSentimentPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.verify|verify} messages. + * @param message TextSentimentPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITextSentimentPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TextSentimentPredictionResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TextSentimentPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult; + + /** + * Decodes a TextSentimentPredictionResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TextSentimentPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult; + + /** + * Verifies a TextSentimentPredictionResult message. + * @param message Plain 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 TextSentimentPredictionResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TextSentimentPredictionResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult; + + /** + * Creates a plain object from a TextSentimentPredictionResult message. Also converts values to other types if specified. + * @param message TextSentimentPredictionResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TextSentimentPredictionResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace TextSentimentPredictionResult { + + /** Properties of a Prediction. */ + interface IPrediction { + + /** Prediction sentiment */ + sentiment?: (number|null); + } + + /** Represents a Prediction. */ + class Prediction implements IPrediction { + + /** + * Constructs a new Prediction. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.IPrediction); + + /** Prediction sentiment. */ + public sentiment: number; + + /** + * Creates a new Prediction instance using the specified properties. + * @param [properties] Properties to set + * @returns Prediction instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.IPrediction): google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.Prediction; + + /** + * Encodes the specified Prediction message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.Prediction.verify|verify} messages. + * @param message Prediction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.IPrediction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Prediction message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.Prediction.verify|verify} messages. + * @param message Prediction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.IPrediction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Prediction message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Prediction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.Prediction; + + /** + * Decodes a Prediction message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Prediction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.Prediction; + + /** + * Verifies a Prediction message. + * @param message Plain 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 Prediction message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Prediction + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.Prediction; + + /** + * Creates a plain object from a Prediction message. Also converts values to other types if specified. + * @param message Prediction + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.Prediction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Prediction to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of a TimeSeriesForecastingPredictionResult. */ + interface ITimeSeriesForecastingPredictionResult { + + /** TimeSeriesForecastingPredictionResult value */ + value?: (number|null); + + /** TimeSeriesForecastingPredictionResult lowerBound */ + lowerBound?: (number|null); + + /** TimeSeriesForecastingPredictionResult upperBound */ + upperBound?: (number|null); + } + + /** Represents a TimeSeriesForecastingPredictionResult. */ + class TimeSeriesForecastingPredictionResult implements ITimeSeriesForecastingPredictionResult { + + /** + * Constructs a new TimeSeriesForecastingPredictionResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITimeSeriesForecastingPredictionResult); + + /** TimeSeriesForecastingPredictionResult value. */ + public value: number; + + /** TimeSeriesForecastingPredictionResult lowerBound. */ + public lowerBound: number; + + /** TimeSeriesForecastingPredictionResult upperBound. */ + public upperBound: number; + + /** + * Creates a new TimeSeriesForecastingPredictionResult instance using the specified properties. + * @param [properties] Properties to set + * @returns TimeSeriesForecastingPredictionResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITimeSeriesForecastingPredictionResult): google.cloud.aiplatform.v1beta1.schema.predict.prediction.TimeSeriesForecastingPredictionResult; + + /** + * Encodes the specified TimeSeriesForecastingPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.TimeSeriesForecastingPredictionResult.verify|verify} messages. + * @param message TimeSeriesForecastingPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITimeSeriesForecastingPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TimeSeriesForecastingPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.TimeSeriesForecastingPredictionResult.verify|verify} messages. + * @param message TimeSeriesForecastingPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITimeSeriesForecastingPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TimeSeriesForecastingPredictionResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TimeSeriesForecastingPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.predict.prediction.TimeSeriesForecastingPredictionResult; + + /** + * Decodes a TimeSeriesForecastingPredictionResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TimeSeriesForecastingPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.predict.prediction.TimeSeriesForecastingPredictionResult; + + /** + * Verifies a TimeSeriesForecastingPredictionResult message. + * @param message Plain 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 TimeSeriesForecastingPredictionResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TimeSeriesForecastingPredictionResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.predict.prediction.TimeSeriesForecastingPredictionResult; + + /** + * Creates a plain object from a TimeSeriesForecastingPredictionResult message. Also converts values to other types if specified. + * @param message TimeSeriesForecastingPredictionResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.TimeSeriesForecastingPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TimeSeriesForecastingPredictionResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a VideoActionRecognitionPredictionResult. */ + interface IVideoActionRecognitionPredictionResult { + + /** VideoActionRecognitionPredictionResult id */ + id?: (string|null); + + /** VideoActionRecognitionPredictionResult displayName */ + displayName?: (string|null); + + /** VideoActionRecognitionPredictionResult timeSegmentStart */ + timeSegmentStart?: (google.protobuf.IDuration|null); + + /** VideoActionRecognitionPredictionResult timeSegmentEnd */ + timeSegmentEnd?: (google.protobuf.IDuration|null); + + /** VideoActionRecognitionPredictionResult confidence */ + confidence?: (google.protobuf.IFloatValue|null); + } + + /** Represents a VideoActionRecognitionPredictionResult. */ + class VideoActionRecognitionPredictionResult implements IVideoActionRecognitionPredictionResult { + + /** + * Constructs a new VideoActionRecognitionPredictionResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.predict.prediction.IVideoActionRecognitionPredictionResult); + + /** VideoActionRecognitionPredictionResult id. */ + public id: string; + + /** VideoActionRecognitionPredictionResult displayName. */ + public displayName: string; + + /** VideoActionRecognitionPredictionResult timeSegmentStart. */ + public timeSegmentStart?: (google.protobuf.IDuration|null); + + /** VideoActionRecognitionPredictionResult timeSegmentEnd. */ + public timeSegmentEnd?: (google.protobuf.IDuration|null); + + /** VideoActionRecognitionPredictionResult confidence. */ + public confidence?: (google.protobuf.IFloatValue|null); + + /** + * Creates a new VideoActionRecognitionPredictionResult instance using the specified properties. + * @param [properties] Properties to set + * @returns VideoActionRecognitionPredictionResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.predict.prediction.IVideoActionRecognitionPredictionResult): google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoActionRecognitionPredictionResult; + + /** + * Encodes the specified VideoActionRecognitionPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoActionRecognitionPredictionResult.verify|verify} messages. + * @param message VideoActionRecognitionPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.IVideoActionRecognitionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VideoActionRecognitionPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoActionRecognitionPredictionResult.verify|verify} messages. + * @param message VideoActionRecognitionPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.IVideoActionRecognitionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VideoActionRecognitionPredictionResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VideoActionRecognitionPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoActionRecognitionPredictionResult; + + /** + * Decodes a VideoActionRecognitionPredictionResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VideoActionRecognitionPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoActionRecognitionPredictionResult; + + /** + * Verifies a VideoActionRecognitionPredictionResult message. + * @param message Plain 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 VideoActionRecognitionPredictionResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VideoActionRecognitionPredictionResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoActionRecognitionPredictionResult; + + /** + * Creates a plain object from a VideoActionRecognitionPredictionResult message. Also converts values to other types if specified. + * @param message VideoActionRecognitionPredictionResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoActionRecognitionPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VideoActionRecognitionPredictionResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a VideoClassificationPredictionResult. */ + interface IVideoClassificationPredictionResult { + + /** VideoClassificationPredictionResult id */ + id?: (string|null); + + /** VideoClassificationPredictionResult displayName */ + displayName?: (string|null); + + /** VideoClassificationPredictionResult type */ + type?: (string|null); + + /** VideoClassificationPredictionResult timeSegmentStart */ + timeSegmentStart?: (google.protobuf.IDuration|null); + + /** VideoClassificationPredictionResult timeSegmentEnd */ + timeSegmentEnd?: (google.protobuf.IDuration|null); + + /** VideoClassificationPredictionResult confidence */ + confidence?: (google.protobuf.IFloatValue|null); + } + + /** Represents a VideoClassificationPredictionResult. */ + class VideoClassificationPredictionResult implements IVideoClassificationPredictionResult { + + /** + * Constructs a new VideoClassificationPredictionResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.predict.prediction.IVideoClassificationPredictionResult); + + /** VideoClassificationPredictionResult id. */ + public id: string; + + /** VideoClassificationPredictionResult displayName. */ + public displayName: string; + + /** VideoClassificationPredictionResult type. */ + public type: string; + + /** VideoClassificationPredictionResult timeSegmentStart. */ + public timeSegmentStart?: (google.protobuf.IDuration|null); + + /** VideoClassificationPredictionResult timeSegmentEnd. */ + public timeSegmentEnd?: (google.protobuf.IDuration|null); + + /** VideoClassificationPredictionResult confidence. */ + public confidence?: (google.protobuf.IFloatValue|null); + + /** + * Creates a new VideoClassificationPredictionResult instance using the specified properties. + * @param [properties] Properties to set + * @returns VideoClassificationPredictionResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.predict.prediction.IVideoClassificationPredictionResult): google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoClassificationPredictionResult; + + /** + * Encodes the specified VideoClassificationPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoClassificationPredictionResult.verify|verify} messages. + * @param message VideoClassificationPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.IVideoClassificationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VideoClassificationPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoClassificationPredictionResult.verify|verify} messages. + * @param message VideoClassificationPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.IVideoClassificationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VideoClassificationPredictionResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VideoClassificationPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoClassificationPredictionResult; + + /** + * Decodes a VideoClassificationPredictionResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VideoClassificationPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoClassificationPredictionResult; + + /** + * Verifies a VideoClassificationPredictionResult message. + * @param message Plain 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 VideoClassificationPredictionResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VideoClassificationPredictionResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoClassificationPredictionResult; + + /** + * Creates a plain object from a VideoClassificationPredictionResult message. Also converts values to other types if specified. + * @param message VideoClassificationPredictionResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoClassificationPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VideoClassificationPredictionResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a VideoObjectTrackingPredictionResult. */ + interface IVideoObjectTrackingPredictionResult { + + /** VideoObjectTrackingPredictionResult id */ + id?: (string|null); + + /** VideoObjectTrackingPredictionResult displayName */ + displayName?: (string|null); + + /** VideoObjectTrackingPredictionResult timeSegmentStart */ + timeSegmentStart?: (google.protobuf.IDuration|null); + + /** VideoObjectTrackingPredictionResult timeSegmentEnd */ + timeSegmentEnd?: (google.protobuf.IDuration|null); + + /** VideoObjectTrackingPredictionResult confidence */ + confidence?: (google.protobuf.IFloatValue|null); + + /** VideoObjectTrackingPredictionResult frames */ + frames?: (google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.IFrame[]|null); + } + + /** Represents a VideoObjectTrackingPredictionResult. */ + class VideoObjectTrackingPredictionResult implements IVideoObjectTrackingPredictionResult { + + /** + * Constructs a new VideoObjectTrackingPredictionResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.predict.prediction.IVideoObjectTrackingPredictionResult); + + /** VideoObjectTrackingPredictionResult id. */ + public id: string; + + /** VideoObjectTrackingPredictionResult displayName. */ + public displayName: string; + + /** VideoObjectTrackingPredictionResult timeSegmentStart. */ + public timeSegmentStart?: (google.protobuf.IDuration|null); + + /** VideoObjectTrackingPredictionResult timeSegmentEnd. */ + public timeSegmentEnd?: (google.protobuf.IDuration|null); + + /** VideoObjectTrackingPredictionResult confidence. */ + public confidence?: (google.protobuf.IFloatValue|null); + + /** VideoObjectTrackingPredictionResult frames. */ + public frames: google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.IFrame[]; + + /** + * Creates a new VideoObjectTrackingPredictionResult instance using the specified properties. + * @param [properties] Properties to set + * @returns VideoObjectTrackingPredictionResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.predict.prediction.IVideoObjectTrackingPredictionResult): google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult; + + /** + * Encodes the specified VideoObjectTrackingPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.verify|verify} messages. + * @param message VideoObjectTrackingPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.IVideoObjectTrackingPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VideoObjectTrackingPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.verify|verify} messages. + * @param message VideoObjectTrackingPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.IVideoObjectTrackingPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VideoObjectTrackingPredictionResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VideoObjectTrackingPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult; + + /** + * Decodes a VideoObjectTrackingPredictionResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VideoObjectTrackingPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult; + + /** + * Verifies a VideoObjectTrackingPredictionResult message. + * @param message Plain 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 VideoObjectTrackingPredictionResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VideoObjectTrackingPredictionResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult; + + /** + * Creates a plain object from a VideoObjectTrackingPredictionResult message. Also converts values to other types if specified. + * @param message VideoObjectTrackingPredictionResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VideoObjectTrackingPredictionResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace VideoObjectTrackingPredictionResult { + + /** Properties of a Frame. */ + interface IFrame { + + /** Frame timeOffset */ + timeOffset?: (google.protobuf.IDuration|null); + + /** Frame xMin */ + xMin?: (google.protobuf.IFloatValue|null); + + /** Frame xMax */ + xMax?: (google.protobuf.IFloatValue|null); + + /** Frame yMin */ + yMin?: (google.protobuf.IFloatValue|null); + + /** Frame yMax */ + yMax?: (google.protobuf.IFloatValue|null); + } + + /** Represents a Frame. */ + class Frame implements IFrame { + + /** + * Constructs a new Frame. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.IFrame); + + /** Frame timeOffset. */ + public timeOffset?: (google.protobuf.IDuration|null); + + /** Frame xMin. */ + public xMin?: (google.protobuf.IFloatValue|null); + + /** Frame xMax. */ + public xMax?: (google.protobuf.IFloatValue|null); + + /** Frame yMin. */ + public yMin?: (google.protobuf.IFloatValue|null); + + /** Frame yMax. */ + public yMax?: (google.protobuf.IFloatValue|null); + + /** + * Creates a new Frame instance using the specified properties. + * @param [properties] Properties to set + * @returns Frame instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.IFrame): google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame; + + /** + * Encodes the specified Frame message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame.verify|verify} messages. + * @param message Frame message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.IFrame, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Frame message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame.verify|verify} messages. + * @param message Frame message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.IFrame, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Frame message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Frame + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame; + + /** + * Decodes a Frame message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Frame + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame; + + /** + * Verifies a Frame message. + * @param message Plain 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 Frame message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Frame + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame; + + /** + * Creates a plain object from a Frame message. Also converts values to other types if specified. + * @param message Frame + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Frame to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + } + + /** Properties of a TextSentimentSavedQueryMetadata. */ + interface ITextSentimentSavedQueryMetadata { + + /** TextSentimentSavedQueryMetadata sentimentMax */ + sentimentMax?: (number|null); + } + + /** Represents a TextSentimentSavedQueryMetadata. */ + class TextSentimentSavedQueryMetadata implements ITextSentimentSavedQueryMetadata { + + /** + * Constructs a new TextSentimentSavedQueryMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.ITextSentimentSavedQueryMetadata); + + /** TextSentimentSavedQueryMetadata sentimentMax. */ + public sentimentMax: number; + + /** + * Creates a new TextSentimentSavedQueryMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns TextSentimentSavedQueryMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.ITextSentimentSavedQueryMetadata): google.cloud.aiplatform.v1beta1.schema.TextSentimentSavedQueryMetadata; + + /** + * Encodes the specified TextSentimentSavedQueryMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextSentimentSavedQueryMetadata.verify|verify} messages. + * @param message TextSentimentSavedQueryMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.ITextSentimentSavedQueryMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TextSentimentSavedQueryMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextSentimentSavedQueryMetadata.verify|verify} messages. + * @param message TextSentimentSavedQueryMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.ITextSentimentSavedQueryMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TextSentimentSavedQueryMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TextSentimentSavedQueryMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.TextSentimentSavedQueryMetadata; + + /** + * Decodes a TextSentimentSavedQueryMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TextSentimentSavedQueryMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.TextSentimentSavedQueryMetadata; + + /** + * Verifies a TextSentimentSavedQueryMetadata message. + * @param message Plain 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 TextSentimentSavedQueryMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TextSentimentSavedQueryMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.TextSentimentSavedQueryMetadata; + + /** + * Creates a plain object from a TextSentimentSavedQueryMetadata message. Also converts values to other types if specified. + * @param message TextSentimentSavedQueryMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.TextSentimentSavedQueryMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TextSentimentSavedQueryMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a VisualInspectionClassificationLabelSavedQueryMetadata. */ + interface IVisualInspectionClassificationLabelSavedQueryMetadata { + + /** VisualInspectionClassificationLabelSavedQueryMetadata multiLabel */ + multiLabel?: (boolean|null); + } + + /** Represents a VisualInspectionClassificationLabelSavedQueryMetadata. */ + class VisualInspectionClassificationLabelSavedQueryMetadata implements IVisualInspectionClassificationLabelSavedQueryMetadata { + + /** + * Constructs a new VisualInspectionClassificationLabelSavedQueryMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.IVisualInspectionClassificationLabelSavedQueryMetadata); + + /** VisualInspectionClassificationLabelSavedQueryMetadata multiLabel. */ + public multiLabel: boolean; + + /** + * Creates a new VisualInspectionClassificationLabelSavedQueryMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns VisualInspectionClassificationLabelSavedQueryMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.IVisualInspectionClassificationLabelSavedQueryMetadata): google.cloud.aiplatform.v1beta1.schema.VisualInspectionClassificationLabelSavedQueryMetadata; + + /** + * Encodes the specified VisualInspectionClassificationLabelSavedQueryMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VisualInspectionClassificationLabelSavedQueryMetadata.verify|verify} messages. + * @param message VisualInspectionClassificationLabelSavedQueryMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.IVisualInspectionClassificationLabelSavedQueryMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VisualInspectionClassificationLabelSavedQueryMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VisualInspectionClassificationLabelSavedQueryMetadata.verify|verify} messages. + * @param message VisualInspectionClassificationLabelSavedQueryMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.IVisualInspectionClassificationLabelSavedQueryMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VisualInspectionClassificationLabelSavedQueryMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VisualInspectionClassificationLabelSavedQueryMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.VisualInspectionClassificationLabelSavedQueryMetadata; + + /** + * Decodes a VisualInspectionClassificationLabelSavedQueryMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VisualInspectionClassificationLabelSavedQueryMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.VisualInspectionClassificationLabelSavedQueryMetadata; + + /** + * Verifies a VisualInspectionClassificationLabelSavedQueryMetadata message. + * @param message Plain 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 VisualInspectionClassificationLabelSavedQueryMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VisualInspectionClassificationLabelSavedQueryMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.VisualInspectionClassificationLabelSavedQueryMetadata; + + /** + * Creates a plain object from a VisualInspectionClassificationLabelSavedQueryMetadata message. Also converts values to other types if specified. + * @param message VisualInspectionClassificationLabelSavedQueryMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.VisualInspectionClassificationLabelSavedQueryMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VisualInspectionClassificationLabelSavedQueryMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a VisualInspectionMaskSavedQueryMetadata. */ + interface IVisualInspectionMaskSavedQueryMetadata { + + /** VisualInspectionMaskSavedQueryMetadata colorMap */ + colorMap?: (google.cloud.aiplatform.v1beta1.schema.IAnnotationSpecColor[]|null); + } + + /** Represents a VisualInspectionMaskSavedQueryMetadata. */ + class VisualInspectionMaskSavedQueryMetadata implements IVisualInspectionMaskSavedQueryMetadata { + + /** + * Constructs a new VisualInspectionMaskSavedQueryMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.IVisualInspectionMaskSavedQueryMetadata); + + /** VisualInspectionMaskSavedQueryMetadata colorMap. */ + public colorMap: google.cloud.aiplatform.v1beta1.schema.IAnnotationSpecColor[]; + + /** + * Creates a new VisualInspectionMaskSavedQueryMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns VisualInspectionMaskSavedQueryMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.IVisualInspectionMaskSavedQueryMetadata): google.cloud.aiplatform.v1beta1.schema.VisualInspectionMaskSavedQueryMetadata; + + /** + * Encodes the specified VisualInspectionMaskSavedQueryMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VisualInspectionMaskSavedQueryMetadata.verify|verify} messages. + * @param message VisualInspectionMaskSavedQueryMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.IVisualInspectionMaskSavedQueryMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VisualInspectionMaskSavedQueryMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VisualInspectionMaskSavedQueryMetadata.verify|verify} messages. + * @param message VisualInspectionMaskSavedQueryMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.IVisualInspectionMaskSavedQueryMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VisualInspectionMaskSavedQueryMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VisualInspectionMaskSavedQueryMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.VisualInspectionMaskSavedQueryMetadata; + + /** + * Decodes a VisualInspectionMaskSavedQueryMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VisualInspectionMaskSavedQueryMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.VisualInspectionMaskSavedQueryMetadata; + + /** + * Verifies a VisualInspectionMaskSavedQueryMetadata message. + * @param message Plain 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 VisualInspectionMaskSavedQueryMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VisualInspectionMaskSavedQueryMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.VisualInspectionMaskSavedQueryMetadata; + + /** + * Creates a plain object from a VisualInspectionMaskSavedQueryMetadata message. Also converts values to other types if specified. + * @param message VisualInspectionMaskSavedQueryMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.VisualInspectionMaskSavedQueryMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VisualInspectionMaskSavedQueryMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Namespace trainingjob. */ + namespace trainingjob { + + /** Namespace definition. */ + namespace definition { + + /** Properties of an AutoMlForecasting. */ + interface IAutoMlForecasting { + + /** AutoMlForecasting inputs */ + inputs?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlForecastingInputs|null); + + /** AutoMlForecasting metadata */ + metadata?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlForecastingMetadata|null); + } + + /** Represents an AutoMlForecasting. */ + class AutoMlForecasting implements IAutoMlForecasting { + + /** + * Constructs a new AutoMlForecasting. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlForecasting); + + /** AutoMlForecasting inputs. */ + public inputs?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlForecastingInputs|null); + + /** AutoMlForecasting metadata. */ + public metadata?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlForecastingMetadata|null); + + /** + * Creates a new AutoMlForecasting instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlForecasting instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlForecasting): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting; + + /** + * Encodes the specified AutoMlForecasting message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting.verify|verify} messages. + * @param message AutoMlForecasting message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlForecasting, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlForecasting message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting.verify|verify} messages. + * @param message AutoMlForecasting message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlForecasting, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlForecasting message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlForecasting + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting; + + /** + * Decodes an AutoMlForecasting message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlForecasting + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting; + + /** + * Verifies an AutoMlForecasting message. + * @param message Plain 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 AutoMlForecasting message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlForecasting + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting; + + /** + * Creates a plain object from an AutoMlForecasting message. Also converts values to other types if specified. + * @param message AutoMlForecasting + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlForecasting to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AutoMlForecastingInputs. */ + interface IAutoMlForecastingInputs { + + /** AutoMlForecastingInputs targetColumn */ + targetColumn?: (string|null); + + /** AutoMlForecastingInputs timeSeriesIdentifierColumn */ + timeSeriesIdentifierColumn?: (string|null); + + /** AutoMlForecastingInputs timeColumn */ + timeColumn?: (string|null); + + /** AutoMlForecastingInputs transformations */ + transformations?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.ITransformation[]|null); + + /** AutoMlForecastingInputs optimizationObjective */ + optimizationObjective?: (string|null); + + /** AutoMlForecastingInputs trainBudgetMilliNodeHours */ + trainBudgetMilliNodeHours?: (number|Long|string|null); + + /** AutoMlForecastingInputs weightColumn */ + weightColumn?: (string|null); + + /** AutoMlForecastingInputs staticColumns */ + staticColumns?: (string[]|null); + + /** AutoMlForecastingInputs timeVariantPastOnlyColumns */ + timeVariantPastOnlyColumns?: (string[]|null); + + /** AutoMlForecastingInputs timeVariantPastAndFutureColumns */ + timeVariantPastAndFutureColumns?: (string[]|null); + + /** AutoMlForecastingInputs period */ + period?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.IPeriod|null); + + /** AutoMlForecastingInputs forecastWindowStart */ + forecastWindowStart?: (number|Long|string|null); + + /** AutoMlForecastingInputs forecastWindowEnd */ + forecastWindowEnd?: (number|Long|string|null); + + /** AutoMlForecastingInputs pastHorizon */ + pastHorizon?: (number|Long|string|null); + + /** AutoMlForecastingInputs exportEvaluatedDataItemsConfig */ + exportEvaluatedDataItemsConfig?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig|null); + } + + /** Represents an AutoMlForecastingInputs. */ + class AutoMlForecastingInputs implements IAutoMlForecastingInputs { + + /** + * Constructs a new AutoMlForecastingInputs. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlForecastingInputs); + + /** AutoMlForecastingInputs targetColumn. */ + public targetColumn: string; + + /** AutoMlForecastingInputs timeSeriesIdentifierColumn. */ + public timeSeriesIdentifierColumn: string; + + /** AutoMlForecastingInputs timeColumn. */ + public timeColumn: string; + + /** AutoMlForecastingInputs transformations. */ + public transformations: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.ITransformation[]; + + /** AutoMlForecastingInputs optimizationObjective. */ + public optimizationObjective: string; + + /** AutoMlForecastingInputs trainBudgetMilliNodeHours. */ + public trainBudgetMilliNodeHours: (number|Long|string); + + /** AutoMlForecastingInputs weightColumn. */ + public weightColumn: string; + + /** AutoMlForecastingInputs staticColumns. */ + public staticColumns: string[]; + + /** AutoMlForecastingInputs timeVariantPastOnlyColumns. */ + public timeVariantPastOnlyColumns: string[]; + + /** AutoMlForecastingInputs timeVariantPastAndFutureColumns. */ + public timeVariantPastAndFutureColumns: string[]; + + /** AutoMlForecastingInputs period. */ + public period?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.IPeriod|null); + + /** AutoMlForecastingInputs forecastWindowStart. */ + public forecastWindowStart: (number|Long|string); + + /** AutoMlForecastingInputs forecastWindowEnd. */ + public forecastWindowEnd: (number|Long|string); + + /** AutoMlForecastingInputs pastHorizon. */ + public pastHorizon: (number|Long|string); + + /** AutoMlForecastingInputs exportEvaluatedDataItemsConfig. */ + public exportEvaluatedDataItemsConfig?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig|null); + + /** + * Creates a new AutoMlForecastingInputs instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlForecastingInputs instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlForecastingInputs): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs; + + /** + * Encodes the specified AutoMlForecastingInputs message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.verify|verify} messages. + * @param message AutoMlForecastingInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlForecastingInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlForecastingInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.verify|verify} messages. + * @param message AutoMlForecastingInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlForecastingInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlForecastingInputs message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlForecastingInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs; + + /** + * Decodes an AutoMlForecastingInputs message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlForecastingInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs; + + /** + * Verifies an AutoMlForecastingInputs message. + * @param message Plain 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 AutoMlForecastingInputs message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlForecastingInputs + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs; + + /** + * Creates a plain object from an AutoMlForecastingInputs message. Also converts values to other types if specified. + * @param message AutoMlForecastingInputs + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlForecastingInputs to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace AutoMlForecastingInputs { + + /** Properties of a Transformation. */ + interface ITransformation { + + /** Transformation auto */ + auto?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.IAutoTransformation|null); + + /** Transformation numeric */ + numeric?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.INumericTransformation|null); + + /** Transformation categorical */ + categorical?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ICategoricalTransformation|null); + + /** Transformation timestamp */ + timestamp?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ITimestampTransformation|null); + + /** Transformation text */ + text?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ITextTransformation|null); + + /** Transformation repeatedNumeric */ + repeatedNumeric?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.INumericArrayTransformation|null); + + /** Transformation repeatedCategorical */ + repeatedCategorical?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ICategoricalArrayTransformation|null); + + /** Transformation repeatedText */ + repeatedText?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ITextArrayTransformation|null); + } + + /** Represents a Transformation. */ + class Transformation implements ITransformation { + + /** + * Constructs a new Transformation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.ITransformation); + + /** Transformation auto. */ + public auto?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.IAutoTransformation|null); + + /** Transformation numeric. */ + public numeric?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.INumericTransformation|null); + + /** Transformation categorical. */ + public categorical?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ICategoricalTransformation|null); + + /** Transformation timestamp. */ + public timestamp?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ITimestampTransformation|null); + + /** Transformation text. */ + public text?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ITextTransformation|null); + + /** Transformation repeatedNumeric. */ + public repeatedNumeric?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.INumericArrayTransformation|null); + + /** Transformation repeatedCategorical. */ + public repeatedCategorical?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ICategoricalArrayTransformation|null); + + /** Transformation repeatedText. */ + public repeatedText?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ITextArrayTransformation|null); + + /** Transformation transformationDetail. */ + public transformationDetail?: ("auto"|"numeric"|"categorical"|"timestamp"|"text"|"repeatedNumeric"|"repeatedCategorical"|"repeatedText"); + + /** + * Creates a new Transformation instance using the specified properties. + * @param [properties] Properties to set + * @returns Transformation instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.ITransformation): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation; + + /** + * Encodes the specified Transformation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.verify|verify} messages. + * @param message Transformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.ITransformation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Transformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.verify|verify} messages. + * @param message Transformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.ITransformation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Transformation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Transformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation; + + /** + * Decodes a Transformation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Transformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation; + + /** + * Verifies a Transformation message. + * @param message Plain 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 Transformation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Transformation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation; + + /** + * Creates a plain object from a Transformation message. Also converts values to other types if specified. + * @param message Transformation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Transformation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace Transformation { + + /** Properties of an AutoTransformation. */ + interface IAutoTransformation { + + /** AutoTransformation columnName */ + columnName?: (string|null); + } + + /** Represents an AutoTransformation. */ + class AutoTransformation implements IAutoTransformation { + + /** + * Constructs a new AutoTransformation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.IAutoTransformation); + + /** AutoTransformation columnName. */ + public columnName: string; + + /** + * Creates a new AutoTransformation instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoTransformation instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.IAutoTransformation): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation; + + /** + * Encodes the specified AutoTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation.verify|verify} messages. + * @param message AutoTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.IAutoTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation.verify|verify} messages. + * @param message AutoTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.IAutoTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoTransformation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation; + + /** + * Decodes an AutoTransformation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation; + + /** + * Verifies an AutoTransformation message. + * @param message Plain 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 AutoTransformation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoTransformation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation; + + /** + * Creates a plain object from an AutoTransformation message. Also converts values to other types if specified. + * @param message AutoTransformation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoTransformation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a NumericTransformation. */ + interface INumericTransformation { + + /** NumericTransformation columnName */ + columnName?: (string|null); + + /** NumericTransformation invalidValuesAllowed */ + invalidValuesAllowed?: (boolean|null); + } + + /** Represents a NumericTransformation. */ + class NumericTransformation implements INumericTransformation { + + /** + * Constructs a new NumericTransformation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.INumericTransformation); + + /** NumericTransformation columnName. */ + public columnName: string; + + /** NumericTransformation invalidValuesAllowed. */ + public invalidValuesAllowed: boolean; + + /** + * Creates a new NumericTransformation instance using the specified properties. + * @param [properties] Properties to set + * @returns NumericTransformation instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.INumericTransformation): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation; + + /** + * Encodes the specified NumericTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation.verify|verify} messages. + * @param message NumericTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.INumericTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NumericTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation.verify|verify} messages. + * @param message NumericTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.INumericTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NumericTransformation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NumericTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation; + + /** + * Decodes a NumericTransformation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NumericTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation; + + /** + * Verifies a NumericTransformation message. + * @param message Plain 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 NumericTransformation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NumericTransformation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation; + + /** + * Creates a plain object from a NumericTransformation message. Also converts values to other types if specified. + * @param message NumericTransformation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NumericTransformation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CategoricalTransformation. */ + interface ICategoricalTransformation { + + /** CategoricalTransformation columnName */ + columnName?: (string|null); + } + + /** Represents a CategoricalTransformation. */ + class CategoricalTransformation implements ICategoricalTransformation { + + /** + * Constructs a new CategoricalTransformation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ICategoricalTransformation); + + /** CategoricalTransformation columnName. */ + public columnName: string; + + /** + * Creates a new CategoricalTransformation instance using the specified properties. + * @param [properties] Properties to set + * @returns CategoricalTransformation instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ICategoricalTransformation): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation; + + /** + * Encodes the specified CategoricalTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation.verify|verify} messages. + * @param message CategoricalTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ICategoricalTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CategoricalTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation.verify|verify} messages. + * @param message CategoricalTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ICategoricalTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CategoricalTransformation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CategoricalTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation; + + /** + * Decodes a CategoricalTransformation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CategoricalTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation; + + /** + * Verifies a CategoricalTransformation message. + * @param message Plain 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 CategoricalTransformation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CategoricalTransformation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation; + + /** + * Creates a plain object from a CategoricalTransformation message. Also converts values to other types if specified. + * @param message CategoricalTransformation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CategoricalTransformation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a TimestampTransformation. */ + interface ITimestampTransformation { + + /** TimestampTransformation columnName */ + columnName?: (string|null); + + /** TimestampTransformation timeFormat */ + timeFormat?: (string|null); + + /** TimestampTransformation invalidValuesAllowed */ + invalidValuesAllowed?: (boolean|null); + } + + /** Represents a TimestampTransformation. */ + class TimestampTransformation implements ITimestampTransformation { + + /** + * Constructs a new TimestampTransformation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ITimestampTransformation); + + /** TimestampTransformation columnName. */ + public columnName: string; + + /** TimestampTransformation timeFormat. */ + public timeFormat: string; + + /** TimestampTransformation invalidValuesAllowed. */ + public invalidValuesAllowed: boolean; + + /** + * Creates a new TimestampTransformation instance using the specified properties. + * @param [properties] Properties to set + * @returns TimestampTransformation instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ITimestampTransformation): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation; + + /** + * Encodes the specified TimestampTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation.verify|verify} messages. + * @param message TimestampTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ITimestampTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TimestampTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation.verify|verify} messages. + * @param message TimestampTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ITimestampTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TimestampTransformation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TimestampTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation; + + /** + * Decodes a TimestampTransformation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TimestampTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation; + + /** + * Verifies a TimestampTransformation message. + * @param message Plain 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 TimestampTransformation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TimestampTransformation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation; + + /** + * Creates a plain object from a TimestampTransformation message. Also converts values to other types if specified. + * @param message TimestampTransformation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TimestampTransformation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a TextTransformation. */ + interface ITextTransformation { + + /** TextTransformation columnName */ + columnName?: (string|null); + } + + /** Represents a TextTransformation. */ + class TextTransformation implements ITextTransformation { + + /** + * Constructs a new TextTransformation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ITextTransformation); + + /** TextTransformation columnName. */ + public columnName: string; + + /** + * Creates a new TextTransformation instance using the specified properties. + * @param [properties] Properties to set + * @returns TextTransformation instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ITextTransformation): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation; + + /** + * Encodes the specified TextTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation.verify|verify} messages. + * @param message TextTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ITextTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TextTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation.verify|verify} messages. + * @param message TextTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ITextTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TextTransformation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TextTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation; + + /** + * Decodes a TextTransformation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TextTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation; + + /** + * Verifies a TextTransformation message. + * @param message Plain 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 TextTransformation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TextTransformation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation; + + /** + * Creates a plain object from a TextTransformation message. Also converts values to other types if specified. + * @param message TextTransformation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TextTransformation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a NumericArrayTransformation. */ + interface INumericArrayTransformation { + + /** NumericArrayTransformation columnName */ + columnName?: (string|null); + + /** NumericArrayTransformation invalidValuesAllowed */ + invalidValuesAllowed?: (boolean|null); + } + + /** Represents a NumericArrayTransformation. */ + class NumericArrayTransformation implements INumericArrayTransformation { + + /** + * Constructs a new NumericArrayTransformation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.INumericArrayTransformation); + + /** NumericArrayTransformation columnName. */ + public columnName: string; + + /** NumericArrayTransformation invalidValuesAllowed. */ + public invalidValuesAllowed: boolean; + + /** + * Creates a new NumericArrayTransformation instance using the specified properties. + * @param [properties] Properties to set + * @returns NumericArrayTransformation instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.INumericArrayTransformation): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation; + + /** + * Encodes the specified NumericArrayTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation.verify|verify} messages. + * @param message NumericArrayTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.INumericArrayTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NumericArrayTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation.verify|verify} messages. + * @param message NumericArrayTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.INumericArrayTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NumericArrayTransformation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NumericArrayTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation; + + /** + * Decodes a NumericArrayTransformation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NumericArrayTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation; + + /** + * Verifies a NumericArrayTransformation message. + * @param message Plain 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 NumericArrayTransformation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NumericArrayTransformation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation; + + /** + * Creates a plain object from a NumericArrayTransformation message. Also converts values to other types if specified. + * @param message NumericArrayTransformation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NumericArrayTransformation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CategoricalArrayTransformation. */ + interface ICategoricalArrayTransformation { + + /** CategoricalArrayTransformation columnName */ + columnName?: (string|null); + } + + /** Represents a CategoricalArrayTransformation. */ + class CategoricalArrayTransformation implements ICategoricalArrayTransformation { + + /** + * Constructs a new CategoricalArrayTransformation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ICategoricalArrayTransformation); + + /** CategoricalArrayTransformation columnName. */ + public columnName: string; + + /** + * Creates a new CategoricalArrayTransformation instance using the specified properties. + * @param [properties] Properties to set + * @returns CategoricalArrayTransformation instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ICategoricalArrayTransformation): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation; + + /** + * Encodes the specified CategoricalArrayTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation.verify|verify} messages. + * @param message CategoricalArrayTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ICategoricalArrayTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CategoricalArrayTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation.verify|verify} messages. + * @param message CategoricalArrayTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ICategoricalArrayTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CategoricalArrayTransformation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CategoricalArrayTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation; + + /** + * Decodes a CategoricalArrayTransformation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CategoricalArrayTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation; + + /** + * Verifies a CategoricalArrayTransformation message. + * @param message Plain 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 CategoricalArrayTransformation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CategoricalArrayTransformation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation; + + /** + * Creates a plain object from a CategoricalArrayTransformation message. Also converts values to other types if specified. + * @param message CategoricalArrayTransformation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CategoricalArrayTransformation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a TextArrayTransformation. */ + interface ITextArrayTransformation { + + /** TextArrayTransformation columnName */ + columnName?: (string|null); + } + + /** Represents a TextArrayTransformation. */ + class TextArrayTransformation implements ITextArrayTransformation { + + /** + * Constructs a new TextArrayTransformation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ITextArrayTransformation); + + /** TextArrayTransformation columnName. */ + public columnName: string; + + /** + * Creates a new TextArrayTransformation instance using the specified properties. + * @param [properties] Properties to set + * @returns TextArrayTransformation instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ITextArrayTransformation): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation; + + /** + * Encodes the specified TextArrayTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation.verify|verify} messages. + * @param message TextArrayTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ITextArrayTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TextArrayTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation.verify|verify} messages. + * @param message TextArrayTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ITextArrayTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TextArrayTransformation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TextArrayTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation; + + /** + * Decodes a TextArrayTransformation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TextArrayTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation; + + /** + * Verifies a TextArrayTransformation message. + * @param message Plain 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 TextArrayTransformation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TextArrayTransformation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation; + + /** + * Creates a plain object from a TextArrayTransformation message. Also converts values to other types if specified. + * @param message TextArrayTransformation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TextArrayTransformation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of a Period. */ + interface IPeriod { + + /** Period unit */ + unit?: (string|null); + + /** Period quantity */ + quantity?: (number|Long|string|null); + } + + /** Represents a Period. */ + class Period implements IPeriod { + + /** + * Constructs a new Period. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.IPeriod); + + /** Period unit. */ + public unit: string; + + /** Period quantity. */ + public quantity: (number|Long|string); + + /** + * Creates a new Period instance using the specified properties. + * @param [properties] Properties to set + * @returns Period instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.IPeriod): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period; + + /** + * Encodes the specified Period message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period.verify|verify} messages. + * @param message Period message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.IPeriod, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Period message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period.verify|verify} messages. + * @param message Period message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.IPeriod, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Period message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Period + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period; + + /** + * Decodes a Period message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Period + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period; + + /** + * Verifies a Period message. + * @param message Plain 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 Period message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Period + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period; + + /** + * Creates a plain object from a Period message. Also converts values to other types if specified. + * @param message Period + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Period to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of an AutoMlForecastingMetadata. */ + interface IAutoMlForecastingMetadata { + + /** AutoMlForecastingMetadata trainCostMilliNodeHours */ + trainCostMilliNodeHours?: (number|Long|string|null); + } + + /** Represents an AutoMlForecastingMetadata. */ + class AutoMlForecastingMetadata implements IAutoMlForecastingMetadata { + + /** + * Constructs a new AutoMlForecastingMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlForecastingMetadata); + + /** AutoMlForecastingMetadata trainCostMilliNodeHours. */ + public trainCostMilliNodeHours: (number|Long|string); + + /** + * Creates a new AutoMlForecastingMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlForecastingMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlForecastingMetadata): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata; + + /** + * Encodes the specified AutoMlForecastingMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata.verify|verify} messages. + * @param message AutoMlForecastingMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlForecastingMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlForecastingMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata.verify|verify} messages. + * @param message AutoMlForecastingMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlForecastingMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlForecastingMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlForecastingMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata; + + /** + * Decodes an AutoMlForecastingMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlForecastingMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata; + + /** + * Verifies an AutoMlForecastingMetadata message. + * @param message Plain 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 AutoMlForecastingMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlForecastingMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata; + + /** + * Creates a plain object from an AutoMlForecastingMetadata message. Also converts values to other types if specified. + * @param message AutoMlForecastingMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlForecastingMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an ExportEvaluatedDataItemsConfig. */ + interface IExportEvaluatedDataItemsConfig { + + /** ExportEvaluatedDataItemsConfig destinationBigqueryUri */ + destinationBigqueryUri?: (string|null); + + /** ExportEvaluatedDataItemsConfig overrideExistingTable */ + overrideExistingTable?: (boolean|null); + } + + /** Represents an ExportEvaluatedDataItemsConfig. */ + class ExportEvaluatedDataItemsConfig implements IExportEvaluatedDataItemsConfig { + + /** + * Constructs a new ExportEvaluatedDataItemsConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig); + + /** ExportEvaluatedDataItemsConfig destinationBigqueryUri. */ + public destinationBigqueryUri: string; + + /** ExportEvaluatedDataItemsConfig overrideExistingTable. */ + public overrideExistingTable: boolean; + + /** + * Creates a new ExportEvaluatedDataItemsConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ExportEvaluatedDataItemsConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig; + + /** + * Encodes the specified ExportEvaluatedDataItemsConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig.verify|verify} messages. + * @param message ExportEvaluatedDataItemsConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExportEvaluatedDataItemsConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig.verify|verify} messages. + * @param message ExportEvaluatedDataItemsConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExportEvaluatedDataItemsConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExportEvaluatedDataItemsConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig; + + /** + * Decodes an ExportEvaluatedDataItemsConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExportEvaluatedDataItemsConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig; + + /** + * Verifies an ExportEvaluatedDataItemsConfig message. + * @param message Plain 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 ExportEvaluatedDataItemsConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExportEvaluatedDataItemsConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig; + + /** + * Creates a plain object from an ExportEvaluatedDataItemsConfig message. Also converts values to other types if specified. + * @param message ExportEvaluatedDataItemsConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExportEvaluatedDataItemsConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AutoMlImageClassification. */ + interface IAutoMlImageClassification { + + /** AutoMlImageClassification inputs */ + inputs?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageClassificationInputs|null); + + /** AutoMlImageClassification metadata */ + metadata?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageClassificationMetadata|null); + } + + /** Represents an AutoMlImageClassification. */ + class AutoMlImageClassification implements IAutoMlImageClassification { + + /** + * Constructs a new AutoMlImageClassification. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageClassification); + + /** AutoMlImageClassification inputs. */ + public inputs?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageClassificationInputs|null); + + /** AutoMlImageClassification metadata. */ + public metadata?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageClassificationMetadata|null); + + /** + * Creates a new AutoMlImageClassification instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlImageClassification instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageClassification): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassification; + + /** + * Encodes the specified AutoMlImageClassification message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassification.verify|verify} messages. + * @param message AutoMlImageClassification message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageClassification, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlImageClassification message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassification.verify|verify} messages. + * @param message AutoMlImageClassification message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageClassification, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlImageClassification message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlImageClassification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassification; + + /** + * Decodes an AutoMlImageClassification message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlImageClassification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassification; + + /** + * Verifies an AutoMlImageClassification message. + * @param message Plain 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 AutoMlImageClassification message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlImageClassification + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassification; + + /** + * Creates a plain object from an AutoMlImageClassification message. Also converts values to other types if specified. + * @param message AutoMlImageClassification + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassification, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlImageClassification to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AutoMlImageClassificationInputs. */ + interface IAutoMlImageClassificationInputs { + + /** AutoMlImageClassificationInputs modelType */ + modelType?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs.ModelType|keyof typeof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs.ModelType|null); + + /** AutoMlImageClassificationInputs baseModelId */ + baseModelId?: (string|null); + + /** AutoMlImageClassificationInputs budgetMilliNodeHours */ + budgetMilliNodeHours?: (number|Long|string|null); + + /** AutoMlImageClassificationInputs disableEarlyStopping */ + disableEarlyStopping?: (boolean|null); + + /** AutoMlImageClassificationInputs multiLabel */ + multiLabel?: (boolean|null); + } + + /** Represents an AutoMlImageClassificationInputs. */ + class AutoMlImageClassificationInputs implements IAutoMlImageClassificationInputs { + + /** + * Constructs a new AutoMlImageClassificationInputs. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageClassificationInputs); + + /** AutoMlImageClassificationInputs modelType. */ + public modelType: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs.ModelType|keyof typeof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs.ModelType); + + /** AutoMlImageClassificationInputs baseModelId. */ + public baseModelId: string; + + /** AutoMlImageClassificationInputs budgetMilliNodeHours. */ + public budgetMilliNodeHours: (number|Long|string); + + /** AutoMlImageClassificationInputs disableEarlyStopping. */ + public disableEarlyStopping: boolean; + + /** AutoMlImageClassificationInputs multiLabel. */ + public multiLabel: boolean; + + /** + * Creates a new AutoMlImageClassificationInputs instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlImageClassificationInputs instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageClassificationInputs): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs; + + /** + * Encodes the specified AutoMlImageClassificationInputs message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs.verify|verify} messages. + * @param message AutoMlImageClassificationInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageClassificationInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlImageClassificationInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs.verify|verify} messages. + * @param message AutoMlImageClassificationInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageClassificationInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlImageClassificationInputs message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlImageClassificationInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs; + + /** + * Decodes an AutoMlImageClassificationInputs message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlImageClassificationInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs; + + /** + * Verifies an AutoMlImageClassificationInputs message. + * @param message Plain 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 AutoMlImageClassificationInputs message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlImageClassificationInputs + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs; + + /** + * Creates a plain object from an AutoMlImageClassificationInputs message. Also converts values to other types if specified. + * @param message AutoMlImageClassificationInputs + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlImageClassificationInputs to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace AutoMlImageClassificationInputs { + + /** ModelType enum. */ + enum ModelType { + MODEL_TYPE_UNSPECIFIED = 0, + CLOUD = 1, + MOBILE_TF_LOW_LATENCY_1 = 2, + MOBILE_TF_VERSATILE_1 = 3, + MOBILE_TF_HIGH_ACCURACY_1 = 4 + } + } + + /** Properties of an AutoMlImageClassificationMetadata. */ + interface IAutoMlImageClassificationMetadata { + + /** AutoMlImageClassificationMetadata costMilliNodeHours */ + costMilliNodeHours?: (number|Long|string|null); + + /** AutoMlImageClassificationMetadata successfulStopReason */ + successfulStopReason?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.SuccessfulStopReason|keyof typeof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.SuccessfulStopReason|null); + } + + /** Represents an AutoMlImageClassificationMetadata. */ + class AutoMlImageClassificationMetadata implements IAutoMlImageClassificationMetadata { + + /** + * Constructs a new AutoMlImageClassificationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageClassificationMetadata); + + /** AutoMlImageClassificationMetadata costMilliNodeHours. */ + public costMilliNodeHours: (number|Long|string); + + /** AutoMlImageClassificationMetadata successfulStopReason. */ + public successfulStopReason: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.SuccessfulStopReason|keyof typeof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.SuccessfulStopReason); + + /** + * Creates a new AutoMlImageClassificationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlImageClassificationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageClassificationMetadata): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata; + + /** + * Encodes the specified AutoMlImageClassificationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.verify|verify} messages. + * @param message AutoMlImageClassificationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageClassificationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlImageClassificationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.verify|verify} messages. + * @param message AutoMlImageClassificationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageClassificationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlImageClassificationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlImageClassificationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata; + + /** + * Decodes an AutoMlImageClassificationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlImageClassificationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata; + + /** + * Verifies an AutoMlImageClassificationMetadata message. + * @param message Plain 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 AutoMlImageClassificationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlImageClassificationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata; + + /** + * Creates a plain object from an AutoMlImageClassificationMetadata message. Also converts values to other types if specified. + * @param message AutoMlImageClassificationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlImageClassificationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace AutoMlImageClassificationMetadata { + + /** SuccessfulStopReason enum. */ + enum SuccessfulStopReason { + SUCCESSFUL_STOP_REASON_UNSPECIFIED = 0, + BUDGET_REACHED = 1, + MODEL_CONVERGED = 2 + } + } + + /** Properties of an AutoMlImageObjectDetection. */ + interface IAutoMlImageObjectDetection { + + /** AutoMlImageObjectDetection inputs */ + inputs?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageObjectDetectionInputs|null); + + /** AutoMlImageObjectDetection metadata */ + metadata?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageObjectDetectionMetadata|null); + } + + /** Represents an AutoMlImageObjectDetection. */ + class AutoMlImageObjectDetection implements IAutoMlImageObjectDetection { + + /** + * Constructs a new AutoMlImageObjectDetection. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageObjectDetection); + + /** AutoMlImageObjectDetection inputs. */ + public inputs?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageObjectDetectionInputs|null); + + /** AutoMlImageObjectDetection metadata. */ + public metadata?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageObjectDetectionMetadata|null); + + /** + * Creates a new AutoMlImageObjectDetection instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlImageObjectDetection instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageObjectDetection): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetection; + + /** + * Encodes the specified AutoMlImageObjectDetection message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetection.verify|verify} messages. + * @param message AutoMlImageObjectDetection message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageObjectDetection, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlImageObjectDetection message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetection.verify|verify} messages. + * @param message AutoMlImageObjectDetection message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageObjectDetection, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlImageObjectDetection message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlImageObjectDetection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetection; + + /** + * Decodes an AutoMlImageObjectDetection message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlImageObjectDetection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetection; + + /** + * Verifies an AutoMlImageObjectDetection message. + * @param message Plain 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 AutoMlImageObjectDetection message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlImageObjectDetection + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetection; + + /** + * Creates a plain object from an AutoMlImageObjectDetection message. Also converts values to other types if specified. + * @param message AutoMlImageObjectDetection + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetection, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlImageObjectDetection to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AutoMlImageObjectDetectionInputs. */ + interface IAutoMlImageObjectDetectionInputs { + + /** AutoMlImageObjectDetectionInputs modelType */ + modelType?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.ModelType|keyof typeof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.ModelType|null); + + /** AutoMlImageObjectDetectionInputs budgetMilliNodeHours */ + budgetMilliNodeHours?: (number|Long|string|null); + + /** AutoMlImageObjectDetectionInputs disableEarlyStopping */ + disableEarlyStopping?: (boolean|null); + } + + /** Represents an AutoMlImageObjectDetectionInputs. */ + class AutoMlImageObjectDetectionInputs implements IAutoMlImageObjectDetectionInputs { + + /** + * Constructs a new AutoMlImageObjectDetectionInputs. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageObjectDetectionInputs); + + /** AutoMlImageObjectDetectionInputs modelType. */ + public modelType: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.ModelType|keyof typeof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.ModelType); + + /** AutoMlImageObjectDetectionInputs budgetMilliNodeHours. */ + public budgetMilliNodeHours: (number|Long|string); + + /** AutoMlImageObjectDetectionInputs disableEarlyStopping. */ + public disableEarlyStopping: boolean; + + /** + * Creates a new AutoMlImageObjectDetectionInputs instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlImageObjectDetectionInputs instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageObjectDetectionInputs): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs; + + /** + * Encodes the specified AutoMlImageObjectDetectionInputs message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.verify|verify} messages. + * @param message AutoMlImageObjectDetectionInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageObjectDetectionInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlImageObjectDetectionInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.verify|verify} messages. + * @param message AutoMlImageObjectDetectionInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageObjectDetectionInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlImageObjectDetectionInputs message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlImageObjectDetectionInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs; + + /** + * Decodes an AutoMlImageObjectDetectionInputs message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlImageObjectDetectionInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs; + + /** + * Verifies an AutoMlImageObjectDetectionInputs message. + * @param message Plain 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 AutoMlImageObjectDetectionInputs message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlImageObjectDetectionInputs + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs; + + /** + * Creates a plain object from an AutoMlImageObjectDetectionInputs message. Also converts values to other types if specified. + * @param message AutoMlImageObjectDetectionInputs + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlImageObjectDetectionInputs to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace AutoMlImageObjectDetectionInputs { + + /** ModelType enum. */ + enum ModelType { + MODEL_TYPE_UNSPECIFIED = 0, + CLOUD_HIGH_ACCURACY_1 = 1, + CLOUD_LOW_LATENCY_1 = 2, + MOBILE_TF_LOW_LATENCY_1 = 3, + MOBILE_TF_VERSATILE_1 = 4, + MOBILE_TF_HIGH_ACCURACY_1 = 5 + } + } + + /** Properties of an AutoMlImageObjectDetectionMetadata. */ + interface IAutoMlImageObjectDetectionMetadata { + + /** AutoMlImageObjectDetectionMetadata costMilliNodeHours */ + costMilliNodeHours?: (number|Long|string|null); + + /** AutoMlImageObjectDetectionMetadata successfulStopReason */ + successfulStopReason?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.SuccessfulStopReason|keyof typeof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.SuccessfulStopReason|null); + } + + /** Represents an AutoMlImageObjectDetectionMetadata. */ + class AutoMlImageObjectDetectionMetadata implements IAutoMlImageObjectDetectionMetadata { + + /** + * Constructs a new AutoMlImageObjectDetectionMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageObjectDetectionMetadata); + + /** AutoMlImageObjectDetectionMetadata costMilliNodeHours. */ + public costMilliNodeHours: (number|Long|string); + + /** AutoMlImageObjectDetectionMetadata successfulStopReason. */ + public successfulStopReason: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.SuccessfulStopReason|keyof typeof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.SuccessfulStopReason); + + /** + * Creates a new AutoMlImageObjectDetectionMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlImageObjectDetectionMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageObjectDetectionMetadata): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata; + + /** + * Encodes the specified AutoMlImageObjectDetectionMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.verify|verify} messages. + * @param message AutoMlImageObjectDetectionMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageObjectDetectionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlImageObjectDetectionMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.verify|verify} messages. + * @param message AutoMlImageObjectDetectionMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageObjectDetectionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlImageObjectDetectionMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlImageObjectDetectionMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata; + + /** + * Decodes an AutoMlImageObjectDetectionMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlImageObjectDetectionMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata; + + /** + * Verifies an AutoMlImageObjectDetectionMetadata message. + * @param message Plain 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 AutoMlImageObjectDetectionMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlImageObjectDetectionMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata; + + /** + * Creates a plain object from an AutoMlImageObjectDetectionMetadata message. Also converts values to other types if specified. + * @param message AutoMlImageObjectDetectionMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlImageObjectDetectionMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace AutoMlImageObjectDetectionMetadata { + + /** SuccessfulStopReason enum. */ + enum SuccessfulStopReason { + SUCCESSFUL_STOP_REASON_UNSPECIFIED = 0, + BUDGET_REACHED = 1, + MODEL_CONVERGED = 2 + } + } + + /** Properties of an AutoMlImageSegmentation. */ + interface IAutoMlImageSegmentation { + + /** AutoMlImageSegmentation inputs */ + inputs?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageSegmentationInputs|null); + + /** AutoMlImageSegmentation metadata */ + metadata?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageSegmentationMetadata|null); + } + + /** Represents an AutoMlImageSegmentation. */ + class AutoMlImageSegmentation implements IAutoMlImageSegmentation { + + /** + * Constructs a new AutoMlImageSegmentation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageSegmentation); + + /** AutoMlImageSegmentation inputs. */ + public inputs?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageSegmentationInputs|null); + + /** AutoMlImageSegmentation metadata. */ + public metadata?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageSegmentationMetadata|null); + + /** + * Creates a new AutoMlImageSegmentation instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlImageSegmentation instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageSegmentation): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentation; + + /** + * Encodes the specified AutoMlImageSegmentation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentation.verify|verify} messages. + * @param message AutoMlImageSegmentation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageSegmentation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlImageSegmentation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentation.verify|verify} messages. + * @param message AutoMlImageSegmentation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageSegmentation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlImageSegmentation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlImageSegmentation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentation; + + /** + * Decodes an AutoMlImageSegmentation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlImageSegmentation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentation; + + /** + * Verifies an AutoMlImageSegmentation message. + * @param message Plain 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 AutoMlImageSegmentation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlImageSegmentation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentation; + + /** + * Creates a plain object from an AutoMlImageSegmentation message. Also converts values to other types if specified. + * @param message AutoMlImageSegmentation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlImageSegmentation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AutoMlImageSegmentationInputs. */ + interface IAutoMlImageSegmentationInputs { + + /** AutoMlImageSegmentationInputs modelType */ + modelType?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.ModelType|keyof typeof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.ModelType|null); + + /** AutoMlImageSegmentationInputs budgetMilliNodeHours */ + budgetMilliNodeHours?: (number|Long|string|null); + + /** AutoMlImageSegmentationInputs baseModelId */ + baseModelId?: (string|null); + } + + /** Represents an AutoMlImageSegmentationInputs. */ + class AutoMlImageSegmentationInputs implements IAutoMlImageSegmentationInputs { + + /** + * Constructs a new AutoMlImageSegmentationInputs. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageSegmentationInputs); + + /** AutoMlImageSegmentationInputs modelType. */ + public modelType: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.ModelType|keyof typeof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.ModelType); + + /** AutoMlImageSegmentationInputs budgetMilliNodeHours. */ + public budgetMilliNodeHours: (number|Long|string); + + /** AutoMlImageSegmentationInputs baseModelId. */ + public baseModelId: string; + + /** + * Creates a new AutoMlImageSegmentationInputs instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlImageSegmentationInputs instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageSegmentationInputs): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs; + + /** + * Encodes the specified AutoMlImageSegmentationInputs message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.verify|verify} messages. + * @param message AutoMlImageSegmentationInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageSegmentationInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlImageSegmentationInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.verify|verify} messages. + * @param message AutoMlImageSegmentationInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageSegmentationInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlImageSegmentationInputs message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlImageSegmentationInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs; + + /** + * Decodes an AutoMlImageSegmentationInputs message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlImageSegmentationInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs; + + /** + * Verifies an AutoMlImageSegmentationInputs message. + * @param message Plain 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 AutoMlImageSegmentationInputs message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlImageSegmentationInputs + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs; + + /** + * Creates a plain object from an AutoMlImageSegmentationInputs message. Also converts values to other types if specified. + * @param message AutoMlImageSegmentationInputs + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlImageSegmentationInputs to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace AutoMlImageSegmentationInputs { + + /** ModelType enum. */ + enum ModelType { + MODEL_TYPE_UNSPECIFIED = 0, + CLOUD_HIGH_ACCURACY_1 = 1, + CLOUD_LOW_ACCURACY_1 = 2 + } + } + + /** Properties of an AutoMlImageSegmentationMetadata. */ + interface IAutoMlImageSegmentationMetadata { + + /** AutoMlImageSegmentationMetadata costMilliNodeHours */ + costMilliNodeHours?: (number|Long|string|null); + + /** AutoMlImageSegmentationMetadata successfulStopReason */ + successfulStopReason?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.SuccessfulStopReason|keyof typeof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.SuccessfulStopReason|null); + } + + /** Represents an AutoMlImageSegmentationMetadata. */ + class AutoMlImageSegmentationMetadata implements IAutoMlImageSegmentationMetadata { + + /** + * Constructs a new AutoMlImageSegmentationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageSegmentationMetadata); + + /** AutoMlImageSegmentationMetadata costMilliNodeHours. */ + public costMilliNodeHours: (number|Long|string); + + /** AutoMlImageSegmentationMetadata successfulStopReason. */ + public successfulStopReason: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.SuccessfulStopReason|keyof typeof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.SuccessfulStopReason); + + /** + * Creates a new AutoMlImageSegmentationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlImageSegmentationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageSegmentationMetadata): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata; + + /** + * Encodes the specified AutoMlImageSegmentationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.verify|verify} messages. + * @param message AutoMlImageSegmentationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageSegmentationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlImageSegmentationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.verify|verify} messages. + * @param message AutoMlImageSegmentationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageSegmentationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlImageSegmentationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlImageSegmentationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata; + + /** + * Decodes an AutoMlImageSegmentationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlImageSegmentationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata; + + /** + * Verifies an AutoMlImageSegmentationMetadata message. + * @param message Plain 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 AutoMlImageSegmentationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlImageSegmentationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata; + + /** + * Creates a plain object from an AutoMlImageSegmentationMetadata message. Also converts values to other types if specified. + * @param message AutoMlImageSegmentationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlImageSegmentationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace AutoMlImageSegmentationMetadata { + + /** SuccessfulStopReason enum. */ + enum SuccessfulStopReason { + SUCCESSFUL_STOP_REASON_UNSPECIFIED = 0, + BUDGET_REACHED = 1, + MODEL_CONVERGED = 2 + } + } + + /** Properties of an AutoMlTables. */ + interface IAutoMlTables { + + /** AutoMlTables inputs */ + inputs?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTablesInputs|null); + + /** AutoMlTables metadata */ + metadata?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTablesMetadata|null); + } + + /** Represents an AutoMlTables. */ + class AutoMlTables implements IAutoMlTables { + + /** + * Constructs a new AutoMlTables. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTables); + + /** AutoMlTables inputs. */ + public inputs?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTablesInputs|null); + + /** AutoMlTables metadata. */ + public metadata?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTablesMetadata|null); + + /** + * Creates a new AutoMlTables instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlTables instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTables): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTables; + + /** + * Encodes the specified AutoMlTables message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTables.verify|verify} messages. + * @param message AutoMlTables message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTables, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlTables message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTables.verify|verify} messages. + * @param message AutoMlTables message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTables, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlTables message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlTables + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTables; + + /** + * Decodes an AutoMlTables message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlTables + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTables; + + /** + * Verifies an AutoMlTables message. + * @param message Plain 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 AutoMlTables message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlTables + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTables; + + /** + * Creates a plain object from an AutoMlTables message. Also converts values to other types if specified. + * @param message AutoMlTables + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTables, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlTables to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AutoMlTablesInputs. */ + interface IAutoMlTablesInputs { + + /** AutoMlTablesInputs optimizationObjectiveRecallValue */ + optimizationObjectiveRecallValue?: (number|null); + + /** AutoMlTablesInputs optimizationObjectivePrecisionValue */ + optimizationObjectivePrecisionValue?: (number|null); + + /** AutoMlTablesInputs predictionType */ + predictionType?: (string|null); + + /** AutoMlTablesInputs targetColumn */ + targetColumn?: (string|null); + + /** AutoMlTablesInputs transformations */ + transformations?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.ITransformation[]|null); + + /** AutoMlTablesInputs optimizationObjective */ + optimizationObjective?: (string|null); + + /** AutoMlTablesInputs trainBudgetMilliNodeHours */ + trainBudgetMilliNodeHours?: (number|Long|string|null); + + /** AutoMlTablesInputs disableEarlyStopping */ + disableEarlyStopping?: (boolean|null); + + /** AutoMlTablesInputs weightColumnName */ + weightColumnName?: (string|null); + + /** AutoMlTablesInputs exportEvaluatedDataItemsConfig */ + exportEvaluatedDataItemsConfig?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig|null); + } + + /** Represents an AutoMlTablesInputs. */ + class AutoMlTablesInputs implements IAutoMlTablesInputs { + + /** + * Constructs a new AutoMlTablesInputs. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTablesInputs); + + /** AutoMlTablesInputs optimizationObjectiveRecallValue. */ + public optimizationObjectiveRecallValue: number; + + /** AutoMlTablesInputs optimizationObjectivePrecisionValue. */ + public optimizationObjectivePrecisionValue: number; + + /** AutoMlTablesInputs predictionType. */ + public predictionType: string; + + /** AutoMlTablesInputs targetColumn. */ + public targetColumn: string; + + /** AutoMlTablesInputs transformations. */ + public transformations: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.ITransformation[]; + + /** AutoMlTablesInputs optimizationObjective. */ + public optimizationObjective: string; + + /** AutoMlTablesInputs trainBudgetMilliNodeHours. */ + public trainBudgetMilliNodeHours: (number|Long|string); + + /** AutoMlTablesInputs disableEarlyStopping. */ + public disableEarlyStopping: boolean; + + /** AutoMlTablesInputs weightColumnName. */ + public weightColumnName: string; + + /** AutoMlTablesInputs exportEvaluatedDataItemsConfig. */ + public exportEvaluatedDataItemsConfig?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig|null); + + /** AutoMlTablesInputs additionalOptimizationObjectiveConfig. */ + public additionalOptimizationObjectiveConfig?: ("optimizationObjectiveRecallValue"|"optimizationObjectivePrecisionValue"); + + /** + * Creates a new AutoMlTablesInputs instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlTablesInputs instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTablesInputs): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs; + + /** + * Encodes the specified AutoMlTablesInputs message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.verify|verify} messages. + * @param message AutoMlTablesInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTablesInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlTablesInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.verify|verify} messages. + * @param message AutoMlTablesInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTablesInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlTablesInputs message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlTablesInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs; + + /** + * Decodes an AutoMlTablesInputs message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlTablesInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs; + + /** + * Verifies an AutoMlTablesInputs message. + * @param message Plain 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 AutoMlTablesInputs message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlTablesInputs + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs; + + /** + * Creates a plain object from an AutoMlTablesInputs message. Also converts values to other types if specified. + * @param message AutoMlTablesInputs + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlTablesInputs to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace AutoMlTablesInputs { + + /** Properties of a Transformation. */ + interface ITransformation { + + /** Transformation auto */ + auto?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.IAutoTransformation|null); + + /** Transformation numeric */ + numeric?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericTransformation|null); + + /** Transformation categorical */ + categorical?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalTransformation|null); + + /** Transformation timestamp */ + timestamp?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITimestampTransformation|null); + + /** Transformation text */ + text?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextTransformation|null); + + /** Transformation repeatedNumeric */ + repeatedNumeric?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericArrayTransformation|null); + + /** Transformation repeatedCategorical */ + repeatedCategorical?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalArrayTransformation|null); + + /** Transformation repeatedText */ + repeatedText?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextArrayTransformation|null); + } + + /** Represents a Transformation. */ + class Transformation implements ITransformation { + + /** + * Constructs a new Transformation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.ITransformation); + + /** Transformation auto. */ + public auto?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.IAutoTransformation|null); + + /** Transformation numeric. */ + public numeric?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericTransformation|null); + + /** Transformation categorical. */ + public categorical?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalTransformation|null); + + /** Transformation timestamp. */ + public timestamp?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITimestampTransformation|null); + + /** Transformation text. */ + public text?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextTransformation|null); + + /** Transformation repeatedNumeric. */ + public repeatedNumeric?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericArrayTransformation|null); + + /** Transformation repeatedCategorical. */ + public repeatedCategorical?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalArrayTransformation|null); + + /** Transformation repeatedText. */ + public repeatedText?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextArrayTransformation|null); + + /** Transformation transformationDetail. */ + public transformationDetail?: ("auto"|"numeric"|"categorical"|"timestamp"|"text"|"repeatedNumeric"|"repeatedCategorical"|"repeatedText"); + + /** + * Creates a new Transformation instance using the specified properties. + * @param [properties] Properties to set + * @returns Transformation instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.ITransformation): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation; + + /** + * Encodes the specified Transformation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.verify|verify} messages. + * @param message Transformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.ITransformation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Transformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.verify|verify} messages. + * @param message Transformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.ITransformation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Transformation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Transformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation; + + /** + * Decodes a Transformation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Transformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation; + + /** + * Verifies a Transformation message. + * @param message Plain 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 Transformation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Transformation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation; + + /** + * Creates a plain object from a Transformation message. Also converts values to other types if specified. + * @param message Transformation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Transformation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace Transformation { + + /** Properties of an AutoTransformation. */ + interface IAutoTransformation { + + /** AutoTransformation columnName */ + columnName?: (string|null); + } + + /** Represents an AutoTransformation. */ + class AutoTransformation implements IAutoTransformation { + + /** + * Constructs a new AutoTransformation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.IAutoTransformation); + + /** AutoTransformation columnName. */ + public columnName: string; + + /** + * Creates a new AutoTransformation instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoTransformation instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.IAutoTransformation): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation; + + /** + * Encodes the specified AutoTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation.verify|verify} messages. + * @param message AutoTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.IAutoTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation.verify|verify} messages. + * @param message AutoTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.IAutoTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoTransformation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation; + + /** + * Decodes an AutoTransformation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation; + + /** + * Verifies an AutoTransformation message. + * @param message Plain 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 AutoTransformation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoTransformation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation; + + /** + * Creates a plain object from an AutoTransformation message. Also converts values to other types if specified. + * @param message AutoTransformation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoTransformation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a NumericTransformation. */ + interface INumericTransformation { + + /** NumericTransformation columnName */ + columnName?: (string|null); + + /** NumericTransformation invalidValuesAllowed */ + invalidValuesAllowed?: (boolean|null); + } + + /** Represents a NumericTransformation. */ + class NumericTransformation implements INumericTransformation { + + /** + * Constructs a new NumericTransformation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericTransformation); + + /** NumericTransformation columnName. */ + public columnName: string; + + /** NumericTransformation invalidValuesAllowed. */ + public invalidValuesAllowed: boolean; + + /** + * Creates a new NumericTransformation instance using the specified properties. + * @param [properties] Properties to set + * @returns NumericTransformation instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericTransformation): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation; + + /** + * Encodes the specified NumericTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation.verify|verify} messages. + * @param message NumericTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NumericTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation.verify|verify} messages. + * @param message NumericTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NumericTransformation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NumericTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation; + + /** + * Decodes a NumericTransformation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NumericTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation; + + /** + * Verifies a NumericTransformation message. + * @param message Plain 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 NumericTransformation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NumericTransformation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation; + + /** + * Creates a plain object from a NumericTransformation message. Also converts values to other types if specified. + * @param message NumericTransformation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NumericTransformation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CategoricalTransformation. */ + interface ICategoricalTransformation { + + /** CategoricalTransformation columnName */ + columnName?: (string|null); + } + + /** Represents a CategoricalTransformation. */ + class CategoricalTransformation implements ICategoricalTransformation { + + /** + * Constructs a new CategoricalTransformation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalTransformation); + + /** CategoricalTransformation columnName. */ + public columnName: string; + + /** + * Creates a new CategoricalTransformation instance using the specified properties. + * @param [properties] Properties to set + * @returns CategoricalTransformation instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalTransformation): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation; + + /** + * Encodes the specified CategoricalTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation.verify|verify} messages. + * @param message CategoricalTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CategoricalTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation.verify|verify} messages. + * @param message CategoricalTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CategoricalTransformation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CategoricalTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation; + + /** + * Decodes a CategoricalTransformation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CategoricalTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation; + + /** + * Verifies a CategoricalTransformation message. + * @param message Plain 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 CategoricalTransformation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CategoricalTransformation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation; + + /** + * Creates a plain object from a CategoricalTransformation message. Also converts values to other types if specified. + * @param message CategoricalTransformation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CategoricalTransformation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a TimestampTransformation. */ + interface ITimestampTransformation { + + /** TimestampTransformation columnName */ + columnName?: (string|null); + + /** TimestampTransformation timeFormat */ + timeFormat?: (string|null); + + /** TimestampTransformation invalidValuesAllowed */ + invalidValuesAllowed?: (boolean|null); + } + + /** Represents a TimestampTransformation. */ + class TimestampTransformation implements ITimestampTransformation { + + /** + * Constructs a new TimestampTransformation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITimestampTransformation); + + /** TimestampTransformation columnName. */ + public columnName: string; + + /** TimestampTransformation timeFormat. */ + public timeFormat: string; + + /** TimestampTransformation invalidValuesAllowed. */ + public invalidValuesAllowed: boolean; + + /** + * Creates a new TimestampTransformation instance using the specified properties. + * @param [properties] Properties to set + * @returns TimestampTransformation instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITimestampTransformation): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation; + + /** + * Encodes the specified TimestampTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation.verify|verify} messages. + * @param message TimestampTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITimestampTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TimestampTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation.verify|verify} messages. + * @param message TimestampTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITimestampTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TimestampTransformation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TimestampTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation; + + /** + * Decodes a TimestampTransformation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TimestampTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation; + + /** + * Verifies a TimestampTransformation message. + * @param message Plain 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 TimestampTransformation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TimestampTransformation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation; + + /** + * Creates a plain object from a TimestampTransformation message. Also converts values to other types if specified. + * @param message TimestampTransformation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TimestampTransformation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a TextTransformation. */ + interface ITextTransformation { + + /** TextTransformation columnName */ + columnName?: (string|null); + } + + /** Represents a TextTransformation. */ + class TextTransformation implements ITextTransformation { + + /** + * Constructs a new TextTransformation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextTransformation); + + /** TextTransformation columnName. */ + public columnName: string; + + /** + * Creates a new TextTransformation instance using the specified properties. + * @param [properties] Properties to set + * @returns TextTransformation instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextTransformation): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation; + + /** + * Encodes the specified TextTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation.verify|verify} messages. + * @param message TextTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TextTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation.verify|verify} messages. + * @param message TextTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TextTransformation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TextTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation; + + /** + * Decodes a TextTransformation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TextTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation; + + /** + * Verifies a TextTransformation message. + * @param message Plain 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 TextTransformation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TextTransformation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation; + + /** + * Creates a plain object from a TextTransformation message. Also converts values to other types if specified. + * @param message TextTransformation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TextTransformation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a NumericArrayTransformation. */ + interface INumericArrayTransformation { + + /** NumericArrayTransformation columnName */ + columnName?: (string|null); + + /** NumericArrayTransformation invalidValuesAllowed */ + invalidValuesAllowed?: (boolean|null); + } + + /** Represents a NumericArrayTransformation. */ + class NumericArrayTransformation implements INumericArrayTransformation { + + /** + * Constructs a new NumericArrayTransformation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericArrayTransformation); + + /** NumericArrayTransformation columnName. */ + public columnName: string; + + /** NumericArrayTransformation invalidValuesAllowed. */ + public invalidValuesAllowed: boolean; + + /** + * Creates a new NumericArrayTransformation instance using the specified properties. + * @param [properties] Properties to set + * @returns NumericArrayTransformation instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericArrayTransformation): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation; + + /** + * Encodes the specified NumericArrayTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation.verify|verify} messages. + * @param message NumericArrayTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericArrayTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NumericArrayTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation.verify|verify} messages. + * @param message NumericArrayTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericArrayTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NumericArrayTransformation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NumericArrayTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation; + + /** + * Decodes a NumericArrayTransformation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NumericArrayTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation; + + /** + * Verifies a NumericArrayTransformation message. + * @param message Plain 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 NumericArrayTransformation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NumericArrayTransformation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation; + + /** + * Creates a plain object from a NumericArrayTransformation message. Also converts values to other types if specified. + * @param message NumericArrayTransformation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NumericArrayTransformation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CategoricalArrayTransformation. */ + interface ICategoricalArrayTransformation { + + /** CategoricalArrayTransformation columnName */ + columnName?: (string|null); + } + + /** Represents a CategoricalArrayTransformation. */ + class CategoricalArrayTransformation implements ICategoricalArrayTransformation { + + /** + * Constructs a new CategoricalArrayTransformation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalArrayTransformation); + + /** CategoricalArrayTransformation columnName. */ + public columnName: string; + + /** + * Creates a new CategoricalArrayTransformation instance using the specified properties. + * @param [properties] Properties to set + * @returns CategoricalArrayTransformation instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalArrayTransformation): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation; + + /** + * Encodes the specified CategoricalArrayTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation.verify|verify} messages. + * @param message CategoricalArrayTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalArrayTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CategoricalArrayTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation.verify|verify} messages. + * @param message CategoricalArrayTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalArrayTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CategoricalArrayTransformation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CategoricalArrayTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation; + + /** + * Decodes a CategoricalArrayTransformation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CategoricalArrayTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation; + + /** + * Verifies a CategoricalArrayTransformation message. + * @param message Plain 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 CategoricalArrayTransformation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CategoricalArrayTransformation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation; + + /** + * Creates a plain object from a CategoricalArrayTransformation message. Also converts values to other types if specified. + * @param message CategoricalArrayTransformation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CategoricalArrayTransformation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a TextArrayTransformation. */ + interface ITextArrayTransformation { + + /** TextArrayTransformation columnName */ + columnName?: (string|null); + } + + /** Represents a TextArrayTransformation. */ + class TextArrayTransformation implements ITextArrayTransformation { + + /** + * Constructs a new TextArrayTransformation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextArrayTransformation); + + /** TextArrayTransformation columnName. */ + public columnName: string; + + /** + * Creates a new TextArrayTransformation instance using the specified properties. + * @param [properties] Properties to set + * @returns TextArrayTransformation instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextArrayTransformation): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation; + + /** + * Encodes the specified TextArrayTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation.verify|verify} messages. + * @param message TextArrayTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextArrayTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TextArrayTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation.verify|verify} messages. + * @param message TextArrayTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextArrayTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TextArrayTransformation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TextArrayTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation; + + /** + * Decodes a TextArrayTransformation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TextArrayTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation; + + /** + * Verifies a TextArrayTransformation message. + * @param message Plain 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 TextArrayTransformation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TextArrayTransformation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation; + + /** + * Creates a plain object from a TextArrayTransformation message. Also converts values to other types if specified. + * @param message TextArrayTransformation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TextArrayTransformation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + + /** Properties of an AutoMlTablesMetadata. */ + interface IAutoMlTablesMetadata { + + /** AutoMlTablesMetadata trainCostMilliNodeHours */ + trainCostMilliNodeHours?: (number|Long|string|null); + } + + /** Represents an AutoMlTablesMetadata. */ + class AutoMlTablesMetadata implements IAutoMlTablesMetadata { + + /** + * Constructs a new AutoMlTablesMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTablesMetadata); + + /** AutoMlTablesMetadata trainCostMilliNodeHours. */ + public trainCostMilliNodeHours: (number|Long|string); + + /** + * Creates a new AutoMlTablesMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlTablesMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTablesMetadata): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesMetadata; + + /** + * Encodes the specified AutoMlTablesMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesMetadata.verify|verify} messages. + * @param message AutoMlTablesMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTablesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlTablesMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesMetadata.verify|verify} messages. + * @param message AutoMlTablesMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTablesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlTablesMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlTablesMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesMetadata; + + /** + * Decodes an AutoMlTablesMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlTablesMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesMetadata; + + /** + * Verifies an AutoMlTablesMetadata message. + * @param message Plain 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 AutoMlTablesMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlTablesMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesMetadata; + + /** + * Creates a plain object from an AutoMlTablesMetadata message. Also converts values to other types if specified. + * @param message AutoMlTablesMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlTablesMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AutoMlTextClassification. */ + interface IAutoMlTextClassification { + + /** AutoMlTextClassification inputs */ + inputs?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextClassificationInputs|null); + } + + /** Represents an AutoMlTextClassification. */ + class AutoMlTextClassification implements IAutoMlTextClassification { + + /** + * Constructs a new AutoMlTextClassification. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextClassification); + + /** AutoMlTextClassification inputs. */ + public inputs?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextClassificationInputs|null); + + /** + * Creates a new AutoMlTextClassification instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlTextClassification instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextClassification): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassification; + + /** + * Encodes the specified AutoMlTextClassification message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassification.verify|verify} messages. + * @param message AutoMlTextClassification message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextClassification, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlTextClassification message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassification.verify|verify} messages. + * @param message AutoMlTextClassification message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextClassification, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlTextClassification message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlTextClassification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassification; + + /** + * Decodes an AutoMlTextClassification message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlTextClassification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassification; + + /** + * Verifies an AutoMlTextClassification message. + * @param message Plain 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 AutoMlTextClassification message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlTextClassification + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassification; + + /** + * Creates a plain object from an AutoMlTextClassification message. Also converts values to other types if specified. + * @param message AutoMlTextClassification + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassification, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlTextClassification to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AutoMlTextClassificationInputs. */ + interface IAutoMlTextClassificationInputs { + + /** AutoMlTextClassificationInputs multiLabel */ + multiLabel?: (boolean|null); + } + + /** Represents an AutoMlTextClassificationInputs. */ + class AutoMlTextClassificationInputs implements IAutoMlTextClassificationInputs { + + /** + * Constructs a new AutoMlTextClassificationInputs. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextClassificationInputs); + + /** AutoMlTextClassificationInputs multiLabel. */ + public multiLabel: boolean; + + /** + * Creates a new AutoMlTextClassificationInputs instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlTextClassificationInputs instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextClassificationInputs): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassificationInputs; + + /** + * Encodes the specified AutoMlTextClassificationInputs message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassificationInputs.verify|verify} messages. + * @param message AutoMlTextClassificationInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextClassificationInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlTextClassificationInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassificationInputs.verify|verify} messages. + * @param message AutoMlTextClassificationInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextClassificationInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlTextClassificationInputs message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlTextClassificationInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassificationInputs; + + /** + * Decodes an AutoMlTextClassificationInputs message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlTextClassificationInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassificationInputs; + + /** + * Verifies an AutoMlTextClassificationInputs message. + * @param message Plain 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 AutoMlTextClassificationInputs message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlTextClassificationInputs + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassificationInputs; + + /** + * Creates a plain object from an AutoMlTextClassificationInputs message. Also converts values to other types if specified. + * @param message AutoMlTextClassificationInputs + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassificationInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlTextClassificationInputs to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AutoMlTextExtraction. */ + interface IAutoMlTextExtraction { + + /** AutoMlTextExtraction inputs */ + inputs?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextExtractionInputs|null); + } + + /** Represents an AutoMlTextExtraction. */ + class AutoMlTextExtraction implements IAutoMlTextExtraction { + + /** + * Constructs a new AutoMlTextExtraction. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextExtraction); + + /** AutoMlTextExtraction inputs. */ + public inputs?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextExtractionInputs|null); + + /** + * Creates a new AutoMlTextExtraction instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlTextExtraction instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextExtraction): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtraction; + + /** + * Encodes the specified AutoMlTextExtraction message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtraction.verify|verify} messages. + * @param message AutoMlTextExtraction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextExtraction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlTextExtraction message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtraction.verify|verify} messages. + * @param message AutoMlTextExtraction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextExtraction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlTextExtraction message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlTextExtraction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtraction; + + /** + * Decodes an AutoMlTextExtraction message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlTextExtraction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtraction; + + /** + * Verifies an AutoMlTextExtraction message. + * @param message Plain 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 AutoMlTextExtraction message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlTextExtraction + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtraction; + + /** + * Creates a plain object from an AutoMlTextExtraction message. Also converts values to other types if specified. + * @param message AutoMlTextExtraction + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtraction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlTextExtraction to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AutoMlTextExtractionInputs. */ + interface IAutoMlTextExtractionInputs { + } + + /** Represents an AutoMlTextExtractionInputs. */ + class AutoMlTextExtractionInputs implements IAutoMlTextExtractionInputs { + + /** + * Constructs a new AutoMlTextExtractionInputs. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextExtractionInputs); + + /** + * Creates a new AutoMlTextExtractionInputs instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlTextExtractionInputs instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextExtractionInputs): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtractionInputs; + + /** + * Encodes the specified AutoMlTextExtractionInputs message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtractionInputs.verify|verify} messages. + * @param message AutoMlTextExtractionInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextExtractionInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlTextExtractionInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtractionInputs.verify|verify} messages. + * @param message AutoMlTextExtractionInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextExtractionInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlTextExtractionInputs message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlTextExtractionInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtractionInputs; + + /** + * Decodes an AutoMlTextExtractionInputs message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlTextExtractionInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtractionInputs; + + /** + * Verifies an AutoMlTextExtractionInputs message. + * @param message Plain 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 AutoMlTextExtractionInputs message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlTextExtractionInputs + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtractionInputs; + + /** + * Creates a plain object from an AutoMlTextExtractionInputs message. Also converts values to other types if specified. + * @param message AutoMlTextExtractionInputs + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtractionInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlTextExtractionInputs to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AutoMlTextSentiment. */ + interface IAutoMlTextSentiment { + + /** AutoMlTextSentiment inputs */ + inputs?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextSentimentInputs|null); + } + + /** Represents an AutoMlTextSentiment. */ + class AutoMlTextSentiment implements IAutoMlTextSentiment { + + /** + * Constructs a new AutoMlTextSentiment. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextSentiment); + + /** AutoMlTextSentiment inputs. */ + public inputs?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextSentimentInputs|null); + + /** + * Creates a new AutoMlTextSentiment instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlTextSentiment instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextSentiment): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentiment; + + /** + * Encodes the specified AutoMlTextSentiment message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentiment.verify|verify} messages. + * @param message AutoMlTextSentiment message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextSentiment, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlTextSentiment message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentiment.verify|verify} messages. + * @param message AutoMlTextSentiment message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextSentiment, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlTextSentiment message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlTextSentiment + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentiment; + + /** + * Decodes an AutoMlTextSentiment message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlTextSentiment + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentiment; + + /** + * Verifies an AutoMlTextSentiment message. + * @param message Plain 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 AutoMlTextSentiment message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlTextSentiment + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentiment; + + /** + * Creates a plain object from an AutoMlTextSentiment message. Also converts values to other types if specified. + * @param message AutoMlTextSentiment + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentiment, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlTextSentiment to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AutoMlTextSentimentInputs. */ + interface IAutoMlTextSentimentInputs { + + /** AutoMlTextSentimentInputs sentimentMax */ + sentimentMax?: (number|null); + } + + /** Represents an AutoMlTextSentimentInputs. */ + class AutoMlTextSentimentInputs implements IAutoMlTextSentimentInputs { + + /** + * Constructs a new AutoMlTextSentimentInputs. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextSentimentInputs); + + /** AutoMlTextSentimentInputs sentimentMax. */ + public sentimentMax: number; + + /** + * Creates a new AutoMlTextSentimentInputs instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlTextSentimentInputs instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextSentimentInputs): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentimentInputs; + + /** + * Encodes the specified AutoMlTextSentimentInputs message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentimentInputs.verify|verify} messages. + * @param message AutoMlTextSentimentInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextSentimentInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlTextSentimentInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentimentInputs.verify|verify} messages. + * @param message AutoMlTextSentimentInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextSentimentInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlTextSentimentInputs message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlTextSentimentInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentimentInputs; + + /** + * Decodes an AutoMlTextSentimentInputs message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlTextSentimentInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentimentInputs; + + /** + * Verifies an AutoMlTextSentimentInputs message. + * @param message Plain 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 AutoMlTextSentimentInputs message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlTextSentimentInputs + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentimentInputs; + + /** + * Creates a plain object from an AutoMlTextSentimentInputs message. Also converts values to other types if specified. + * @param message AutoMlTextSentimentInputs + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentimentInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlTextSentimentInputs to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AutoMlVideoActionRecognition. */ + interface IAutoMlVideoActionRecognition { + + /** AutoMlVideoActionRecognition inputs */ + inputs?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoActionRecognitionInputs|null); + } + + /** Represents an AutoMlVideoActionRecognition. */ + class AutoMlVideoActionRecognition implements IAutoMlVideoActionRecognition { + + /** + * Constructs a new AutoMlVideoActionRecognition. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoActionRecognition); + + /** AutoMlVideoActionRecognition inputs. */ + public inputs?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoActionRecognitionInputs|null); + + /** + * Creates a new AutoMlVideoActionRecognition instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlVideoActionRecognition instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoActionRecognition): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognition; + + /** + * Encodes the specified AutoMlVideoActionRecognition message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognition.verify|verify} messages. + * @param message AutoMlVideoActionRecognition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoActionRecognition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlVideoActionRecognition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognition.verify|verify} messages. + * @param message AutoMlVideoActionRecognition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoActionRecognition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlVideoActionRecognition message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlVideoActionRecognition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognition; + + /** + * Decodes an AutoMlVideoActionRecognition message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlVideoActionRecognition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognition; + + /** + * Verifies an AutoMlVideoActionRecognition message. + * @param message Plain 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 AutoMlVideoActionRecognition message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlVideoActionRecognition + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognition; + + /** + * Creates a plain object from an AutoMlVideoActionRecognition message. Also converts values to other types if specified. + * @param message AutoMlVideoActionRecognition + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlVideoActionRecognition to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AutoMlVideoActionRecognitionInputs. */ + interface IAutoMlVideoActionRecognitionInputs { + + /** AutoMlVideoActionRecognitionInputs modelType */ + modelType?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.ModelType|keyof typeof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.ModelType|null); + } + + /** Represents an AutoMlVideoActionRecognitionInputs. */ + class AutoMlVideoActionRecognitionInputs implements IAutoMlVideoActionRecognitionInputs { + + /** + * Constructs a new AutoMlVideoActionRecognitionInputs. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoActionRecognitionInputs); + + /** AutoMlVideoActionRecognitionInputs modelType. */ + public modelType: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.ModelType|keyof typeof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.ModelType); + + /** + * Creates a new AutoMlVideoActionRecognitionInputs instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlVideoActionRecognitionInputs instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoActionRecognitionInputs): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs; + + /** + * Encodes the specified AutoMlVideoActionRecognitionInputs message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.verify|verify} messages. + * @param message AutoMlVideoActionRecognitionInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoActionRecognitionInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlVideoActionRecognitionInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.verify|verify} messages. + * @param message AutoMlVideoActionRecognitionInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoActionRecognitionInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlVideoActionRecognitionInputs message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlVideoActionRecognitionInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs; + + /** + * Decodes an AutoMlVideoActionRecognitionInputs message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlVideoActionRecognitionInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs; + + /** + * Verifies an AutoMlVideoActionRecognitionInputs message. + * @param message Plain 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 AutoMlVideoActionRecognitionInputs message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlVideoActionRecognitionInputs + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs; + + /** + * Creates a plain object from an AutoMlVideoActionRecognitionInputs message. Also converts values to other types if specified. + * @param message AutoMlVideoActionRecognitionInputs + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlVideoActionRecognitionInputs to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace AutoMlVideoActionRecognitionInputs { + + /** ModelType enum. */ + enum ModelType { + MODEL_TYPE_UNSPECIFIED = 0, + CLOUD = 1, + MOBILE_VERSATILE_1 = 2 + } + } + + /** Properties of an AutoMlVideoClassification. */ + interface IAutoMlVideoClassification { + + /** AutoMlVideoClassification inputs */ + inputs?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoClassificationInputs|null); + } + + /** Represents an AutoMlVideoClassification. */ + class AutoMlVideoClassification implements IAutoMlVideoClassification { + + /** + * Constructs a new AutoMlVideoClassification. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoClassification); + + /** AutoMlVideoClassification inputs. */ + public inputs?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoClassificationInputs|null); + + /** + * Creates a new AutoMlVideoClassification instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlVideoClassification instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoClassification): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassification; + + /** + * Encodes the specified AutoMlVideoClassification message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassification.verify|verify} messages. + * @param message AutoMlVideoClassification message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoClassification, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlVideoClassification message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassification.verify|verify} messages. + * @param message AutoMlVideoClassification message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoClassification, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlVideoClassification message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlVideoClassification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassification; + + /** + * Decodes an AutoMlVideoClassification message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlVideoClassification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassification; + + /** + * Verifies an AutoMlVideoClassification message. + * @param message Plain 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 AutoMlVideoClassification message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlVideoClassification + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassification; + + /** + * Creates a plain object from an AutoMlVideoClassification message. Also converts values to other types if specified. + * @param message AutoMlVideoClassification + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassification, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlVideoClassification to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AutoMlVideoClassificationInputs. */ + interface IAutoMlVideoClassificationInputs { + + /** AutoMlVideoClassificationInputs modelType */ + modelType?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.ModelType|keyof typeof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.ModelType|null); + } + + /** Represents an AutoMlVideoClassificationInputs. */ + class AutoMlVideoClassificationInputs implements IAutoMlVideoClassificationInputs { + + /** + * Constructs a new AutoMlVideoClassificationInputs. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoClassificationInputs); + + /** AutoMlVideoClassificationInputs modelType. */ + public modelType: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.ModelType|keyof typeof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.ModelType); + + /** + * Creates a new AutoMlVideoClassificationInputs instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlVideoClassificationInputs instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoClassificationInputs): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs; + + /** + * Encodes the specified AutoMlVideoClassificationInputs message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.verify|verify} messages. + * @param message AutoMlVideoClassificationInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoClassificationInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlVideoClassificationInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.verify|verify} messages. + * @param message AutoMlVideoClassificationInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoClassificationInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlVideoClassificationInputs message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlVideoClassificationInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs; + + /** + * Decodes an AutoMlVideoClassificationInputs message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlVideoClassificationInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs; + + /** + * Verifies an AutoMlVideoClassificationInputs message. + * @param message Plain 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 AutoMlVideoClassificationInputs message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlVideoClassificationInputs + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs; + + /** + * Creates a plain object from an AutoMlVideoClassificationInputs message. Also converts values to other types if specified. + * @param message AutoMlVideoClassificationInputs + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlVideoClassificationInputs to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace AutoMlVideoClassificationInputs { + + /** ModelType enum. */ + enum ModelType { + MODEL_TYPE_UNSPECIFIED = 0, + CLOUD = 1, + MOBILE_VERSATILE_1 = 2 + } + } + + /** Properties of an AutoMlVideoObjectTracking. */ + interface IAutoMlVideoObjectTracking { + + /** AutoMlVideoObjectTracking inputs */ + inputs?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoObjectTrackingInputs|null); + } + + /** Represents an AutoMlVideoObjectTracking. */ + class AutoMlVideoObjectTracking implements IAutoMlVideoObjectTracking { + + /** + * Constructs a new AutoMlVideoObjectTracking. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoObjectTracking); + + /** AutoMlVideoObjectTracking inputs. */ + public inputs?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoObjectTrackingInputs|null); + + /** + * Creates a new AutoMlVideoObjectTracking instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlVideoObjectTracking instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoObjectTracking): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTracking; + + /** + * Encodes the specified AutoMlVideoObjectTracking message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTracking.verify|verify} messages. + * @param message AutoMlVideoObjectTracking message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoObjectTracking, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlVideoObjectTracking message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTracking.verify|verify} messages. + * @param message AutoMlVideoObjectTracking message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoObjectTracking, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlVideoObjectTracking message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlVideoObjectTracking + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTracking; + + /** + * Decodes an AutoMlVideoObjectTracking message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlVideoObjectTracking + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTracking; + + /** + * Verifies an AutoMlVideoObjectTracking message. + * @param message Plain 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 AutoMlVideoObjectTracking message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlVideoObjectTracking + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTracking; + + /** + * Creates a plain object from an AutoMlVideoObjectTracking message. Also converts values to other types if specified. + * @param message AutoMlVideoObjectTracking + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTracking, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlVideoObjectTracking to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AutoMlVideoObjectTrackingInputs. */ + interface IAutoMlVideoObjectTrackingInputs { + + /** AutoMlVideoObjectTrackingInputs modelType */ + modelType?: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.ModelType|keyof typeof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.ModelType|null); + } + + /** Represents an AutoMlVideoObjectTrackingInputs. */ + class AutoMlVideoObjectTrackingInputs implements IAutoMlVideoObjectTrackingInputs { + + /** + * Constructs a new AutoMlVideoObjectTrackingInputs. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoObjectTrackingInputs); + + /** AutoMlVideoObjectTrackingInputs modelType. */ + public modelType: (google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.ModelType|keyof typeof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.ModelType); + + /** + * Creates a new AutoMlVideoObjectTrackingInputs instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlVideoObjectTrackingInputs instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoObjectTrackingInputs): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs; + + /** + * Encodes the specified AutoMlVideoObjectTrackingInputs message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.verify|verify} messages. + * @param message AutoMlVideoObjectTrackingInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoObjectTrackingInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlVideoObjectTrackingInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.verify|verify} messages. + * @param message AutoMlVideoObjectTrackingInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoObjectTrackingInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlVideoObjectTrackingInputs message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlVideoObjectTrackingInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs; + + /** + * Decodes an AutoMlVideoObjectTrackingInputs message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlVideoObjectTrackingInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs; + + /** + * Verifies an AutoMlVideoObjectTrackingInputs message. + * @param message Plain 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 AutoMlVideoObjectTrackingInputs message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlVideoObjectTrackingInputs + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs; + + /** + * Creates a plain object from an AutoMlVideoObjectTrackingInputs message. Also converts values to other types if specified. + * @param message AutoMlVideoObjectTrackingInputs + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlVideoObjectTrackingInputs to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace AutoMlVideoObjectTrackingInputs { + + /** ModelType enum. */ + enum ModelType { + MODEL_TYPE_UNSPECIFIED = 0, + CLOUD = 1, + MOBILE_VERSATILE_1 = 2, + MOBILE_CORAL_VERSATILE_1 = 3, + MOBILE_CORAL_LOW_LATENCY_1 = 4, + MOBILE_JETSON_VERSATILE_1 = 5, + MOBILE_JETSON_LOW_LATENCY_1 = 6 + } + } + } + } + } + + /** Represents a SpecialistPoolService */ + class SpecialistPoolService extends $protobuf.rpc.Service { + + /** + * Constructs a new SpecialistPoolService 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 SpecialistPoolService 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): SpecialistPoolService; + + /** + * Calls CreateSpecialistPool. + * @param request CreateSpecialistPoolRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createSpecialistPool(request: google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolRequest, callback: google.cloud.aiplatform.v1beta1.SpecialistPoolService.CreateSpecialistPoolCallback): void; + + /** + * Calls CreateSpecialistPool. + * @param request CreateSpecialistPoolRequest message or plain object + * @returns Promise + */ + public createSpecialistPool(request: google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolRequest): Promise; + + /** + * Calls GetSpecialistPool. + * @param request GetSpecialistPoolRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SpecialistPool + */ + public getSpecialistPool(request: google.cloud.aiplatform.v1beta1.IGetSpecialistPoolRequest, callback: google.cloud.aiplatform.v1beta1.SpecialistPoolService.GetSpecialistPoolCallback): void; + + /** + * Calls GetSpecialistPool. + * @param request GetSpecialistPoolRequest message or plain object + * @returns Promise + */ + public getSpecialistPool(request: google.cloud.aiplatform.v1beta1.IGetSpecialistPoolRequest): Promise; + + /** + * Calls ListSpecialistPools. + * @param request ListSpecialistPoolsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListSpecialistPoolsResponse + */ + public listSpecialistPools(request: google.cloud.aiplatform.v1beta1.IListSpecialistPoolsRequest, callback: google.cloud.aiplatform.v1beta1.SpecialistPoolService.ListSpecialistPoolsCallback): void; + + /** + * Calls ListSpecialistPools. + * @param request ListSpecialistPoolsRequest message or plain object + * @returns Promise + */ + public listSpecialistPools(request: google.cloud.aiplatform.v1beta1.IListSpecialistPoolsRequest): Promise; + + /** + * Calls DeleteSpecialistPool. + * @param request DeleteSpecialistPoolRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteSpecialistPool(request: google.cloud.aiplatform.v1beta1.IDeleteSpecialistPoolRequest, callback: google.cloud.aiplatform.v1beta1.SpecialistPoolService.DeleteSpecialistPoolCallback): void; + + /** + * Calls DeleteSpecialistPool. + * @param request DeleteSpecialistPoolRequest message or plain object + * @returns Promise + */ + public deleteSpecialistPool(request: google.cloud.aiplatform.v1beta1.IDeleteSpecialistPoolRequest): Promise; + + /** + * Calls UpdateSpecialistPool. + * @param request UpdateSpecialistPoolRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public updateSpecialistPool(request: google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolRequest, callback: google.cloud.aiplatform.v1beta1.SpecialistPoolService.UpdateSpecialistPoolCallback): void; + + /** + * Calls UpdateSpecialistPool. + * @param request UpdateSpecialistPoolRequest message or plain object + * @returns Promise + */ + public updateSpecialistPool(request: google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolRequest): Promise; + } + + namespace SpecialistPoolService { + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.SpecialistPoolService#createSpecialistPool}. + * @param error Error, if any + * @param [response] Operation + */ + type CreateSpecialistPoolCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.SpecialistPoolService#getSpecialistPool}. + * @param error Error, if any + * @param [response] SpecialistPool + */ + type GetSpecialistPoolCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.SpecialistPool) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.SpecialistPoolService#listSpecialistPools}. + * @param error Error, if any + * @param [response] ListSpecialistPoolsResponse + */ + type ListSpecialistPoolsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.SpecialistPoolService#deleteSpecialistPool}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteSpecialistPoolCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.SpecialistPoolService#updateSpecialistPool}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateSpecialistPoolCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + } + + /** Properties of a CreateSpecialistPoolRequest. */ + interface ICreateSpecialistPoolRequest { + + /** CreateSpecialistPoolRequest parent */ + parent?: (string|null); + + /** CreateSpecialistPoolRequest specialistPool */ + specialistPool?: (google.cloud.aiplatform.v1beta1.ISpecialistPool|null); + } + + /** Represents a CreateSpecialistPoolRequest. */ + class CreateSpecialistPoolRequest implements ICreateSpecialistPoolRequest { + + /** + * Constructs a new CreateSpecialistPoolRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolRequest); + + /** CreateSpecialistPoolRequest parent. */ + public parent: string; + + /** CreateSpecialistPoolRequest specialistPool. */ + public specialistPool?: (google.cloud.aiplatform.v1beta1.ISpecialistPool|null); + + /** + * Creates a new CreateSpecialistPoolRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateSpecialistPoolRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolRequest): google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest; + + /** + * Encodes the specified CreateSpecialistPoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest.verify|verify} messages. + * @param message CreateSpecialistPoolRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateSpecialistPoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest.verify|verify} messages. + * @param message CreateSpecialistPoolRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateSpecialistPoolRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateSpecialistPoolRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest; + + /** + * Decodes a CreateSpecialistPoolRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateSpecialistPoolRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest; + + /** + * Verifies a CreateSpecialistPoolRequest message. + * @param message Plain 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 CreateSpecialistPoolRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateSpecialistPoolRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest; + + /** + * Creates a plain object from a CreateSpecialistPoolRequest message. Also converts values to other types if specified. + * @param message CreateSpecialistPoolRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateSpecialistPoolRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CreateSpecialistPoolOperationMetadata. */ + interface ICreateSpecialistPoolOperationMetadata { + + /** CreateSpecialistPoolOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + } + + /** Represents a CreateSpecialistPoolOperationMetadata. */ + class CreateSpecialistPoolOperationMetadata implements ICreateSpecialistPoolOperationMetadata { + + /** + * Constructs a new CreateSpecialistPoolOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolOperationMetadata); + + /** CreateSpecialistPoolOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + + /** + * Creates a new CreateSpecialistPoolOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateSpecialistPoolOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolOperationMetadata): google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata; + + /** + * Encodes the specified CreateSpecialistPoolOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata.verify|verify} messages. + * @param message CreateSpecialistPoolOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateSpecialistPoolOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata.verify|verify} messages. + * @param message CreateSpecialistPoolOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateSpecialistPoolOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateSpecialistPoolOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata; + + /** + * Decodes a CreateSpecialistPoolOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateSpecialistPoolOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata; + + /** + * Verifies a CreateSpecialistPoolOperationMetadata message. + * @param message Plain 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 CreateSpecialistPoolOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateSpecialistPoolOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata; + + /** + * Creates a plain object from a CreateSpecialistPoolOperationMetadata message. Also converts values to other types if specified. + * @param message CreateSpecialistPoolOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateSpecialistPoolOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetSpecialistPoolRequest. */ + interface IGetSpecialistPoolRequest { + + /** GetSpecialistPoolRequest name */ + name?: (string|null); + } + + /** Represents a GetSpecialistPoolRequest. */ + class GetSpecialistPoolRequest implements IGetSpecialistPoolRequest { + + /** + * Constructs a new GetSpecialistPoolRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetSpecialistPoolRequest); + + /** GetSpecialistPoolRequest name. */ + public name: string; + + /** + * Creates a new GetSpecialistPoolRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetSpecialistPoolRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetSpecialistPoolRequest): google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest; + + /** + * Encodes the specified GetSpecialistPoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest.verify|verify} messages. + * @param message GetSpecialistPoolRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IGetSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetSpecialistPoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest.verify|verify} messages. + * @param message GetSpecialistPoolRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetSpecialistPoolRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetSpecialistPoolRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest; + + /** + * Decodes a GetSpecialistPoolRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetSpecialistPoolRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest; + + /** + * Verifies a GetSpecialistPoolRequest message. + * @param message Plain 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 GetSpecialistPoolRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetSpecialistPoolRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest; + + /** + * Creates a plain object from a GetSpecialistPoolRequest message. Also converts values to other types if specified. + * @param message GetSpecialistPoolRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetSpecialistPoolRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListSpecialistPoolsRequest. */ + interface IListSpecialistPoolsRequest { + + /** ListSpecialistPoolsRequest parent */ + parent?: (string|null); + + /** ListSpecialistPoolsRequest pageSize */ + pageSize?: (number|null); + + /** ListSpecialistPoolsRequest pageToken */ + pageToken?: (string|null); + + /** ListSpecialistPoolsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents a ListSpecialistPoolsRequest. */ + class ListSpecialistPoolsRequest implements IListSpecialistPoolsRequest { + + /** + * Constructs a new ListSpecialistPoolsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IListSpecialistPoolsRequest); + + /** ListSpecialistPoolsRequest parent. */ + public parent: string; + + /** ListSpecialistPoolsRequest pageSize. */ + public pageSize: number; + + /** ListSpecialistPoolsRequest pageToken. */ + public pageToken: string; + + /** ListSpecialistPoolsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new ListSpecialistPoolsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListSpecialistPoolsRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IListSpecialistPoolsRequest): google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest; + + /** + * Encodes the specified ListSpecialistPoolsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest.verify|verify} messages. + * @param message ListSpecialistPoolsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IListSpecialistPoolsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListSpecialistPoolsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest.verify|verify} messages. + * @param message ListSpecialistPoolsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListSpecialistPoolsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListSpecialistPoolsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListSpecialistPoolsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest; + + /** + * Decodes a ListSpecialistPoolsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListSpecialistPoolsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest; + + /** + * Verifies a ListSpecialistPoolsRequest message. + * @param message Plain 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 ListSpecialistPoolsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListSpecialistPoolsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest; + + /** + * Creates a plain object from a ListSpecialistPoolsRequest message. Also converts values to other types if specified. + * @param message ListSpecialistPoolsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListSpecialistPoolsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListSpecialistPoolsResponse. */ + interface IListSpecialistPoolsResponse { + + /** ListSpecialistPoolsResponse specialistPools */ + specialistPools?: (google.cloud.aiplatform.v1beta1.ISpecialistPool[]|null); + + /** ListSpecialistPoolsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListSpecialistPoolsResponse. */ + class ListSpecialistPoolsResponse implements IListSpecialistPoolsResponse { + + /** + * Constructs a new ListSpecialistPoolsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IListSpecialistPoolsResponse); + + /** ListSpecialistPoolsResponse specialistPools. */ + public specialistPools: google.cloud.aiplatform.v1beta1.ISpecialistPool[]; + + /** ListSpecialistPoolsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListSpecialistPoolsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListSpecialistPoolsResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IListSpecialistPoolsResponse): google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse; + + /** + * Encodes the specified ListSpecialistPoolsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse.verify|verify} messages. + * @param message ListSpecialistPoolsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IListSpecialistPoolsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListSpecialistPoolsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse.verify|verify} messages. + * @param message ListSpecialistPoolsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListSpecialistPoolsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListSpecialistPoolsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListSpecialistPoolsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse; + + /** + * Decodes a ListSpecialistPoolsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListSpecialistPoolsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse; + + /** + * Verifies a ListSpecialistPoolsResponse message. + * @param message Plain 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 ListSpecialistPoolsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListSpecialistPoolsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse; + + /** + * Creates a plain object from a ListSpecialistPoolsResponse message. Also converts values to other types if specified. + * @param message ListSpecialistPoolsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListSpecialistPoolsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DeleteSpecialistPoolRequest. */ + interface IDeleteSpecialistPoolRequest { + + /** DeleteSpecialistPoolRequest name */ + name?: (string|null); + + /** DeleteSpecialistPoolRequest force */ + force?: (boolean|null); + } + + /** Represents a DeleteSpecialistPoolRequest. */ + class DeleteSpecialistPoolRequest implements IDeleteSpecialistPoolRequest { + + /** + * Constructs a new DeleteSpecialistPoolRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteSpecialistPoolRequest); + + /** DeleteSpecialistPoolRequest name. */ + public name: string; + + /** DeleteSpecialistPoolRequest force. */ + public force: boolean; + + /** + * Creates a new DeleteSpecialistPoolRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteSpecialistPoolRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteSpecialistPoolRequest): google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest; + + /** + * Encodes the specified DeleteSpecialistPoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest.verify|verify} messages. + * @param message DeleteSpecialistPoolRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteSpecialistPoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest.verify|verify} messages. * @param message DeleteSpecialistPoolRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteSpecialistPoolRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteSpecialistPoolRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest; + + /** + * Decodes a DeleteSpecialistPoolRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteSpecialistPoolRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest; + + /** + * Verifies a DeleteSpecialistPoolRequest message. + * @param message Plain 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 DeleteSpecialistPoolRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteSpecialistPoolRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest; + + /** + * Creates a plain object from a DeleteSpecialistPoolRequest message. Also converts values to other types if specified. + * @param message DeleteSpecialistPoolRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteSpecialistPoolRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an UpdateSpecialistPoolRequest. */ + interface IUpdateSpecialistPoolRequest { + + /** UpdateSpecialistPoolRequest specialistPool */ + specialistPool?: (google.cloud.aiplatform.v1beta1.ISpecialistPool|null); + + /** UpdateSpecialistPoolRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateSpecialistPoolRequest. */ + class UpdateSpecialistPoolRequest implements IUpdateSpecialistPoolRequest { + + /** + * Constructs a new UpdateSpecialistPoolRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolRequest); + + /** UpdateSpecialistPoolRequest specialistPool. */ + public specialistPool?: (google.cloud.aiplatform.v1beta1.ISpecialistPool|null); + + /** UpdateSpecialistPoolRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new UpdateSpecialistPoolRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateSpecialistPoolRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolRequest): google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest; + + /** + * Encodes the specified UpdateSpecialistPoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest.verify|verify} messages. + * @param message UpdateSpecialistPoolRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateSpecialistPoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest.verify|verify} messages. + * @param message UpdateSpecialistPoolRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateSpecialistPoolRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateSpecialistPoolRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest; + + /** + * Decodes an UpdateSpecialistPoolRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateSpecialistPoolRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest; + + /** + * Verifies an UpdateSpecialistPoolRequest message. + * @param message Plain 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 UpdateSpecialistPoolRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateSpecialistPoolRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest; + + /** + * Creates a plain object from an UpdateSpecialistPoolRequest message. Also converts values to other types if specified. + * @param message UpdateSpecialistPoolRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateSpecialistPoolRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an UpdateSpecialistPoolOperationMetadata. */ + interface IUpdateSpecialistPoolOperationMetadata { + + /** UpdateSpecialistPoolOperationMetadata specialistPool */ + specialistPool?: (string|null); + + /** UpdateSpecialistPoolOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + } + + /** Represents an UpdateSpecialistPoolOperationMetadata. */ + class UpdateSpecialistPoolOperationMetadata implements IUpdateSpecialistPoolOperationMetadata { + + /** + * Constructs a new UpdateSpecialistPoolOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolOperationMetadata); + + /** UpdateSpecialistPoolOperationMetadata specialistPool. */ + public specialistPool: string; + + /** UpdateSpecialistPoolOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + + /** + * Creates a new UpdateSpecialistPoolOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateSpecialistPoolOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolOperationMetadata): google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata; + + /** + * Encodes the specified UpdateSpecialistPoolOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata.verify|verify} messages. + * @param message UpdateSpecialistPoolOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateSpecialistPoolOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata.verify|verify} messages. + * @param message UpdateSpecialistPoolOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateSpecialistPoolOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateSpecialistPoolOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata; + + /** + * Decodes an UpdateSpecialistPoolOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateSpecialistPoolOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata; + + /** + * Verifies an UpdateSpecialistPoolOperationMetadata message. + * @param message Plain 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 UpdateSpecialistPoolOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateSpecialistPoolOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata; + + /** + * Creates a plain object from an UpdateSpecialistPoolOperationMetadata message. Also converts values to other types if specified. + * @param message UpdateSpecialistPoolOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateSpecialistPoolOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + } + + /** Namespace api. */ + namespace api { + + /** 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 }; + } + + /** 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; + + /** HttpRule put. */ + public put: string; + + /** HttpRule post. */ + public post: string; + + /** HttpRule delete. */ + public delete: string; + + /** HttpRule patch. */ + public patch: string; + + /** 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 }; + } + + /** 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 }; + } + + /** FieldBehavior enum. */ + enum FieldBehavior { + FIELD_BEHAVIOR_UNSPECIFIED = 0, + OPTIONAL = 1, + REQUIRED = 2, + OUTPUT_ONLY = 3, + INPUT_ONLY = 4, + IMMUTABLE = 5 + } + + /** 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); + } + + /** 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; + + /** + * 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 }; + } + + namespace ResourceDescriptor { + + /** History enum. */ + enum History { + HISTORY_UNSPECIFIED = 0, + ORIGINALLY_SINGLE_PATTERN = 1, + FUTURE_MULTI_PATTERN = 2 + } + } + + /** 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 }; + } + } + + /** 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 }; - /** - * Decodes a DeleteSpecialistPoolRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteSpecialistPoolRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest; + /** + * Converts this FileDescriptorSet to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Decodes a DeleteSpecialistPoolRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteSpecialistPoolRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest; + /** Properties of a FileDescriptorProto. */ + interface IFileDescriptorProto { - /** - * Verifies a DeleteSpecialistPoolRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** FileDescriptorProto name */ + name?: (string|null); - /** - * Creates a DeleteSpecialistPoolRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteSpecialistPoolRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest; + /** FileDescriptorProto package */ + "package"?: (string|null); - /** - * Creates a plain object from a DeleteSpecialistPoolRequest message. Also converts values to other types if specified. - * @param message DeleteSpecialistPoolRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** FileDescriptorProto dependency */ + dependency?: (string[]|null); - /** - * Converts this DeleteSpecialistPoolRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** FileDescriptorProto publicDependency */ + publicDependency?: (number[]|null); - /** Properties of an UpdateSpecialistPoolRequest. */ - interface IUpdateSpecialistPoolRequest { + /** FileDescriptorProto weakDependency */ + weakDependency?: (number[]|null); - /** UpdateSpecialistPoolRequest specialistPool */ - specialistPool?: (google.cloud.aiplatform.v1beta1.ISpecialistPool|null); + /** FileDescriptorProto messageType */ + messageType?: (google.protobuf.IDescriptorProto[]|null); - /** UpdateSpecialistPoolRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); - } + /** FileDescriptorProto enumType */ + enumType?: (google.protobuf.IEnumDescriptorProto[]|null); - /** Represents an UpdateSpecialistPoolRequest. */ - class UpdateSpecialistPoolRequest implements IUpdateSpecialistPoolRequest { + /** FileDescriptorProto service */ + service?: (google.protobuf.IServiceDescriptorProto[]|null); - /** - * Constructs a new UpdateSpecialistPoolRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolRequest); + /** FileDescriptorProto extension */ + extension?: (google.protobuf.IFieldDescriptorProto[]|null); - /** UpdateSpecialistPoolRequest specialistPool. */ - public specialistPool?: (google.cloud.aiplatform.v1beta1.ISpecialistPool|null); + /** FileDescriptorProto options */ + options?: (google.protobuf.IFileOptions|null); - /** UpdateSpecialistPoolRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** FileDescriptorProto sourceCodeInfo */ + sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); - /** - * Creates a new UpdateSpecialistPoolRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateSpecialistPoolRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolRequest): google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest; + /** FileDescriptorProto syntax */ + syntax?: (string|null); + } - /** - * Encodes the specified UpdateSpecialistPoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest.verify|verify} messages. - * @param message UpdateSpecialistPoolRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a FileDescriptorProto. */ + class FileDescriptorProto implements IFileDescriptorProto { - /** - * Encodes the specified UpdateSpecialistPoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest.verify|verify} messages. - * @param message UpdateSpecialistPoolRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new FileDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileDescriptorProto); - /** - * Decodes an UpdateSpecialistPoolRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateSpecialistPoolRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest; + /** FileDescriptorProto name. */ + public name: string; - /** - * Decodes an UpdateSpecialistPoolRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateSpecialistPoolRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest; + /** FileDescriptorProto package. */ + public package: string; - /** - * Verifies an UpdateSpecialistPoolRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** FileDescriptorProto dependency. */ + public dependency: string[]; - /** - * Creates an UpdateSpecialistPoolRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateSpecialistPoolRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest; + /** FileDescriptorProto publicDependency. */ + public publicDependency: number[]; - /** - * Creates a plain object from an UpdateSpecialistPoolRequest message. Also converts values to other types if specified. - * @param message UpdateSpecialistPoolRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** FileDescriptorProto weakDependency. */ + public weakDependency: number[]; - /** - * Converts this UpdateSpecialistPoolRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** 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; + + /** + * 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 }; - /** Properties of an UpdateSpecialistPoolOperationMetadata. */ - interface IUpdateSpecialistPoolOperationMetadata { + /** + * Converts this FileDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** UpdateSpecialistPoolOperationMetadata specialistPool */ - specialistPool?: (string|null); + /** Properties of a DescriptorProto. */ + interface IDescriptorProto { - /** UpdateSpecialistPoolOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - } + /** DescriptorProto name */ + name?: (string|null); - /** Represents an UpdateSpecialistPoolOperationMetadata. */ - class UpdateSpecialistPoolOperationMetadata implements IUpdateSpecialistPoolOperationMetadata { + /** DescriptorProto field */ + field?: (google.protobuf.IFieldDescriptorProto[]|null); - /** - * Constructs a new UpdateSpecialistPoolOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolOperationMetadata); + /** DescriptorProto extension */ + extension?: (google.protobuf.IFieldDescriptorProto[]|null); - /** UpdateSpecialistPoolOperationMetadata specialistPool. */ - public specialistPool: string; + /** DescriptorProto nestedType */ + nestedType?: (google.protobuf.IDescriptorProto[]|null); - /** UpdateSpecialistPoolOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** DescriptorProto enumType */ + enumType?: (google.protobuf.IEnumDescriptorProto[]|null); - /** - * Creates a new UpdateSpecialistPoolOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateSpecialistPoolOperationMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolOperationMetadata): google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata; + /** DescriptorProto extensionRange */ + extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null); - /** - * Encodes the specified UpdateSpecialistPoolOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata.verify|verify} messages. - * @param message UpdateSpecialistPoolOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** DescriptorProto oneofDecl */ + oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null); - /** - * Encodes the specified UpdateSpecialistPoolOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata.verify|verify} messages. - * @param message UpdateSpecialistPoolOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** DescriptorProto options */ + options?: (google.protobuf.IMessageOptions|null); - /** - * Decodes an UpdateSpecialistPoolOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateSpecialistPoolOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata; + /** DescriptorProto reservedRange */ + reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null); - /** - * Decodes an UpdateSpecialistPoolOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateSpecialistPoolOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata; + /** DescriptorProto reservedName */ + reservedName?: (string[]|null); + } - /** - * Verifies an UpdateSpecialistPoolOperationMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Represents a DescriptorProto. */ + class DescriptorProto implements IDescriptorProto { - /** - * Creates an UpdateSpecialistPoolOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateSpecialistPoolOperationMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata; + /** + * Constructs a new DescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IDescriptorProto); - /** - * Creates a plain object from an UpdateSpecialistPoolOperationMetadata message. Also converts values to other types if specified. - * @param message UpdateSpecialistPoolOperationMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** DescriptorProto name. */ + public name: string; - /** - * Converts this UpdateSpecialistPoolOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - } - } + /** DescriptorProto field. */ + public field: google.protobuf.IFieldDescriptorProto[]; - /** Namespace api. */ - namespace api { + /** DescriptorProto extension. */ + public extension: google.protobuf.IFieldDescriptorProto[]; - /** Properties of a Http. */ - interface IHttp { + /** DescriptorProto nestedType. */ + public nestedType: google.protobuf.IDescriptorProto[]; - /** Http rules */ - rules?: (google.api.IHttpRule[]|null); + /** DescriptorProto enumType. */ + public enumType: google.protobuf.IEnumDescriptorProto[]; - /** Http fullyDecodeReservedExpansion */ - fullyDecodeReservedExpansion?: (boolean|null); - } + /** DescriptorProto extensionRange. */ + public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[]; - /** Represents a Http. */ - class Http implements IHttp { + /** DescriptorProto oneofDecl. */ + public oneofDecl: google.protobuf.IOneofDescriptorProto[]; - /** - * Constructs a new Http. - * @param [properties] Properties to set - */ - constructor(properties?: google.api.IHttp); + /** DescriptorProto options. */ + public options?: (google.protobuf.IMessageOptions|null); - /** Http rules. */ - public rules: google.api.IHttpRule[]; + /** DescriptorProto reservedRange. */ + public reservedRange: google.protobuf.DescriptorProto.IReservedRange[]; - /** Http fullyDecodeReservedExpansion. */ - public fullyDecodeReservedExpansion: boolean; + /** DescriptorProto reservedName. */ + public reservedName: string[]; /** - * Creates a new Http instance using the specified properties. + * Creates a new DescriptorProto instance using the specified properties. * @param [properties] Properties to set - * @returns Http instance + * @returns DescriptorProto instance */ - public static create(properties?: google.api.IHttp): google.api.Http; + public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto; /** - * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. - * @param message Http message or plain object to encode + * 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.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IDescriptorProto, 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 + * 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.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Http message from the specified reader or buffer. + * 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 Http + * @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.api.Http; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto; /** - * Decodes a Http message from the specified reader or buffer, length delimited. + * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Http + * @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.api.Http; + 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 }; + } + + 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; - /** - * 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); + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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 }; + /** + * 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; - /** - * Converts this Http to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * 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; - /** Properties of a HttpRule. */ - interface IHttpRule { + /** + * 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); - /** HttpRule selector */ - selector?: (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; - /** HttpRule get */ - get?: (string|null); + /** + * 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 }; - /** HttpRule put */ - put?: (string|null); + /** + * Converts this ExtensionRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** HttpRule post */ - post?: (string|null); + /** Properties of a ReservedRange. */ + interface IReservedRange { - /** HttpRule delete */ - "delete"?: (string|null); + /** ReservedRange start */ + start?: (number|null); - /** HttpRule patch */ - patch?: (string|null); + /** ReservedRange end */ + end?: (number|null); + } - /** HttpRule custom */ - custom?: (google.api.ICustomHttpPattern|null); + /** Represents a ReservedRange. */ + class ReservedRange implements IReservedRange { - /** HttpRule body */ - body?: (string|null); + /** + * Constructs a new ReservedRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.DescriptorProto.IReservedRange); - /** HttpRule responseBody */ - responseBody?: (string|null); + /** ReservedRange start. */ + public start: number; - /** HttpRule additionalBindings */ - additionalBindings?: (google.api.IHttpRule[]|null); - } + /** ReservedRange end. */ + public end: number; - /** Represents a HttpRule. */ - class HttpRule implements IHttpRule { + /** + * 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; - /** - * Constructs a new HttpRule. - * @param [properties] Properties to set - */ - constructor(properties?: google.api.IHttpRule); + /** + * 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; - /** HttpRule selector. */ - public selector: string; + /** + * 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; - /** HttpRule get. */ - public get: string; + /** + * 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; - /** HttpRule put. */ - public put: string; + /** + * 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; - /** HttpRule post. */ - public post: string; + /** + * 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); - /** HttpRule delete. */ - public delete: string; + /** + * 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; - /** HttpRule patch. */ - public patch: string; + /** + * 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 }; - /** HttpRule custom. */ - public custom?: (google.api.ICustomHttpPattern|null); + /** + * Converts this ReservedRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } - /** HttpRule body. */ - public body: string; + /** Properties of an ExtensionRangeOptions. */ + interface IExtensionRangeOptions { - /** HttpRule responseBody. */ - public responseBody: string; + /** ExtensionRangeOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } - /** HttpRule additionalBindings. */ - public additionalBindings: google.api.IHttpRule[]; + /** Represents an ExtensionRangeOptions. */ + class ExtensionRangeOptions implements IExtensionRangeOptions { - /** HttpRule pattern. */ - public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom"); + /** + * Constructs a new ExtensionRangeOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IExtensionRangeOptions); + + /** ExtensionRangeOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; /** - * Creates a new HttpRule instance using the specified properties. + * Creates a new ExtensionRangeOptions instance using the specified properties. * @param [properties] Properties to set - * @returns HttpRule instance + * @returns ExtensionRangeOptions instance */ - public static create(properties?: google.api.IHttpRule): google.api.HttpRule; + public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions; /** - * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. - * @param message HttpRule message or plain object to encode + * 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.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IExtensionRangeOptions, 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 + * 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.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a HttpRule message from the specified reader or buffer. + * 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 HttpRule + * @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.api.HttpRule; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions; /** - * Decodes a HttpRule message from the specified reader or buffer, length delimited. + * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns HttpRule + * @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.api.HttpRule; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions; /** - * Verifies a HttpRule message. + * 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 a HttpRule message from a plain object. Also converts values to their respective internal types. + * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns HttpRule + * @returns ExtensionRangeOptions */ - public static fromObject(object: { [k: string]: any }): google.api.HttpRule; + public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions; /** - * Creates a plain object from a HttpRule message. Also converts values to other types if specified. - * @param message HttpRule + * 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.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this HttpRule to JSON. + * Converts this ExtensionRangeOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CustomHttpPattern. */ - interface ICustomHttpPattern { + /** Properties of a FieldDescriptorProto. */ + interface IFieldDescriptorProto { - /** CustomHttpPattern kind */ - kind?: (string|null); + /** FieldDescriptorProto name */ + name?: (string|null); - /** CustomHttpPattern path */ - path?: (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 CustomHttpPattern. */ - class CustomHttpPattern implements ICustomHttpPattern { + /** Represents a FieldDescriptorProto. */ + class FieldDescriptorProto implements IFieldDescriptorProto { /** - * Constructs a new CustomHttpPattern. + * Constructs a new FieldDescriptorProto. * @param [properties] Properties to set */ - constructor(properties?: google.api.ICustomHttpPattern); + constructor(properties?: google.protobuf.IFieldDescriptorProto); - /** CustomHttpPattern kind. */ - public kind: string; + /** FieldDescriptorProto name. */ + public name: string; - /** CustomHttpPattern path. */ - public path: 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 CustomHttpPattern instance using the specified properties. + * Creates a new FieldDescriptorProto instance using the specified properties. * @param [properties] Properties to set - * @returns CustomHttpPattern instance + * @returns FieldDescriptorProto instance */ - public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern; + public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto; /** - * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. - * @param message CustomHttpPattern message or plain object to encode + * 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.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IFieldDescriptorProto, 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 + * 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.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CustomHttpPattern message from the specified reader or buffer. + * 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 CustomHttpPattern + * @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.api.CustomHttpPattern; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto; /** - * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. + * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CustomHttpPattern + * @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.api.CustomHttpPattern; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto; /** - * Verifies a CustomHttpPattern message. + * 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 CustomHttpPattern message from a plain object. Also converts values to their respective internal types. + * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CustomHttpPattern + * @returns FieldDescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern; + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto; /** - * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. - * @param message CustomHttpPattern + * 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.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CustomHttpPattern to JSON. + * Converts this FieldDescriptorProto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** FieldBehavior enum. */ - enum FieldBehavior { - FIELD_BEHAVIOR_UNSPECIFIED = 0, - OPTIONAL = 1, - REQUIRED = 2, - OUTPUT_ONLY = 3, - INPUT_ONLY = 4, - IMMUTABLE = 5 - } - - /** Properties of a ResourceDescriptor. */ - interface IResourceDescriptor { - - /** ResourceDescriptor type */ - type?: (string|null); + namespace FieldDescriptorProto { - /** ResourceDescriptor pattern */ - pattern?: (string[]|null); + /** 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 + } - /** ResourceDescriptor nameField */ - nameField?: (string|null); + /** Label enum. */ + enum Label { + LABEL_OPTIONAL = 1, + LABEL_REQUIRED = 2, + LABEL_REPEATED = 3 + } + } - /** ResourceDescriptor history */ - history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null); + /** Properties of an OneofDescriptorProto. */ + interface IOneofDescriptorProto { - /** ResourceDescriptor plural */ - plural?: (string|null); + /** OneofDescriptorProto name */ + name?: (string|null); - /** ResourceDescriptor singular */ - singular?: (string|null); + /** OneofDescriptorProto options */ + options?: (google.protobuf.IOneofOptions|null); } - /** Represents a ResourceDescriptor. */ - class ResourceDescriptor implements IResourceDescriptor { + /** Represents an OneofDescriptorProto. */ + class OneofDescriptorProto implements IOneofDescriptorProto { /** - * Constructs a new ResourceDescriptor. + * Constructs a new OneofDescriptorProto. * @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); + constructor(properties?: google.protobuf.IOneofDescriptorProto); - /** ResourceDescriptor plural. */ - public plural: string; + /** OneofDescriptorProto name. */ + public name: string; - /** ResourceDescriptor singular. */ - public singular: string; + /** OneofDescriptorProto options. */ + public options?: (google.protobuf.IOneofOptions|null); /** - * Creates a new ResourceDescriptor instance using the specified properties. + * Creates a new OneofDescriptorProto instance using the specified properties. * @param [properties] Properties to set - * @returns ResourceDescriptor instance + * @returns OneofDescriptorProto instance */ - public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor; + public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto; /** - * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. - * @param message ResourceDescriptor message or plain object to encode + * 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.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IOneofDescriptorProto, 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 + * 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.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResourceDescriptor message from the specified reader or buffer. + * 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 ResourceDescriptor + * @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.api.ResourceDescriptor; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto; /** - * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited. + * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResourceDescriptor + * @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.api.ResourceDescriptor; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto; /** - * Verifies a ResourceDescriptor message. + * 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 a ResourceDescriptor message from a plain object. Also converts values to their respective internal types. + * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResourceDescriptor + * @returns OneofDescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor; + public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto; /** - * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified. - * @param message ResourceDescriptor + * 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.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResourceDescriptor to JSON. + * Converts this OneofDescriptorProto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace ResourceDescriptor { + /** Properties of an EnumDescriptorProto. */ + interface IEnumDescriptorProto { - /** History enum. */ - enum History { - HISTORY_UNSPECIFIED = 0, - ORIGINALLY_SINGLE_PATTERN = 1, - FUTURE_MULTI_PATTERN = 2 - } - } + /** EnumDescriptorProto name */ + name?: (string|null); - /** Properties of a ResourceReference. */ - interface IResourceReference { + /** EnumDescriptorProto value */ + value?: (google.protobuf.IEnumValueDescriptorProto[]|null); - /** ResourceReference type */ - type?: (string|null); + /** EnumDescriptorProto options */ + options?: (google.protobuf.IEnumOptions|null); - /** ResourceReference childType */ - childType?: (string|null); + /** EnumDescriptorProto reservedRange */ + reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null); + + /** EnumDescriptorProto reservedName */ + reservedName?: (string[]|null); } - /** Represents a ResourceReference. */ - class ResourceReference implements IResourceReference { + /** Represents an EnumDescriptorProto. */ + class EnumDescriptorProto implements IEnumDescriptorProto { /** - * Constructs a new ResourceReference. + * Constructs a new EnumDescriptorProto. * @param [properties] Properties to set */ - constructor(properties?: google.api.IResourceReference); + constructor(properties?: google.protobuf.IEnumDescriptorProto); - /** ResourceReference type. */ - public type: string; + /** EnumDescriptorProto name. */ + public name: string; - /** ResourceReference childType. */ - public childType: 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 ResourceReference instance using the specified properties. + * Creates a new EnumDescriptorProto instance using the specified properties. * @param [properties] Properties to set - * @returns ResourceReference instance + * @returns EnumDescriptorProto instance */ - public static create(properties?: google.api.IResourceReference): google.api.ResourceReference; + public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto; /** - * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. - * @param message ResourceReference message or plain object to encode + * 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.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IEnumDescriptorProto, 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 + * 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.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResourceReference message from the specified reader or buffer. + * 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 ResourceReference + * @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.api.ResourceReference; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto; /** - * Decodes a ResourceReference message from the specified reader or buffer, length delimited. + * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResourceReference + * @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.api.ResourceReference; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto; /** - * Verifies a ResourceReference message. + * 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 a ResourceReference message from a plain object. Also converts values to their respective internal types. + * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResourceReference + * @returns EnumDescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.api.ResourceReference; + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto; /** - * Creates a plain object from a ResourceReference message. Also converts values to other types if specified. - * @param message ResourceReference + * 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.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResourceReference to JSON. + * Converts this EnumDescriptorProto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - } - /** Namespace protobuf. */ - namespace protobuf { + namespace EnumDescriptorProto { - /** Properties of a FileDescriptorSet. */ - interface IFileDescriptorSet { + /** Properties of an EnumReservedRange. */ + interface IEnumReservedRange { - /** FileDescriptorSet file */ - file?: (google.protobuf.IFileDescriptorProto[]|null); + /** 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 }; + } } - /** Represents a FileDescriptorSet. */ - class FileDescriptorSet implements IFileDescriptorSet { + /** 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 FileDescriptorSet. + * Constructs a new EnumValueDescriptorProto. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IFileDescriptorSet); + constructor(properties?: google.protobuf.IEnumValueDescriptorProto); + + /** EnumValueDescriptorProto name. */ + public name: string; + + /** EnumValueDescriptorProto number. */ + public number: number; - /** FileDescriptorSet file. */ - public file: google.protobuf.IFileDescriptorProto[]; + /** EnumValueDescriptorProto options. */ + public options?: (google.protobuf.IEnumValueOptions|null); /** - * Creates a new FileDescriptorSet instance using the specified properties. + * Creates a new EnumValueDescriptorProto instance using the specified properties. * @param [properties] Properties to set - * @returns FileDescriptorSet instance + * @returns EnumValueDescriptorProto instance */ - public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet; + public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto; /** - * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. - * @param message FileDescriptorSet message or plain object to encode + * 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.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IEnumValueDescriptorProto, 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 + * 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.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FileDescriptorSet message from the specified reader or buffer. + * 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 FileDescriptorSet + * @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.FileDescriptorSet; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto; /** - * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FileDescriptorSet + * @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.FileDescriptorSet; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto; /** - * Verifies a FileDescriptorSet message. + * 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 a FileDescriptorSet message from a plain object. Also converts values to their respective internal types. + * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FileDescriptorSet + * @returns EnumValueDescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet; + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto; /** - * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. - * @param message FileDescriptorSet + * 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.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FileDescriptorSet to JSON. + * Converts this EnumValueDescriptorProto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a FileDescriptorProto. */ - interface IFileDescriptorProto { + /** Properties of a ServiceDescriptorProto. */ + interface IServiceDescriptorProto { - /** FileDescriptorProto name */ + /** ServiceDescriptorProto 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); + /** ServiceDescriptorProto method */ + method?: (google.protobuf.IMethodDescriptorProto[]|null); - /** FileDescriptorProto syntax */ - syntax?: (string|null); + /** ServiceDescriptorProto options */ + options?: (google.protobuf.IServiceOptions|null); } - /** Represents a FileDescriptorProto. */ - class FileDescriptorProto implements IFileDescriptorProto { + /** Represents a ServiceDescriptorProto. */ + class ServiceDescriptorProto implements IServiceDescriptorProto { /** - * Constructs a new FileDescriptorProto. + * Constructs a new ServiceDescriptorProto. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IFileDescriptorProto); + constructor(properties?: google.protobuf.IServiceDescriptorProto); - /** FileDescriptorProto name. */ + /** ServiceDescriptorProto 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); + /** ServiceDescriptorProto method. */ + public method: google.protobuf.IMethodDescriptorProto[]; - /** FileDescriptorProto syntax. */ - public syntax: string; + /** ServiceDescriptorProto options. */ + public options?: (google.protobuf.IServiceOptions|null); /** - * Creates a new FileDescriptorProto instance using the specified properties. + * Creates a new ServiceDescriptorProto instance using the specified properties. * @param [properties] Properties to set - * @returns FileDescriptorProto instance + * @returns ServiceDescriptorProto instance */ - public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto; + public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto; /** - * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. - * @param message FileDescriptorProto message or plain object to encode + * 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.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IServiceDescriptorProto, 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 + * 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.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FileDescriptorProto message from the specified reader or buffer. + * 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 FileDescriptorProto + * @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.FileDescriptorProto; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto; /** - * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FileDescriptorProto + * @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.FileDescriptorProto; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto; /** - * Verifies a FileDescriptorProto message. + * 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 FileDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FileDescriptorProto + * @returns ServiceDescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto; + public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto; /** - * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. - * @param message FileDescriptorProto + * 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.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FileDescriptorProto to JSON. + * Converts this ServiceDescriptorProto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DescriptorProto. */ - interface IDescriptorProto { + /** Properties of a MethodDescriptorProto. */ + interface IMethodDescriptorProto { - /** DescriptorProto name */ + /** MethodDescriptorProto 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); + /** MethodDescriptorProto inputType */ + inputType?: (string|null); - /** DescriptorProto oneofDecl */ - oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null); + /** MethodDescriptorProto outputType */ + outputType?: (string|null); - /** DescriptorProto options */ - options?: (google.protobuf.IMessageOptions|null); + /** MethodDescriptorProto options */ + options?: (google.protobuf.IMethodOptions|null); - /** DescriptorProto reservedRange */ - reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null); + /** MethodDescriptorProto clientStreaming */ + clientStreaming?: (boolean|null); - /** DescriptorProto reservedName */ - reservedName?: (string[]|null); + /** MethodDescriptorProto serverStreaming */ + serverStreaming?: (boolean|null); } - /** Represents a DescriptorProto. */ - class DescriptorProto implements IDescriptorProto { + /** Represents a MethodDescriptorProto. */ + class MethodDescriptorProto implements IMethodDescriptorProto { /** - * Constructs a new DescriptorProto. + * Constructs a new MethodDescriptorProto. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IDescriptorProto); + constructor(properties?: google.protobuf.IMethodDescriptorProto); - /** DescriptorProto name. */ + /** MethodDescriptorProto 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[]; + /** MethodDescriptorProto inputType. */ + public inputType: string; - /** DescriptorProto oneofDecl. */ - public oneofDecl: google.protobuf.IOneofDescriptorProto[]; + /** MethodDescriptorProto outputType. */ + public outputType: string; - /** DescriptorProto options. */ - public options?: (google.protobuf.IMessageOptions|null); + /** MethodDescriptorProto options. */ + public options?: (google.protobuf.IMethodOptions|null); - /** DescriptorProto reservedRange. */ - public reservedRange: google.protobuf.DescriptorProto.IReservedRange[]; + /** MethodDescriptorProto clientStreaming. */ + public clientStreaming: boolean; - /** DescriptorProto reservedName. */ - public reservedName: string[]; + /** MethodDescriptorProto serverStreaming. */ + public serverStreaming: boolean; /** - * Creates a new DescriptorProto instance using the specified properties. + * Creates a new MethodDescriptorProto instance using the specified properties. * @param [properties] Properties to set - * @returns DescriptorProto instance + * @returns MethodDescriptorProto instance */ - public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto; + public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto; /** - * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. - * @param message DescriptorProto message or plain object to encode + * 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.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IMethodDescriptorProto, 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 + * 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.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DescriptorProto message from the specified reader or buffer. + * 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 DescriptorProto + * @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.DescriptorProto; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto; /** - * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DescriptorProto + * @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.DescriptorProto; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto; /** - * Verifies a DescriptorProto message. + * 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 DescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DescriptorProto + * @returns MethodDescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto; + public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto; /** - * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. - * @param message DescriptorProto + * 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.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DescriptorProto to JSON. + * Converts this MethodDescriptorProto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace DescriptorProto { + /** Properties of a FileOptions. */ + interface IFileOptions { - /** Properties of an ExtensionRange. */ - interface IExtensionRange { + /** FileOptions javaPackage */ + javaPackage?: (string|null); - /** ExtensionRange start */ - start?: (number|null); + /** FileOptions javaOuterClassname */ + javaOuterClassname?: (string|null); - /** ExtensionRange end */ - end?: (number|null); + /** FileOptions javaMultipleFiles */ + javaMultipleFiles?: (boolean|null); - /** ExtensionRange options */ - options?: (google.protobuf.IExtensionRangeOptions|null); - } + /** FileOptions javaGenerateEqualsAndHash */ + javaGenerateEqualsAndHash?: (boolean|null); - /** Represents an ExtensionRange. */ - class ExtensionRange implements IExtensionRange { + /** FileOptions javaStringCheckUtf8 */ + javaStringCheckUtf8?: (boolean|null); - /** - * Constructs a new ExtensionRange. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange); + /** FileOptions optimizeFor */ + optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null); - /** ExtensionRange start. */ - public start: number; + /** FileOptions goPackage */ + goPackage?: (string|null); - /** ExtensionRange end. */ - public end: number; + /** FileOptions ccGenericServices */ + ccGenericServices?: (boolean|null); - /** ExtensionRange options. */ - public options?: (google.protobuf.IExtensionRangeOptions|null); + /** FileOptions javaGenericServices */ + javaGenericServices?: (boolean|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; + /** FileOptions pyGenericServices */ + pyGenericServices?: (boolean|null); - /** - * 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; + /** FileOptions phpGenericServices */ + phpGenericServices?: (boolean|null); - /** - * 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; + /** FileOptions deprecated */ + deprecated?: (boolean|null); - /** - * 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; + /** FileOptions ccEnableArenas */ + ccEnableArenas?: (boolean|null); - /** - * 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; + /** FileOptions objcClassPrefix */ + objcClassPrefix?: (string|null); - /** - * 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); + /** FileOptions csharpNamespace */ + csharpNamespace?: (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; + /** FileOptions swiftPrefix */ + swiftPrefix?: (string|null); - /** - * 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 }; + /** FileOptions phpClassPrefix */ + phpClassPrefix?: (string|null); - /** - * Converts this ExtensionRange to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** FileOptions phpNamespace */ + phpNamespace?: (string|null); - /** Properties of a ReservedRange. */ - interface IReservedRange { + /** FileOptions phpMetadataNamespace */ + phpMetadataNamespace?: (string|null); - /** ReservedRange start */ - start?: (number|null); + /** FileOptions rubyPackage */ + rubyPackage?: (string|null); - /** ReservedRange end */ - end?: (number|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; - /** Represents a ReservedRange. */ - class ReservedRange implements IReservedRange { + /** FileOptions rubyPackage. */ + public rubyPackage: string; - /** - * Constructs a new ReservedRange. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.DescriptorProto.IReservedRange); + /** FileOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - /** ReservedRange start. */ - public start: number; + /** + * 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; - /** ReservedRange end. */ - public end: number; + /** + * 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; - /** - * 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 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; - /** - * 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; + /** + * 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; - /** - * 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 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; - /** - * 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; + /** + * 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); - /** - * 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; + /** + * 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; - /** - * 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 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 }; - /** - * 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; + /** + * Converts this FileOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * 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 }; + namespace FileOptions { - /** - * Converts this ReservedRange to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** OptimizeMode enum. */ + enum OptimizeMode { + SPEED = 1, + CODE_SIZE = 2, + LITE_RUNTIME = 3 } } - /** Properties of an ExtensionRangeOptions. */ - interface IExtensionRangeOptions { + /** Properties of a MessageOptions. */ + interface IMessageOptions { - /** ExtensionRangeOptions uninterpretedOption */ + /** MessageOptions messageSetWireFormat */ + messageSetWireFormat?: (boolean|null); + + /** MessageOptions noStandardDescriptorAccessor */ + noStandardDescriptorAccessor?: (boolean|null); + + /** MessageOptions deprecated */ + deprecated?: (boolean|null); + + /** MessageOptions mapEntry */ + mapEntry?: (boolean|null); + + /** MessageOptions uninterpretedOption */ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** MessageOptions .google.api.resource */ + ".google.api.resource"?: (google.api.IResourceDescriptor|null); } - /** Represents an ExtensionRangeOptions. */ - class ExtensionRangeOptions implements IExtensionRangeOptions { + /** Represents a MessageOptions. */ + class MessageOptions implements IMessageOptions { /** - * Constructs a new ExtensionRangeOptions. + * Constructs a new MessageOptions. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IExtensionRangeOptions); + constructor(properties?: google.protobuf.IMessageOptions); - /** ExtensionRangeOptions uninterpretedOption. */ + /** MessageOptions messageSetWireFormat. */ + public messageSetWireFormat: boolean; + + /** MessageOptions noStandardDescriptorAccessor. */ + public noStandardDescriptorAccessor: boolean; + + /** MessageOptions deprecated. */ + public deprecated: boolean; + + /** MessageOptions mapEntry. */ + public mapEntry: boolean; + + /** MessageOptions uninterpretedOption. */ public uninterpretedOption: google.protobuf.IUninterpretedOption[]; /** - * Creates a new ExtensionRangeOptions instance using the specified properties. + * Creates a new MessageOptions instance using the specified properties. * @param [properties] Properties to set - * @returns ExtensionRangeOptions instance + * @returns MessageOptions instance */ - public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions; + public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions; /** - * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. - * @param message ExtensionRangeOptions message or plain object to encode + * 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.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IMessageOptions, 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 + * 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.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExtensionRangeOptions message from the specified reader or buffer. + * 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 ExtensionRangeOptions + * @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.ExtensionRangeOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions; /** - * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited. + * Decodes a MessageOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExtensionRangeOptions + * @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.ExtensionRangeOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions; /** - * Verifies an ExtensionRangeOptions message. + * 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 an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types. + * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExtensionRangeOptions + * @returns MessageOptions */ - public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions; /** - * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified. - * @param message ExtensionRangeOptions + * 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.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExtensionRangeOptions to JSON. + * Converts this MessageOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a FieldDescriptorProto. */ - interface IFieldDescriptorProto { - - /** FieldDescriptorProto name */ - name?: (string|null); - - /** FieldDescriptorProto number */ - number?: (number|null); + /** Properties of a FieldOptions. */ + interface IFieldOptions { - /** FieldDescriptorProto label */ - label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null); + /** FieldOptions ctype */ + ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null); - /** FieldDescriptorProto type */ - type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null); + /** FieldOptions packed */ + packed?: (boolean|null); - /** FieldDescriptorProto typeName */ - typeName?: (string|null); + /** FieldOptions jstype */ + jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null); - /** FieldDescriptorProto extendee */ - extendee?: (string|null); + /** FieldOptions lazy */ + lazy?: (boolean|null); - /** FieldDescriptorProto defaultValue */ - defaultValue?: (string|null); + /** FieldOptions deprecated */ + deprecated?: (boolean|null); - /** FieldDescriptorProto oneofIndex */ - oneofIndex?: (number|null); + /** FieldOptions weak */ + weak?: (boolean|null); - /** FieldDescriptorProto jsonName */ - jsonName?: (string|null); + /** FieldOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - /** FieldDescriptorProto options */ - options?: (google.protobuf.IFieldOptions|null); + /** FieldOptions .google.api.fieldBehavior */ + ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null); - /** FieldDescriptorProto proto3Optional */ - proto3Optional?: (boolean|null); + /** FieldOptions .google.api.resourceReference */ + ".google.api.resourceReference"?: (google.api.IResourceReference|null); } - /** Represents a FieldDescriptorProto. */ - class FieldDescriptorProto implements IFieldDescriptorProto { + /** Represents a FieldOptions. */ + class FieldOptions implements IFieldOptions { /** - * Constructs a new FieldDescriptorProto. + * Constructs a new FieldOptions. * @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); + constructor(properties?: google.protobuf.IFieldOptions); - /** FieldDescriptorProto typeName. */ - public typeName: string; + /** FieldOptions ctype. */ + public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType); - /** FieldDescriptorProto extendee. */ - public extendee: string; + /** FieldOptions packed. */ + public packed: boolean; - /** FieldDescriptorProto defaultValue. */ - public defaultValue: string; + /** FieldOptions jstype. */ + public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType); - /** FieldDescriptorProto oneofIndex. */ - public oneofIndex: number; + /** FieldOptions lazy. */ + public lazy: boolean; - /** FieldDescriptorProto jsonName. */ - public jsonName: string; + /** FieldOptions deprecated. */ + public deprecated: boolean; - /** FieldDescriptorProto options. */ - public options?: (google.protobuf.IFieldOptions|null); + /** FieldOptions weak. */ + public weak: boolean; - /** FieldDescriptorProto proto3Optional. */ - public proto3Optional: boolean; + /** FieldOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; /** - * Creates a new FieldDescriptorProto instance using the specified properties. + * Creates a new FieldOptions instance using the specified properties. * @param [properties] Properties to set - * @returns FieldDescriptorProto instance + * @returns FieldOptions instance */ - public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto; + public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions; /** - * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. - * @param message FieldDescriptorProto message or plain object to encode + * 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.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IFieldOptions, 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 + * 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.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FieldDescriptorProto message from the specified reader or buffer. + * 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 FieldDescriptorProto + * @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.FieldDescriptorProto; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions; /** - * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a FieldOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FieldDescriptorProto + * @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.FieldDescriptorProto; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions; /** - * Verifies a FieldDescriptorProto message. + * 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 FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FieldDescriptorProto + * @returns FieldOptions */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto; + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions; /** - * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. - * @param message FieldDescriptorProto + * 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.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FieldDescriptorProto to JSON. + * Converts this FieldOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace FieldDescriptorProto { + namespace FieldOptions { - /** 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 + /** CType enum. */ + enum CType { + STRING = 0, + CORD = 1, + STRING_PIECE = 2 } - /** Label enum. */ - enum Label { - LABEL_OPTIONAL = 1, - LABEL_REQUIRED = 2, - LABEL_REPEATED = 3 + /** JSType enum. */ + enum JSType { + JS_NORMAL = 0, + JS_STRING = 1, + JS_NUMBER = 2 } } - /** Properties of an OneofDescriptorProto. */ - interface IOneofDescriptorProto { - - /** OneofDescriptorProto name */ - name?: (string|null); + /** Properties of an OneofOptions. */ + interface IOneofOptions { - /** OneofDescriptorProto options */ - options?: (google.protobuf.IOneofOptions|null); + /** OneofOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); } - /** Represents an OneofDescriptorProto. */ - class OneofDescriptorProto implements IOneofDescriptorProto { + /** Represents an OneofOptions. */ + class OneofOptions implements IOneofOptions { /** - * Constructs a new OneofDescriptorProto. + * Constructs a new OneofOptions. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IOneofDescriptorProto); - - /** OneofDescriptorProto name. */ - public name: string; + constructor(properties?: google.protobuf.IOneofOptions); - /** OneofDescriptorProto options. */ - public options?: (google.protobuf.IOneofOptions|null); + /** OneofOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; /** - * Creates a new OneofDescriptorProto instance using the specified properties. + * Creates a new OneofOptions instance using the specified properties. * @param [properties] Properties to set - * @returns OneofDescriptorProto instance + * @returns OneofOptions instance */ - public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto; + public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions; /** - * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. - * @param message OneofDescriptorProto message or plain object to encode + * 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.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IOneofOptions, 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 + * 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.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * 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 OneofDescriptorProto + * @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.OneofDescriptorProto; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions; /** - * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes an OneofOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns OneofDescriptorProto + * @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.OneofDescriptorProto; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions; /** - * Verifies an OneofDescriptorProto message. + * 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 OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns OneofDescriptorProto + * @returns OneofOptions */ - public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto; + public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions; /** - * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. - * @param message OneofDescriptorProto + * 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.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this OneofDescriptorProto to JSON. + * Converts this OneofOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an EnumDescriptorProto. */ - interface IEnumDescriptorProto { - - /** EnumDescriptorProto name */ - name?: (string|null); - - /** EnumDescriptorProto value */ - value?: (google.protobuf.IEnumValueDescriptorProto[]|null); + /** Properties of an EnumOptions. */ + interface IEnumOptions { - /** EnumDescriptorProto options */ - options?: (google.protobuf.IEnumOptions|null); + /** EnumOptions allowAlias */ + allowAlias?: (boolean|null); - /** EnumDescriptorProto reservedRange */ - reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null); + /** EnumOptions deprecated */ + deprecated?: (boolean|null); - /** EnumDescriptorProto reservedName */ - reservedName?: (string[]|null); + /** EnumOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); } - /** Represents an EnumDescriptorProto. */ - class EnumDescriptorProto implements IEnumDescriptorProto { + /** Represents an EnumOptions. */ + class EnumOptions implements IEnumOptions { /** - * Constructs a new EnumDescriptorProto. + * Constructs a new EnumOptions. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IEnumDescriptorProto); - - /** EnumDescriptorProto name. */ - public name: string; - - /** EnumDescriptorProto value. */ - public value: google.protobuf.IEnumValueDescriptorProto[]; + constructor(properties?: google.protobuf.IEnumOptions); - /** EnumDescriptorProto options. */ - public options?: (google.protobuf.IEnumOptions|null); + /** EnumOptions allowAlias. */ + public allowAlias: boolean; - /** EnumDescriptorProto reservedRange. */ - public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[]; + /** EnumOptions deprecated. */ + public deprecated: boolean; - /** EnumDescriptorProto reservedName. */ - public reservedName: string[]; + /** EnumOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; /** - * Creates a new EnumDescriptorProto instance using the specified properties. + * Creates a new EnumOptions instance using the specified properties. * @param [properties] Properties to set - * @returns EnumDescriptorProto instance + * @returns EnumOptions instance */ - public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto; + public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions; /** - * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. - * @param message EnumDescriptorProto message or plain object to encode + * 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.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IEnumOptions, 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 + * 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.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EnumDescriptorProto message from the specified reader or buffer. + * 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 EnumDescriptorProto + * @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.EnumDescriptorProto; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions; /** - * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes an EnumOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EnumDescriptorProto + * @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.EnumDescriptorProto; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions; /** - * Verifies an EnumDescriptorProto message. + * 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 EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EnumDescriptorProto + * @returns EnumOptions */ - public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto; + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions; /** - * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. - * @param message EnumDescriptorProto + * 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.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EnumDescriptorProto to JSON. + * Converts this EnumOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - 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 }; - } - } - - /** Properties of an EnumValueDescriptorProto. */ - interface IEnumValueDescriptorProto { - - /** EnumValueDescriptorProto name */ - name?: (string|null); + /** Properties of an EnumValueOptions. */ + interface IEnumValueOptions { - /** EnumValueDescriptorProto number */ - number?: (number|null); + /** EnumValueOptions deprecated */ + deprecated?: (boolean|null); - /** EnumValueDescriptorProto options */ - options?: (google.protobuf.IEnumValueOptions|null); + /** EnumValueOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); } - /** Represents an EnumValueDescriptorProto. */ - class EnumValueDescriptorProto implements IEnumValueDescriptorProto { + /** Represents an EnumValueOptions. */ + class EnumValueOptions implements IEnumValueOptions { /** - * Constructs a new EnumValueDescriptorProto. + * Constructs a new EnumValueOptions. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IEnumValueDescriptorProto); - - /** EnumValueDescriptorProto name. */ - public name: string; + constructor(properties?: google.protobuf.IEnumValueOptions); - /** EnumValueDescriptorProto number. */ - public number: number; + /** EnumValueOptions deprecated. */ + public deprecated: boolean; - /** EnumValueDescriptorProto options. */ - public options?: (google.protobuf.IEnumValueOptions|null); + /** EnumValueOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; /** - * Creates a new EnumValueDescriptorProto instance using the specified properties. + * Creates a new EnumValueOptions instance using the specified properties. * @param [properties] Properties to set - * @returns EnumValueDescriptorProto instance + * @returns EnumValueOptions instance */ - public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto; + public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions; /** - * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. - * @param message EnumValueDescriptorProto message or plain object to encode + * 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.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IEnumValueOptions, 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 + * 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.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. + * 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 EnumValueDescriptorProto + * @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.EnumValueDescriptorProto; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions; /** - * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EnumValueDescriptorProto + * @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.EnumValueDescriptorProto; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions; /** - * Verifies an EnumValueDescriptorProto message. + * 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 EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EnumValueDescriptorProto + * @returns EnumValueOptions */ - public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto; + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions; /** - * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. - * @param message EnumValueDescriptorProto + * 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.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EnumValueDescriptorProto to JSON. + * Converts this EnumValueOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ServiceDescriptorProto. */ - interface IServiceDescriptorProto { + /** Properties of a ServiceOptions. */ + interface IServiceOptions { - /** ServiceDescriptorProto name */ - name?: (string|null); + /** ServiceOptions deprecated */ + deprecated?: (boolean|null); + + /** ServiceOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - /** ServiceDescriptorProto method */ - method?: (google.protobuf.IMethodDescriptorProto[]|null); + /** ServiceOptions .google.api.defaultHost */ + ".google.api.defaultHost"?: (string|null); - /** ServiceDescriptorProto options */ - options?: (google.protobuf.IServiceOptions|null); + /** ServiceOptions .google.api.oauthScopes */ + ".google.api.oauthScopes"?: (string|null); } - /** Represents a ServiceDescriptorProto. */ - class ServiceDescriptorProto implements IServiceDescriptorProto { + /** Represents a ServiceOptions. */ + class ServiceOptions implements IServiceOptions { /** - * Constructs a new ServiceDescriptorProto. + * Constructs a new ServiceOptions. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IServiceDescriptorProto); - - /** ServiceDescriptorProto name. */ - public name: string; + constructor(properties?: google.protobuf.IServiceOptions); - /** ServiceDescriptorProto method. */ - public method: google.protobuf.IMethodDescriptorProto[]; + /** ServiceOptions deprecated. */ + public deprecated: boolean; - /** ServiceDescriptorProto options. */ - public options?: (google.protobuf.IServiceOptions|null); + /** ServiceOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; /** - * Creates a new ServiceDescriptorProto instance using the specified properties. + * Creates a new ServiceOptions instance using the specified properties. * @param [properties] Properties to set - * @returns ServiceDescriptorProto instance + * @returns ServiceOptions instance */ - public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto; + public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions; /** - * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. - * @param message ServiceDescriptorProto message or plain object to encode + * 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.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IServiceOptions, 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 + * 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.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * 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 ServiceDescriptorProto + * @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.ServiceDescriptorProto; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions; /** - * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ServiceDescriptorProto + * @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.ServiceDescriptorProto; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions; /** - * Verifies a ServiceDescriptorProto message. + * 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 ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ServiceDescriptorProto + * @returns ServiceOptions */ - public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto; + public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions; /** - * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. - * @param message ServiceDescriptorProto + * 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.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ServiceDescriptorProto to JSON. + * Converts this ServiceOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MethodDescriptorProto. */ - interface IMethodDescriptorProto { + /** Properties of a MethodOptions. */ + interface IMethodOptions { - /** MethodDescriptorProto name */ - name?: (string|null); + /** MethodOptions deprecated */ + deprecated?: (boolean|null); - /** MethodDescriptorProto inputType */ - inputType?: (string|null); + /** MethodOptions idempotencyLevel */ + idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null); - /** MethodDescriptorProto outputType */ - outputType?: (string|null); + /** MethodOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - /** MethodDescriptorProto options */ - options?: (google.protobuf.IMethodOptions|null); + /** MethodOptions .google.api.http */ + ".google.api.http"?: (google.api.IHttpRule|null); - /** MethodDescriptorProto clientStreaming */ - clientStreaming?: (boolean|null); + /** MethodOptions .google.api.methodSignature */ + ".google.api.methodSignature"?: (string[]|null); - /** MethodDescriptorProto serverStreaming */ - serverStreaming?: (boolean|null); + /** MethodOptions .google.longrunning.operationInfo */ + ".google.longrunning.operationInfo"?: (google.longrunning.IOperationInfo|null); } - /** Represents a MethodDescriptorProto. */ - class MethodDescriptorProto implements IMethodDescriptorProto { + /** Represents a MethodOptions. */ + class MethodOptions implements IMethodOptions { /** - * Constructs a new MethodDescriptorProto. + * Constructs a new MethodOptions. * @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; + constructor(properties?: google.protobuf.IMethodOptions); - /** MethodDescriptorProto options. */ - public options?: (google.protobuf.IMethodOptions|null); + /** MethodOptions deprecated. */ + public deprecated: boolean; - /** MethodDescriptorProto clientStreaming. */ - public clientStreaming: boolean; + /** MethodOptions idempotencyLevel. */ + public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel); - /** MethodDescriptorProto serverStreaming. */ - public serverStreaming: boolean; + /** MethodOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; /** - * Creates a new MethodDescriptorProto instance using the specified properties. + * Creates a new MethodOptions instance using the specified properties. * @param [properties] Properties to set - * @returns MethodDescriptorProto instance + * @returns MethodOptions instance */ - public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto; + public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions; /** - * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. - * @param message MethodDescriptorProto message or plain object to encode + * 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.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IMethodOptions, 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 + * 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.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MethodDescriptorProto message from the specified reader or buffer. + * 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 MethodDescriptorProto + * @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.MethodDescriptorProto; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions; /** - * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a MethodOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MethodDescriptorProto + * @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.MethodDescriptorProto; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions; /** - * Verifies a MethodDescriptorProto message. + * 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 MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a MethodOptions 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 + * @returns MethodOptions */ - public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions; /** - * Converts this MethodDescriptorProto to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** 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 { + * 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 }; /** - * Constructs a new FileOptions. - * @param [properties] Properties to set + * Converts this MethodOptions to JSON. + * @returns JSON object */ - constructor(properties?: google.protobuf.IFileOptions); - - /** FileOptions javaPackage. */ - public javaPackage: string; - - /** FileOptions javaOuterClassname. */ - public javaOuterClassname: string; + public toJSON(): { [k: string]: any }; + } - /** FileOptions javaMultipleFiles. */ - public javaMultipleFiles: boolean; + namespace MethodOptions { - /** FileOptions javaGenerateEqualsAndHash. */ - public javaGenerateEqualsAndHash: boolean; + /** IdempotencyLevel enum. */ + enum IdempotencyLevel { + IDEMPOTENCY_UNKNOWN = 0, + NO_SIDE_EFFECTS = 1, + IDEMPOTENT = 2 + } + } - /** FileOptions javaStringCheckUtf8. */ - public javaStringCheckUtf8: boolean; + /** Properties of an UninterpretedOption. */ + interface IUninterpretedOption { - /** FileOptions optimizeFor. */ - public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode); + /** UninterpretedOption name */ + name?: (google.protobuf.UninterpretedOption.INamePart[]|null); - /** FileOptions goPackage. */ - public goPackage: string; + /** UninterpretedOption identifierValue */ + identifierValue?: (string|null); - /** FileOptions ccGenericServices. */ - public ccGenericServices: boolean; + /** UninterpretedOption positiveIntValue */ + positiveIntValue?: (number|Long|string|null); - /** FileOptions javaGenericServices. */ - public javaGenericServices: boolean; + /** UninterpretedOption negativeIntValue */ + negativeIntValue?: (number|Long|string|null); - /** FileOptions pyGenericServices. */ - public pyGenericServices: boolean; + /** UninterpretedOption doubleValue */ + doubleValue?: (number|null); - /** FileOptions phpGenericServices. */ - public phpGenericServices: boolean; + /** UninterpretedOption stringValue */ + stringValue?: (Uint8Array|string|null); - /** FileOptions deprecated. */ - public deprecated: boolean; + /** UninterpretedOption aggregateValue */ + aggregateValue?: (string|null); + } - /** FileOptions ccEnableArenas. */ - public ccEnableArenas: boolean; + /** Represents an UninterpretedOption. */ + class UninterpretedOption implements IUninterpretedOption { - /** FileOptions objcClassPrefix. */ - public objcClassPrefix: string; + /** + * Constructs a new UninterpretedOption. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IUninterpretedOption); - /** FileOptions csharpNamespace. */ - public csharpNamespace: string; + /** UninterpretedOption name. */ + public name: google.protobuf.UninterpretedOption.INamePart[]; - /** FileOptions swiftPrefix. */ - public swiftPrefix: string; + /** UninterpretedOption identifierValue. */ + public identifierValue: string; - /** FileOptions phpClassPrefix. */ - public phpClassPrefix: string; + /** UninterpretedOption positiveIntValue. */ + public positiveIntValue: (number|Long|string); - /** FileOptions phpNamespace. */ - public phpNamespace: string; + /** UninterpretedOption negativeIntValue. */ + public negativeIntValue: (number|Long|string); - /** FileOptions phpMetadataNamespace. */ - public phpMetadataNamespace: string; + /** UninterpretedOption doubleValue. */ + public doubleValue: number; - /** FileOptions rubyPackage. */ - public rubyPackage: string; + /** UninterpretedOption stringValue. */ + public stringValue: (Uint8Array|string); - /** FileOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** UninterpretedOption aggregateValue. */ + public aggregateValue: string; /** - * Creates a new FileOptions instance using the specified properties. + * Creates a new UninterpretedOption instance using the specified properties. * @param [properties] Properties to set - * @returns FileOptions instance + * @returns UninterpretedOption instance */ - public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions; + public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption; /** - * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. - * @param message FileOptions message or plain object to encode + * 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.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IUninterpretedOption, 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 + * 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.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FileOptions message from the specified reader or buffer. + * 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 FileOptions + * @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.FileOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption; /** - * Decodes a FileOptions message from the specified reader or buffer, length delimited. + * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FileOptions + * @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.FileOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption; /** - * Verifies a FileOptions message. + * 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 a FileOptions message from a plain object. Also converts values to their respective internal types. + * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FileOptions + * @returns UninterpretedOption */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption; /** - * Creates a plain object from a FileOptions message. Also converts values to other types if specified. - * @param message FileOptions + * 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.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FileOptions to JSON. + * Converts this UninterpretedOption to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace FileOptions { + namespace UninterpretedOption { - /** OptimizeMode enum. */ - enum OptimizeMode { - SPEED = 1, - CODE_SIZE = 2, - LITE_RUNTIME = 3 + /** Properties of a NamePart. */ + interface INamePart { + + /** NamePart namePart */ + namePart: string; + + /** NamePart isExtension */ + isExtension: boolean; } - } - /** Properties of a MessageOptions. */ - interface IMessageOptions { + /** Represents a NamePart. */ + class NamePart implements INamePart { - /** MessageOptions messageSetWireFormat */ - messageSetWireFormat?: (boolean|null); + /** + * Constructs a new NamePart. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.UninterpretedOption.INamePart); - /** MessageOptions noStandardDescriptorAccessor */ - noStandardDescriptorAccessor?: (boolean|null); + /** NamePart namePart. */ + public namePart: string; - /** MessageOptions deprecated */ - deprecated?: (boolean|null); + /** NamePart isExtension. */ + public isExtension: boolean; - /** MessageOptions mapEntry */ - mapEntry?: (boolean|null); + /** + * 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; - /** MessageOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + /** + * 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 }; + } + } - /** MessageOptions .google.api.resource */ - ".google.api.resource"?: (google.api.IResourceDescriptor|null); + /** Properties of a SourceCodeInfo. */ + interface ISourceCodeInfo { + + /** SourceCodeInfo location */ + location?: (google.protobuf.SourceCodeInfo.ILocation[]|null); } - /** Represents a MessageOptions. */ - class MessageOptions implements IMessageOptions { + /** Represents a SourceCodeInfo. */ + class SourceCodeInfo implements ISourceCodeInfo { /** - * Constructs a new MessageOptions. + * Constructs a new SourceCodeInfo. * @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; + constructor(properties?: google.protobuf.ISourceCodeInfo); - /** MessageOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** SourceCodeInfo location. */ + public location: google.protobuf.SourceCodeInfo.ILocation[]; /** - * Creates a new MessageOptions instance using the specified properties. + * Creates a new SourceCodeInfo instance using the specified properties. * @param [properties] Properties to set - * @returns MessageOptions instance + * @returns SourceCodeInfo instance */ - public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions; + public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo; /** - * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. - * @param message MessageOptions message or plain object to encode + * 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.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.ISourceCodeInfo, 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 + * 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.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MessageOptions message from the specified reader or buffer. + * 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 MessageOptions + * @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.MessageOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo; /** - * Decodes a MessageOptions message from the specified reader or buffer, length delimited. + * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MessageOptions + * @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.MessageOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo; /** - * Verifies a MessageOptions message. + * 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 MessageOptions message from a plain object. Also converts values to their respective internal types. + * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MessageOptions + * @returns SourceCodeInfo */ - public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo; /** - * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. - * @param message MessageOptions + * 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.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MessageOptions to JSON. + * Converts this SourceCodeInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a FieldOptions. */ - interface IFieldOptions { + namespace SourceCodeInfo { - /** FieldOptions ctype */ - ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null); + /** Properties of a Location. */ + interface ILocation { - /** FieldOptions packed */ - packed?: (boolean|null); + /** Location path */ + path?: (number[]|null); - /** FieldOptions jstype */ - jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null); + /** Location span */ + span?: (number[]|null); - /** FieldOptions lazy */ - lazy?: (boolean|null); + /** Location leadingComments */ + leadingComments?: (string|null); - /** FieldOptions deprecated */ - deprecated?: (boolean|null); + /** Location trailingComments */ + trailingComments?: (string|null); - /** FieldOptions weak */ - weak?: (boolean|null); + /** Location leadingDetachedComments */ + leadingDetachedComments?: (string[]|null); + } - /** FieldOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + /** Represents a Location. */ + class Location implements ILocation { - /** FieldOptions .google.api.fieldBehavior */ - ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null); + /** + * Constructs a new Location. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.SourceCodeInfo.ILocation); - /** FieldOptions .google.api.resourceReference */ - ".google.api.resourceReference"?: (google.api.IResourceReference|null); - } + /** Location path. */ + public path: number[]; - /** Represents a FieldOptions. */ - class FieldOptions implements IFieldOptions { + /** Location span. */ + public span: number[]; - /** - * Constructs a new FieldOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IFieldOptions); + /** Location leadingComments. */ + public leadingComments: string; - /** FieldOptions ctype. */ - public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType); + /** Location trailingComments. */ + public trailingComments: string; - /** FieldOptions packed. */ - public packed: boolean; + /** Location leadingDetachedComments. */ + public leadingDetachedComments: string[]; - /** FieldOptions jstype. */ - public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType); + /** + * 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; - /** FieldOptions lazy. */ - public lazy: boolean; + /** + * 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; - /** FieldOptions deprecated. */ - public deprecated: boolean; + /** + * 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; - /** FieldOptions weak. */ - public weak: boolean; + /** + * 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; - /** FieldOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** + * 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 }; + } + } + + /** Properties of a GeneratedCodeInfo. */ + interface IGeneratedCodeInfo { + + /** GeneratedCodeInfo annotation */ + annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null); + } + + /** Represents a GeneratedCodeInfo. */ + class GeneratedCodeInfo implements IGeneratedCodeInfo { /** - * Creates a new FieldOptions instance using the specified properties. + * Constructs a new GeneratedCodeInfo. * @param [properties] Properties to set - * @returns FieldOptions instance */ - public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions; + constructor(properties?: google.protobuf.IGeneratedCodeInfo); + + /** GeneratedCodeInfo annotation. */ + public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[]; /** - * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. - * @param message FieldOptions message or plain object to encode + * 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.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IGeneratedCodeInfo, 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 + * 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.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FieldOptions message from the specified reader or buffer. + * 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 FieldOptions + * @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.FieldOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo; /** - * Decodes a FieldOptions message from the specified reader or buffer, length delimited. + * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FieldOptions + * @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.FieldOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo; /** - * Verifies a FieldOptions message. + * 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 FieldOptions message from a plain object. Also converts values to their respective internal types. + * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FieldOptions + * @returns GeneratedCodeInfo */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo; /** - * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. - * @param message FieldOptions + * 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.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FieldOptions to JSON. + * Converts this GeneratedCodeInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace FieldOptions { + namespace GeneratedCodeInfo { - /** CType enum. */ - enum CType { - STRING = 0, - CORD = 1, - STRING_PIECE = 2 + /** 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); } - /** JSType enum. */ - enum JSType { - JS_NORMAL = 0, - JS_STRING = 1, - JS_NUMBER = 2 + /** 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; + + /** + * 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 }; } } - /** Properties of an OneofOptions. */ - interface IOneofOptions { + /** Properties of a Struct. */ + interface IStruct { - /** OneofOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + /** Struct fields */ + fields?: ({ [k: string]: google.protobuf.IValue }|null); } - /** Represents an OneofOptions. */ - class OneofOptions implements IOneofOptions { + /** Represents a Struct. */ + class Struct implements IStruct { /** - * Constructs a new OneofOptions. + * Constructs a new Struct. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IOneofOptions); + constructor(properties?: google.protobuf.IStruct); - /** OneofOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** Struct fields. */ + public fields: { [k: string]: google.protobuf.IValue }; /** - * Creates a new OneofOptions instance using the specified properties. + * Creates a new Struct instance using the specified properties. * @param [properties] Properties to set - * @returns OneofOptions instance + * @returns Struct instance */ - public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions; + public static create(properties?: google.protobuf.IStruct): google.protobuf.Struct; /** - * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. - * @param message OneofOptions message or plain object to encode + * 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.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IStruct, 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 + * 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.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IStruct, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an OneofOptions message from the specified reader or buffer. + * 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 OneofOptions + * @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.OneofOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Struct; /** - * Decodes an OneofOptions message from the specified reader or buffer, length delimited. + * Decodes a Struct message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns OneofOptions + * @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.OneofOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Struct; /** - * Verifies an OneofOptions message. + * 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 an OneofOptions message from a plain object. Also converts values to their respective internal types. + * Creates a Struct message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns OneofOptions + * @returns Struct */ - public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.Struct; /** - * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. - * @param message OneofOptions + * 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.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.Struct, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this OneofOptions to JSON. + * Converts this Struct to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an EnumOptions. */ - interface IEnumOptions { + /** Properties of a Value. */ + interface IValue { - /** EnumOptions allowAlias */ - allowAlias?: (boolean|null); + /** Value nullValue */ + nullValue?: (google.protobuf.NullValue|keyof typeof google.protobuf.NullValue|null); - /** EnumOptions deprecated */ - deprecated?: (boolean|null); + /** Value numberValue */ + numberValue?: (number|null); - /** EnumOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|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 an EnumOptions. */ - class EnumOptions implements IEnumOptions { + /** Represents a Value. */ + class Value implements IValue { /** - * Constructs a new EnumOptions. + * Constructs a new Value. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IEnumOptions); + constructor(properties?: google.protobuf.IValue); - /** EnumOptions allowAlias. */ - public allowAlias: boolean; + /** Value nullValue. */ + public nullValue: (google.protobuf.NullValue|keyof typeof google.protobuf.NullValue); + + /** Value numberValue. */ + public numberValue: number; + + /** Value stringValue. */ + public stringValue: string; + + /** Value boolValue. */ + public boolValue: boolean; + + /** Value structValue. */ + public structValue?: (google.protobuf.IStruct|null); - /** EnumOptions deprecated. */ - public deprecated: boolean; + /** Value listValue. */ + public listValue?: (google.protobuf.IListValue|null); - /** EnumOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** Value kind. */ + public kind?: ("nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue"); /** - * Creates a new EnumOptions instance using the specified properties. + * Creates a new Value instance using the specified properties. * @param [properties] Properties to set - * @returns EnumOptions instance + * @returns Value instance */ - public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions; + public static create(properties?: google.protobuf.IValue): google.protobuf.Value; /** - * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. - * @param message EnumOptions message or plain object to encode + * 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.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IValue, 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 + * 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.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EnumOptions message from the specified reader or buffer. + * 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 EnumOptions + * @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.EnumOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Value; /** - * Decodes an EnumOptions message from the specified reader or buffer, length delimited. + * Decodes a Value message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EnumOptions + * @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.EnumOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Value; /** - * Verifies an EnumOptions message. + * 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 an EnumOptions message from a plain object. Also converts values to their respective internal types. + * Creates a Value message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EnumOptions + * @returns Value */ - public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.Value; /** - * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. - * @param message EnumOptions + * 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.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EnumOptions to JSON. + * Converts this Value to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an EnumValueOptions. */ - interface IEnumValueOptions { + /** NullValue enum. */ + enum NullValue { + NULL_VALUE = 0 + } - /** EnumValueOptions deprecated */ - deprecated?: (boolean|null); + /** Properties of a ListValue. */ + interface IListValue { - /** EnumValueOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + /** ListValue values */ + values?: (google.protobuf.IValue[]|null); } - /** Represents an EnumValueOptions. */ - class EnumValueOptions implements IEnumValueOptions { + /** Represents a ListValue. */ + class ListValue implements IListValue { /** - * Constructs a new EnumValueOptions. + * Constructs a new ListValue. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IEnumValueOptions); - - /** EnumValueOptions deprecated. */ - public deprecated: boolean; + constructor(properties?: google.protobuf.IListValue); - /** EnumValueOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** ListValue values. */ + public values: google.protobuf.IValue[]; /** - * Creates a new EnumValueOptions instance using the specified properties. + * Creates a new ListValue instance using the specified properties. * @param [properties] Properties to set - * @returns EnumValueOptions instance + * @returns ListValue instance */ - public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions; + public static create(properties?: google.protobuf.IListValue): google.protobuf.ListValue; /** - * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. - * @param message EnumValueOptions message or plain object to encode + * 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.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IListValue, 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 + * 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.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IListValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EnumValueOptions message from the specified reader or buffer. + * 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 EnumValueOptions + * @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.EnumValueOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ListValue; /** - * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. + * Decodes a ListValue message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EnumValueOptions + * @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.EnumValueOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ListValue; /** - * Verifies an EnumValueOptions message. + * 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 an EnumValueOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ListValue message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EnumValueOptions + * @returns ListValue */ - public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.ListValue; /** - * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. - * @param message EnumValueOptions + * 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.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.ListValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EnumValueOptions to JSON. + * Converts this ListValue to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ServiceOptions. */ - interface IServiceOptions { - - /** ServiceOptions deprecated */ - deprecated?: (boolean|null); - - /** ServiceOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + /** Properties of a Timestamp. */ + interface ITimestamp { - /** ServiceOptions .google.api.defaultHost */ - ".google.api.defaultHost"?: (string|null); + /** Timestamp seconds */ + seconds?: (number|Long|string|null); - /** ServiceOptions .google.api.oauthScopes */ - ".google.api.oauthScopes"?: (string|null); + /** Timestamp nanos */ + nanos?: (number|null); } - /** Represents a ServiceOptions. */ - class ServiceOptions implements IServiceOptions { + /** Represents a Timestamp. */ + class Timestamp implements ITimestamp { /** - * Constructs a new ServiceOptions. + * Constructs a new Timestamp. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IServiceOptions); + constructor(properties?: google.protobuf.ITimestamp); - /** ServiceOptions deprecated. */ - public deprecated: boolean; + /** Timestamp seconds. */ + public seconds: (number|Long|string); - /** ServiceOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** Timestamp nanos. */ + public nanos: number; /** - * Creates a new ServiceOptions instance using the specified properties. + * Creates a new Timestamp instance using the specified properties. * @param [properties] Properties to set - * @returns ServiceOptions instance + * @returns Timestamp instance */ - public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions; + public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp; /** - * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. - * @param message ServiceOptions message or plain object to encode + * 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.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.ITimestamp, 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 + * 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.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ServiceOptions message from the specified reader or buffer. + * 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 ServiceOptions + * @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.ServiceOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp; /** - * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. + * Decodes a Timestamp message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ServiceOptions + * @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.ServiceOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp; /** - * Verifies a ServiceOptions message. + * 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 ServiceOptions message from a plain object. Also converts values to their respective internal types. + * Creates a Timestamp message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ServiceOptions + * @returns Timestamp */ - public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp; /** - * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. - * @param message ServiceOptions + * 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.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ServiceOptions to JSON. + * Converts this Timestamp to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** 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); + /** Properties of an Any. */ + interface IAny { - /** MethodOptions .google.api.methodSignature */ - ".google.api.methodSignature"?: (string[]|null); + /** Any type_url */ + type_url?: (string|null); - /** MethodOptions .google.longrunning.operationInfo */ - ".google.longrunning.operationInfo"?: (google.longrunning.IOperationInfo|null); + /** Any value */ + value?: (Uint8Array|string|null); } - /** Represents a MethodOptions. */ - class MethodOptions implements IMethodOptions { + /** Represents an Any. */ + class Any implements IAny { /** - * Constructs a new MethodOptions. + * Constructs a new Any. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IMethodOptions); - - /** MethodOptions deprecated. */ - public deprecated: boolean; + constructor(properties?: google.protobuf.IAny); - /** MethodOptions idempotencyLevel. */ - public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel); + /** Any type_url. */ + public type_url: string; - /** MethodOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** Any value. */ + public value: (Uint8Array|string); /** - * Creates a new MethodOptions instance using the specified properties. + * Creates a new Any instance using the specified properties. * @param [properties] Properties to set - * @returns MethodOptions instance + * @returns Any instance */ - public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions; + public static create(properties?: google.protobuf.IAny): google.protobuf.Any; /** - * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. - * @param message MethodOptions message or plain object to encode + * 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.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IAny, 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 + * 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.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MethodOptions message from the specified reader or buffer. + * 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 MethodOptions + * @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.MethodOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Any; /** - * Decodes a MethodOptions message from the specified reader or buffer, length delimited. + * Decodes an Any message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MethodOptions + * @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.MethodOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Any; /** - * Verifies a MethodOptions message. + * 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 a MethodOptions message from a plain object. Also converts values to their respective internal types. + * Creates an Any message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MethodOptions + * @returns Any */ - public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.Any; /** - * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. - * @param message MethodOptions + * 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.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MethodOptions to JSON. + * Converts this Any to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - 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); + /** Properties of a Duration. */ + interface IDuration { - /** UninterpretedOption stringValue */ - stringValue?: (Uint8Array|string|null); + /** Duration seconds */ + seconds?: (number|Long|string|null); - /** UninterpretedOption aggregateValue */ - aggregateValue?: (string|null); + /** Duration nanos */ + nanos?: (number|null); } - /** Represents an UninterpretedOption. */ - class UninterpretedOption implements IUninterpretedOption { + /** Represents a Duration. */ + class Duration implements IDuration { /** - * Constructs a new UninterpretedOption. + * Constructs a new Duration. * @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; + constructor(properties?: google.protobuf.IDuration); - /** UninterpretedOption stringValue. */ - public stringValue: (Uint8Array|string); + /** Duration seconds. */ + public seconds: (number|Long|string); - /** UninterpretedOption aggregateValue. */ - public aggregateValue: string; + /** Duration nanos. */ + public nanos: number; /** - * Creates a new UninterpretedOption instance using the specified properties. + * Creates a new Duration instance using the specified properties. * @param [properties] Properties to set - * @returns UninterpretedOption instance + * @returns Duration instance */ - public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption; + public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration; /** - * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. - * @param message UninterpretedOption message or plain object to encode + * 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.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IDuration, 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 + * 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.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UninterpretedOption message from the specified reader or buffer. + * 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 UninterpretedOption + * @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.UninterpretedOption; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration; /** - * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. + * Decodes a Duration message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UninterpretedOption + * @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.UninterpretedOption; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Duration; /** - * Verifies an UninterpretedOption message. + * 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 an UninterpretedOption message from a plain object. Also converts values to their respective internal types. + * Creates a Duration message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UninterpretedOption + * @returns Duration */ - public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption; + public static fromObject(object: { [k: string]: any }): google.protobuf.Duration; /** - * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. - * @param message UninterpretedOption + * 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.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UninterpretedOption to JSON. + * Converts this Duration to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - 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 }; - } - } - - /** Properties of a SourceCodeInfo. */ - interface ISourceCodeInfo { - - /** SourceCodeInfo location */ - location?: (google.protobuf.SourceCodeInfo.ILocation[]|null); + /** Properties of an Empty. */ + interface IEmpty { } - /** Represents a SourceCodeInfo. */ - class SourceCodeInfo implements ISourceCodeInfo { + /** Represents an Empty. */ + class Empty implements IEmpty { /** - * Constructs a new SourceCodeInfo. + * Constructs a new Empty. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.ISourceCodeInfo); - - /** SourceCodeInfo location. */ - public location: google.protobuf.SourceCodeInfo.ILocation[]; + constructor(properties?: google.protobuf.IEmpty); /** - * Creates a new SourceCodeInfo instance using the specified properties. + * Creates a new Empty instance using the specified properties. * @param [properties] Properties to set - * @returns SourceCodeInfo instance + * @returns Empty instance */ - public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo; + public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty; /** - * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. - * @param message SourceCodeInfo message or plain object to encode + * 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.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IEmpty, 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 + * 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.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SourceCodeInfo message from the specified reader or buffer. + * 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 SourceCodeInfo + * @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.SourceCodeInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Empty; /** - * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. + * Decodes an Empty message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SourceCodeInfo + * @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.SourceCodeInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Empty; /** - * Verifies a SourceCodeInfo message. + * 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 a SourceCodeInfo message from a plain object. Also converts values to their respective internal types. + * Creates an Empty message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SourceCodeInfo + * @returns Empty */ - public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo; + public static fromObject(object: { [k: string]: any }): google.protobuf.Empty; /** - * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. - * @param message SourceCodeInfo + * 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.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SourceCodeInfo to JSON. + * Converts this Empty to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - 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[]; + /** Properties of a FieldMask. */ + interface IFieldMask { - /** Location span. */ - public span: number[]; + /** FieldMask paths */ + paths?: (string[]|null); + } - /** Location leadingComments. */ - public leadingComments: string; + /** Represents a FieldMask. */ + class FieldMask implements IFieldMask { - /** Location trailingComments. */ - public trailingComments: string; + /** + * Constructs a new FieldMask. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFieldMask); - /** Location leadingDetachedComments. */ - public leadingDetachedComments: string[]; + /** FieldMask paths. */ + public paths: 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; + /** + * 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 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 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 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; + /** + * 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 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 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 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; + /** + * 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 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); + /** + * 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 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 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 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 }; + /** + * 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 Location to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Converts this FieldMask to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - /** Properties of a GeneratedCodeInfo. */ - interface IGeneratedCodeInfo { + /** Properties of a DoubleValue. */ + interface IDoubleValue { - /** GeneratedCodeInfo annotation */ - annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null); + /** DoubleValue value */ + value?: (number|null); } - /** Represents a GeneratedCodeInfo. */ - class GeneratedCodeInfo implements IGeneratedCodeInfo { + /** Represents a DoubleValue. */ + class DoubleValue implements IDoubleValue { /** - * Constructs a new GeneratedCodeInfo. + * Constructs a new DoubleValue. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IGeneratedCodeInfo); + constructor(properties?: google.protobuf.IDoubleValue); - /** GeneratedCodeInfo annotation. */ - public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[]; + /** DoubleValue value. */ + public value: number; /** - * Creates a new GeneratedCodeInfo instance using the specified properties. + * Creates a new DoubleValue instance using the specified properties. * @param [properties] Properties to set - * @returns GeneratedCodeInfo instance + * @returns DoubleValue instance */ - public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo; + public static create(properties?: google.protobuf.IDoubleValue): google.protobuf.DoubleValue; /** - * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. - * @param message GeneratedCodeInfo message or plain object to encode + * Encodes the specified DoubleValue message. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages. + * @param message DoubleValue 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; + public static encode(message: google.protobuf.IDoubleValue, 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 + * Encodes the specified DoubleValue message, length delimited. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages. + * @param message DoubleValue 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; + public static encodeDelimited(message: google.protobuf.IDoubleValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * Decodes a DoubleValue message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GeneratedCodeInfo + * @returns DoubleValue * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DoubleValue; /** - * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. + * Decodes a DoubleValue message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GeneratedCodeInfo + * @returns DoubleValue * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DoubleValue; /** - * Verifies a GeneratedCodeInfo message. + * Verifies a DoubleValue message. * @param message Plain 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. + * Creates a DoubleValue message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GeneratedCodeInfo + * @returns DoubleValue */ - public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo; + public static fromObject(object: { [k: string]: any }): google.protobuf.DoubleValue; /** - * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. - * @param message GeneratedCodeInfo + * Creates a plain object from a DoubleValue message. Also converts values to other types if specified. + * @param message DoubleValue * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.DoubleValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GeneratedCodeInfo to JSON. + * Converts this DoubleValue to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - 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); - } - - /** 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; - - /** - * 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 }; - } - } - - /** Properties of a Struct. */ - interface IStruct { + /** Properties of a FloatValue. */ + interface IFloatValue { - /** Struct fields */ - fields?: ({ [k: string]: google.protobuf.IValue }|null); + /** FloatValue value */ + value?: (number|null); } - /** Represents a Struct. */ - class Struct implements IStruct { + /** Represents a FloatValue. */ + class FloatValue implements IFloatValue { /** - * Constructs a new Struct. + * Constructs a new FloatValue. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IStruct); + constructor(properties?: google.protobuf.IFloatValue); - /** Struct fields. */ - public fields: { [k: string]: google.protobuf.IValue }; + /** FloatValue value. */ + public value: number; /** - * Creates a new Struct instance using the specified properties. + * Creates a new FloatValue instance using the specified properties. * @param [properties] Properties to set - * @returns Struct instance + * @returns FloatValue instance */ - public static create(properties?: google.protobuf.IStruct): google.protobuf.Struct; + public static create(properties?: google.protobuf.IFloatValue): google.protobuf.FloatValue; /** - * Encodes the specified Struct message. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages. - * @param message Struct message or plain object to encode + * Encodes the specified FloatValue message. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages. + * @param message FloatValue 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; + public static encode(message: google.protobuf.IFloatValue, 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 + * Encodes the specified FloatValue message, length delimited. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages. + * @param message FloatValue 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; + public static encodeDelimited(message: google.protobuf.IFloatValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Struct message from the specified reader or buffer. + * Decodes a FloatValue message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Struct + * @returns FloatValue * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FloatValue; /** - * Decodes a Struct message from the specified reader or buffer, length delimited. + * Decodes a FloatValue message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Struct + * @returns FloatValue * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FloatValue; /** - * Verifies a Struct message. + * Verifies a FloatValue message. * @param message Plain 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. + * Creates a FloatValue message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Struct + * @returns FloatValue */ - public static fromObject(object: { [k: string]: any }): google.protobuf.Struct; + public static fromObject(object: { [k: string]: any }): google.protobuf.FloatValue; /** - * Creates a plain object from a Struct message. Also converts values to other types if specified. - * @param message Struct + * Creates a plain object from a FloatValue message. Also converts values to other types if specified. + * @param message FloatValue * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.Struct, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.FloatValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Struct to JSON. + * Converts this FloatValue to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** 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); + /** Properties of an Int64Value. */ + interface IInt64Value { - /** Value listValue */ - listValue?: (google.protobuf.IListValue|null); + /** Int64Value value */ + value?: (number|Long|string|null); } - /** Represents a Value. */ - class Value implements IValue { + /** Represents an Int64Value. */ + class Int64Value implements IInt64Value { /** - * Constructs a new Value. + * Constructs a new Int64Value. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IValue); - - /** Value nullValue. */ - public nullValue: (google.protobuf.NullValue|keyof typeof google.protobuf.NullValue); - - /** Value numberValue. */ - public numberValue: number; - - /** Value stringValue. */ - public stringValue: string; - - /** Value boolValue. */ - public boolValue: boolean; - - /** Value structValue. */ - public structValue?: (google.protobuf.IStruct|null); + constructor(properties?: google.protobuf.IInt64Value); - /** Value listValue. */ - public listValue?: (google.protobuf.IListValue|null); - - /** Value kind. */ - public kind?: ("nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue"); + /** Int64Value value. */ + public value: (number|Long|string); /** - * Creates a new Value instance using the specified properties. + * Creates a new Int64Value instance using the specified properties. * @param [properties] Properties to set - * @returns Value instance + * @returns Int64Value instance */ - public static create(properties?: google.protobuf.IValue): google.protobuf.Value; + public static create(properties?: google.protobuf.IInt64Value): google.protobuf.Int64Value; /** - * Encodes the specified Value message. Does not implicitly {@link google.protobuf.Value.verify|verify} messages. - * @param message Value message or plain object to encode + * Encodes the specified Int64Value message. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages. + * @param message Int64Value 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; + public static encode(message: google.protobuf.IInt64Value, 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 + * Encodes the specified Int64Value message, length delimited. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages. + * @param message Int64Value 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; + public static encodeDelimited(message: google.protobuf.IInt64Value, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Value message from the specified reader or buffer. + * Decodes an Int64Value message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Value + * @returns Int64Value * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Int64Value; /** - * Decodes a Value message from the specified reader or buffer, length delimited. + * Decodes an Int64Value message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Value + * @returns Int64Value * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Int64Value; /** - * Verifies a Value message. + * Verifies an Int64Value message. * @param message Plain 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. + * Creates an Int64Value message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Value + * @returns Int64Value */ - public static fromObject(object: { [k: string]: any }): google.protobuf.Value; + public static fromObject(object: { [k: string]: any }): google.protobuf.Int64Value; /** - * Creates a plain object from a Value message. Also converts values to other types if specified. - * @param message Value + * Creates a plain object from an Int64Value message. Also converts values to other types if specified. + * @param message Int64Value * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.Int64Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Value to JSON. + * Converts this Int64Value to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** NullValue enum. */ - enum NullValue { - NULL_VALUE = 0 - } - - /** Properties of a ListValue. */ - interface IListValue { + /** Properties of a UInt64Value. */ + interface IUInt64Value { - /** ListValue values */ - values?: (google.protobuf.IValue[]|null); + /** UInt64Value value */ + value?: (number|Long|string|null); } - /** Represents a ListValue. */ - class ListValue implements IListValue { + /** Represents a UInt64Value. */ + class UInt64Value implements IUInt64Value { /** - * Constructs a new ListValue. + * Constructs a new UInt64Value. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IListValue); + constructor(properties?: google.protobuf.IUInt64Value); - /** ListValue values. */ - public values: google.protobuf.IValue[]; + /** UInt64Value value. */ + public value: (number|Long|string); /** - * Creates a new ListValue instance using the specified properties. + * Creates a new UInt64Value instance using the specified properties. * @param [properties] Properties to set - * @returns ListValue instance + * @returns UInt64Value instance */ - public static create(properties?: google.protobuf.IListValue): google.protobuf.ListValue; + public static create(properties?: google.protobuf.IUInt64Value): google.protobuf.UInt64Value; /** - * Encodes the specified ListValue message. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages. - * @param message ListValue message or plain object to encode + * Encodes the specified UInt64Value message. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages. + * @param message UInt64Value 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; + public static encode(message: google.protobuf.IUInt64Value, 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 + * Encodes the specified UInt64Value message, length delimited. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages. + * @param message UInt64Value 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; + public static encodeDelimited(message: google.protobuf.IUInt64Value, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListValue message from the specified reader or buffer. + * Decodes a UInt64Value message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListValue + * @returns UInt64Value * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UInt64Value; /** - * Decodes a ListValue message from the specified reader or buffer, length delimited. + * Decodes a UInt64Value message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListValue + * @returns UInt64Value * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UInt64Value; /** - * Verifies a ListValue message. + * Verifies a UInt64Value message. * @param message Plain 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. + * Creates a UInt64Value message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListValue + * @returns UInt64Value */ - public static fromObject(object: { [k: string]: any }): google.protobuf.ListValue; + public static fromObject(object: { [k: string]: any }): google.protobuf.UInt64Value; /** - * Creates a plain object from a ListValue message. Also converts values to other types if specified. - * @param message ListValue + * Creates a plain object from a UInt64Value message. Also converts values to other types if specified. + * @param message UInt64Value * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.ListValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.UInt64Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListValue to JSON. + * Converts this UInt64Value to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Timestamp. */ - interface ITimestamp { - - /** Timestamp seconds */ - seconds?: (number|Long|string|null); + /** Properties of an Int32Value. */ + interface IInt32Value { - /** Timestamp nanos */ - nanos?: (number|null); + /** Int32Value value */ + value?: (number|null); } - /** Represents a Timestamp. */ - class Timestamp implements ITimestamp { + /** Represents an Int32Value. */ + class Int32Value implements IInt32Value { /** - * Constructs a new Timestamp. + * Constructs a new Int32Value. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.ITimestamp); - - /** Timestamp seconds. */ - public seconds: (number|Long|string); + constructor(properties?: google.protobuf.IInt32Value); - /** Timestamp nanos. */ - public nanos: number; + /** Int32Value value. */ + public value: number; /** - * Creates a new Timestamp instance using the specified properties. + * Creates a new Int32Value instance using the specified properties. * @param [properties] Properties to set - * @returns Timestamp instance + * @returns Int32Value instance */ - public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp; + public static create(properties?: google.protobuf.IInt32Value): google.protobuf.Int32Value; /** - * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. - * @param message Timestamp message or plain object to encode + * Encodes the specified Int32Value message. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages. + * @param message Int32Value 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; + public static encode(message: google.protobuf.IInt32Value, 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 + * Encodes the specified Int32Value message, length delimited. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages. + * @param message Int32Value 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; + public static encodeDelimited(message: google.protobuf.IInt32Value, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Timestamp message from the specified reader or buffer. + * Decodes an Int32Value message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Timestamp + * @returns Int32Value * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Int32Value; /** - * Decodes a Timestamp message from the specified reader or buffer, length delimited. + * Decodes an Int32Value message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Timestamp + * @returns Int32Value * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Int32Value; /** - * Verifies a Timestamp message. + * Verifies an Int32Value message. * @param message Plain 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. + * Creates an Int32Value message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Timestamp + * @returns Int32Value */ - public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp; + public static fromObject(object: { [k: string]: any }): google.protobuf.Int32Value; /** - * Creates a plain object from a Timestamp message. Also converts values to other types if specified. - * @param message Timestamp + * Creates a plain object from an Int32Value message. Also converts values to other types if specified. + * @param message Int32Value * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.Int32Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Timestamp to JSON. + * Converts this Int32Value to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an Any. */ - interface IAny { - - /** Any type_url */ - type_url?: (string|null); + /** Properties of a UInt32Value. */ + interface IUInt32Value { - /** Any value */ - value?: (Uint8Array|string|null); + /** UInt32Value value */ + value?: (number|null); } - /** Represents an Any. */ - class Any implements IAny { + /** Represents a UInt32Value. */ + class UInt32Value implements IUInt32Value { /** - * Constructs a new Any. + * Constructs a new UInt32Value. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IAny); + constructor(properties?: google.protobuf.IUInt32Value); - /** Any type_url. */ - public type_url: string; - - /** Any value. */ - public value: (Uint8Array|string); + /** UInt32Value value. */ + public value: number; /** - * Creates a new Any instance using the specified properties. + * Creates a new UInt32Value instance using the specified properties. * @param [properties] Properties to set - * @returns Any instance + * @returns UInt32Value instance */ - public static create(properties?: google.protobuf.IAny): google.protobuf.Any; + public static create(properties?: google.protobuf.IUInt32Value): google.protobuf.UInt32Value; /** - * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. - * @param message Any message or plain object to encode + * Encodes the specified UInt32Value message. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages. + * @param message UInt32Value 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; + public static encode(message: google.protobuf.IUInt32Value, 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 + * Encodes the specified UInt32Value message, length delimited. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages. + * @param message UInt32Value 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; + public static encodeDelimited(message: google.protobuf.IUInt32Value, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Any message from the specified reader or buffer. + * Decodes a UInt32Value message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Any + * @returns UInt32Value * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UInt32Value; /** - * Decodes an Any message from the specified reader or buffer, length delimited. + * Decodes a UInt32Value message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Any + * @returns UInt32Value * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UInt32Value; /** - * Verifies an Any message. + * Verifies a UInt32Value message. * @param message Plain 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. + * Creates a UInt32Value message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Any + * @returns UInt32Value */ - public static fromObject(object: { [k: string]: any }): google.protobuf.Any; + public static fromObject(object: { [k: string]: any }): google.protobuf.UInt32Value; /** - * Creates a plain object from an Any message. Also converts values to other types if specified. - * @param message Any + * Creates a plain object from a UInt32Value message. Also converts values to other types if specified. + * @param message UInt32Value * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.UInt32Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Any to JSON. + * Converts this UInt32Value to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Duration. */ - interface IDuration { - - /** Duration seconds */ - seconds?: (number|Long|string|null); + /** Properties of a BoolValue. */ + interface IBoolValue { - /** Duration nanos */ - nanos?: (number|null); + /** BoolValue value */ + value?: (boolean|null); } - /** Represents a Duration. */ - class Duration implements IDuration { + /** Represents a BoolValue. */ + class BoolValue implements IBoolValue { /** - * Constructs a new Duration. + * Constructs a new BoolValue. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IDuration); - - /** Duration seconds. */ - public seconds: (number|Long|string); + constructor(properties?: google.protobuf.IBoolValue); - /** Duration nanos. */ - public nanos: number; + /** BoolValue value. */ + public value: boolean; /** - * Creates a new Duration instance using the specified properties. + * Creates a new BoolValue instance using the specified properties. * @param [properties] Properties to set - * @returns Duration instance + * @returns BoolValue instance */ - public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration; + public static create(properties?: google.protobuf.IBoolValue): google.protobuf.BoolValue; /** - * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. - * @param message Duration message or plain object to encode + * Encodes the specified BoolValue message. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages. + * @param message BoolValue 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; + public static encode(message: google.protobuf.IBoolValue, 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 + * Encodes the specified BoolValue message, length delimited. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages. + * @param message BoolValue 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; + public static encodeDelimited(message: google.protobuf.IBoolValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Duration message from the specified reader or buffer. + * Decodes a BoolValue message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Duration + * @returns BoolValue * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.BoolValue; /** - * Decodes a Duration message from the specified reader or buffer, length delimited. + * Decodes a BoolValue message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Duration + * @returns BoolValue * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.BoolValue; /** - * Verifies a Duration message. + * Verifies a BoolValue message. * @param message Plain 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. + * Creates a BoolValue message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Duration + * @returns BoolValue */ - public static fromObject(object: { [k: string]: any }): google.protobuf.Duration; + public static fromObject(object: { [k: string]: any }): google.protobuf.BoolValue; /** - * Creates a plain object from a Duration message. Also converts values to other types if specified. - * @param message Duration + * Creates a plain object from a BoolValue message. Also converts values to other types if specified. + * @param message BoolValue * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.BoolValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Duration to JSON. + * Converts this BoolValue to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an Empty. */ - interface IEmpty { + /** Properties of a StringValue. */ + interface IStringValue { + + /** StringValue value */ + value?: (string|null); } - /** Represents an Empty. */ - class Empty implements IEmpty { + /** Represents a StringValue. */ + class StringValue implements IStringValue { /** - * Constructs a new Empty. + * Constructs a new StringValue. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IEmpty); + constructor(properties?: google.protobuf.IStringValue); + + /** StringValue value. */ + public value: string; /** - * Creates a new Empty instance using the specified properties. + * Creates a new StringValue instance using the specified properties. * @param [properties] Properties to set - * @returns Empty instance + * @returns StringValue instance */ - public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty; + public static create(properties?: google.protobuf.IStringValue): google.protobuf.StringValue; /** - * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. - * @param message Empty message or plain object to encode + * Encodes the specified StringValue message. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages. + * @param message StringValue 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; + public static encode(message: google.protobuf.IStringValue, 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 + * Encodes the specified StringValue message, length delimited. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages. + * @param message StringValue 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; + public static encodeDelimited(message: google.protobuf.IStringValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Empty message from the specified reader or buffer. + * Decodes a StringValue message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Empty + * @returns StringValue * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.StringValue; /** - * Decodes an Empty message from the specified reader or buffer, length delimited. + * Decodes a StringValue message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Empty + * @returns StringValue * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.StringValue; /** - * Verifies an Empty message. + * Verifies a StringValue message. * @param message Plain 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. + * Creates a StringValue message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Empty + * @returns StringValue */ - public static fromObject(object: { [k: string]: any }): google.protobuf.Empty; + public static fromObject(object: { [k: string]: any }): google.protobuf.StringValue; /** - * Creates a plain object from an Empty message. Also converts values to other types if specified. - * @param message Empty + * Creates a plain object from a StringValue message. Also converts values to other types if specified. + * @param message StringValue * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.StringValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Empty to JSON. + * Converts this StringValue to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a FieldMask. */ - interface IFieldMask { + /** Properties of a BytesValue. */ + interface IBytesValue { - /** FieldMask paths */ - paths?: (string[]|null); + /** BytesValue value */ + value?: (Uint8Array|string|null); } - /** Represents a FieldMask. */ - class FieldMask implements IFieldMask { + /** Represents a BytesValue. */ + class BytesValue implements IBytesValue { /** - * Constructs a new FieldMask. + * Constructs a new BytesValue. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IFieldMask); + constructor(properties?: google.protobuf.IBytesValue); - /** FieldMask paths. */ - public paths: string[]; + /** BytesValue value. */ + public value: (Uint8Array|string); /** - * Creates a new FieldMask instance using the specified properties. + * Creates a new BytesValue instance using the specified properties. * @param [properties] Properties to set - * @returns FieldMask instance + * @returns BytesValue instance */ - public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask; + public static create(properties?: google.protobuf.IBytesValue): google.protobuf.BytesValue; /** - * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. - * @param message FieldMask message or plain object to encode + * Encodes the specified BytesValue message. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages. + * @param message BytesValue 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; + public static encode(message: google.protobuf.IBytesValue, 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 + * Encodes the specified BytesValue message, length delimited. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages. + * @param message BytesValue 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; + public static encodeDelimited(message: google.protobuf.IBytesValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FieldMask message from the specified reader or buffer. + * Decodes a BytesValue message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FieldMask + * @returns BytesValue * @throws {Error} If the payload is not 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.BytesValue; /** - * Decodes a FieldMask message from the specified reader or buffer, length delimited. + * Decodes a BytesValue message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FieldMask + * @returns BytesValue * @throws {Error} If the payload 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.BytesValue; /** - * Verifies a FieldMask message. + * Verifies a BytesValue message. * @param message Plain 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. + * Creates a BytesValue message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FieldMask + * @returns BytesValue */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask; + public static fromObject(object: { [k: string]: any }): google.protobuf.BytesValue; /** - * Creates a plain object from a FieldMask message. Also converts values to other types if specified. - * @param message FieldMask + * Creates a plain object from a BytesValue message. Also converts values to other types if specified. + * @param message BytesValue * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.BytesValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FieldMask to JSON. + * Converts this BytesValue to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; @@ -26592,6 +40765,114 @@ export namespace google { */ public toJSON(): { [k: string]: any }; } + + /** Properties of a Color. */ + interface IColor { + + /** Color red */ + red?: (number|null); + + /** Color green */ + green?: (number|null); + + /** Color blue */ + blue?: (number|null); + + /** Color alpha */ + alpha?: (google.protobuf.IFloatValue|null); + } + + /** Represents a Color. */ + class Color implements IColor { + + /** + * Constructs a new Color. + * @param [properties] Properties to set + */ + constructor(properties?: google.type.IColor); + + /** Color red. */ + public red: number; + + /** Color green. */ + public green: number; + + /** Color blue. */ + public blue: number; + + /** Color alpha. */ + public alpha?: (google.protobuf.IFloatValue|null); + + /** + * Creates a new Color instance using the specified properties. + * @param [properties] Properties to set + * @returns Color instance + */ + public static create(properties?: google.type.IColor): google.type.Color; + + /** + * Encodes the specified Color message. Does not implicitly {@link google.type.Color.verify|verify} messages. + * @param message Color message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.type.IColor, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Color message, length delimited. Does not implicitly {@link google.type.Color.verify|verify} messages. + * @param message Color message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.type.IColor, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Color message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Color + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.type.Color; + + /** + * Decodes a Color message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Color + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.type.Color; + + /** + * Verifies a Color message. + * @param message Plain 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 Color message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Color + */ + public static fromObject(object: { [k: string]: any }): google.type.Color; + + /** + * Creates a plain object from a Color message. Also converts values to other types if specified. + * @param message Color + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.type.Color, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Color to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } /** Namespace longrunning. */ diff --git a/packages/google-cloud-aiplatform/protos/protos.js b/packages/google-cloud-aiplatform/protos/protos.js index 328fc33ef39..be135619d6a 100644 --- a/packages/google-cloud-aiplatform/protos/protos.js +++ b/packages/google-cloud-aiplatform/protos/protos.js @@ -50711,4275 +50711,38127 @@ return ExplainResponse; })(); - v1beta1.SpecialistPoolService = (function() { + v1beta1.schema = (function() { /** - * Constructs a new SpecialistPoolService service. + * Namespace schema. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SpecialistPoolService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @namespace */ - function SpecialistPoolService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (SpecialistPoolService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = SpecialistPoolService; + var schema = {}; - /** - * Creates new SpecialistPoolService service using the specified rpc implementation. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.SpecialistPoolService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {SpecialistPoolService} RPC service. Useful where requests and/or responses are streamed. - */ - SpecialistPoolService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; + schema.ImageClassificationAnnotation = (function() { - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.SpecialistPoolService#createSpecialistPool}. - * @memberof google.cloud.aiplatform.v1beta1.SpecialistPoolService - * @typedef CreateSpecialistPoolCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ + /** + * Properties of an ImageClassificationAnnotation. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface IImageClassificationAnnotation + * @property {string|null} [annotationSpecId] ImageClassificationAnnotation annotationSpecId + * @property {string|null} [displayName] ImageClassificationAnnotation displayName + */ - /** - * Calls CreateSpecialistPool. - * @function createSpecialistPool - * @memberof google.cloud.aiplatform.v1beta1.SpecialistPoolService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolRequest} request CreateSpecialistPoolRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.SpecialistPoolService.CreateSpecialistPoolCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(SpecialistPoolService.prototype.createSpecialistPool = function createSpecialistPool(request, callback) { - return this.rpcCall(createSpecialistPool, $root.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CreateSpecialistPool" }); + /** + * Constructs a new ImageClassificationAnnotation. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents an ImageClassificationAnnotation. + * @implements IImageClassificationAnnotation + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.IImageClassificationAnnotation=} [properties] Properties to set + */ + function ImageClassificationAnnotation(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]]; + } - /** - * Calls CreateSpecialistPool. - * @function createSpecialistPool - * @memberof google.cloud.aiplatform.v1beta1.SpecialistPoolService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolRequest} request CreateSpecialistPoolRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * ImageClassificationAnnotation annotationSpecId. + * @member {string} annotationSpecId + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageClassificationAnnotation + * @instance + */ + ImageClassificationAnnotation.prototype.annotationSpecId = ""; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.SpecialistPoolService#getSpecialistPool}. - * @memberof google.cloud.aiplatform.v1beta1.SpecialistPoolService - * @typedef GetSpecialistPoolCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.SpecialistPool} [response] SpecialistPool - */ + /** + * ImageClassificationAnnotation displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageClassificationAnnotation + * @instance + */ + ImageClassificationAnnotation.prototype.displayName = ""; - /** - * Calls GetSpecialistPool. - * @function getSpecialistPool - * @memberof google.cloud.aiplatform.v1beta1.SpecialistPoolService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetSpecialistPoolRequest} request GetSpecialistPoolRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.SpecialistPoolService.GetSpecialistPoolCallback} callback Node-style callback called with the error, if any, and SpecialistPool - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(SpecialistPoolService.prototype.getSpecialistPool = function getSpecialistPool(request, callback) { - return this.rpcCall(getSpecialistPool, $root.google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest, $root.google.cloud.aiplatform.v1beta1.SpecialistPool, request, callback); - }, "name", { value: "GetSpecialistPool" }); + /** + * Creates a new ImageClassificationAnnotation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageClassificationAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IImageClassificationAnnotation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageClassificationAnnotation} ImageClassificationAnnotation instance + */ + ImageClassificationAnnotation.create = function create(properties) { + return new ImageClassificationAnnotation(properties); + }; - /** - * Calls GetSpecialistPool. - * @function getSpecialistPool - * @memberof google.cloud.aiplatform.v1beta1.SpecialistPoolService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetSpecialistPoolRequest} request GetSpecialistPoolRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Encodes the specified ImageClassificationAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageClassificationAnnotation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageClassificationAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IImageClassificationAnnotation} message ImageClassificationAnnotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageClassificationAnnotation.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.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + return writer; + }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.SpecialistPoolService#listSpecialistPools}. - * @memberof google.cloud.aiplatform.v1beta1.SpecialistPoolService - * @typedef ListSpecialistPoolsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse} [response] ListSpecialistPoolsResponse - */ + /** + * Encodes the specified ImageClassificationAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageClassificationAnnotation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageClassificationAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IImageClassificationAnnotation} message ImageClassificationAnnotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageClassificationAnnotation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Calls ListSpecialistPools. - * @function listSpecialistPools - * @memberof google.cloud.aiplatform.v1beta1.SpecialistPoolService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListSpecialistPoolsRequest} request ListSpecialistPoolsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.SpecialistPoolService.ListSpecialistPoolsCallback} callback Node-style callback called with the error, if any, and ListSpecialistPoolsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(SpecialistPoolService.prototype.listSpecialistPools = function listSpecialistPools(request, callback) { - return this.rpcCall(listSpecialistPools, $root.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest, $root.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse, request, callback); - }, "name", { value: "ListSpecialistPools" }); + /** + * Decodes an ImageClassificationAnnotation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageClassificationAnnotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageClassificationAnnotation} ImageClassificationAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageClassificationAnnotation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.ImageClassificationAnnotation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.annotationSpecId = reader.string(); + break; + case 2: + message.displayName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Calls ListSpecialistPools. - * @function listSpecialistPools - * @memberof google.cloud.aiplatform.v1beta1.SpecialistPoolService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListSpecialistPoolsRequest} request ListSpecialistPoolsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Decodes an ImageClassificationAnnotation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageClassificationAnnotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageClassificationAnnotation} ImageClassificationAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageClassificationAnnotation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.SpecialistPoolService#deleteSpecialistPool}. - * @memberof google.cloud.aiplatform.v1beta1.SpecialistPoolService - * @typedef DeleteSpecialistPoolCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ + /** + * Verifies an ImageClassificationAnnotation message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageClassificationAnnotation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ImageClassificationAnnotation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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; + }; - /** - * Calls DeleteSpecialistPool. - * @function deleteSpecialistPool - * @memberof google.cloud.aiplatform.v1beta1.SpecialistPoolService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteSpecialistPoolRequest} request DeleteSpecialistPoolRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.SpecialistPoolService.DeleteSpecialistPoolCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(SpecialistPoolService.prototype.deleteSpecialistPool = function deleteSpecialistPool(request, callback) { - return this.rpcCall(deleteSpecialistPool, $root.google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteSpecialistPool" }); + /** + * Creates an ImageClassificationAnnotation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageClassificationAnnotation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageClassificationAnnotation} ImageClassificationAnnotation + */ + ImageClassificationAnnotation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.ImageClassificationAnnotation) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.ImageClassificationAnnotation(); + if (object.annotationSpecId != null) + message.annotationSpecId = String(object.annotationSpecId); + if (object.displayName != null) + message.displayName = String(object.displayName); + return message; + }; - /** - * Calls DeleteSpecialistPool. - * @function deleteSpecialistPool - * @memberof google.cloud.aiplatform.v1beta1.SpecialistPoolService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteSpecialistPoolRequest} request DeleteSpecialistPoolRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Creates a plain object from an ImageClassificationAnnotation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageClassificationAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ImageClassificationAnnotation} message ImageClassificationAnnotation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ImageClassificationAnnotation.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.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + return object; + }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.SpecialistPoolService#updateSpecialistPool}. - * @memberof google.cloud.aiplatform.v1beta1.SpecialistPoolService - * @typedef UpdateSpecialistPoolCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ + /** + * Converts this ImageClassificationAnnotation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageClassificationAnnotation + * @instance + * @returns {Object.} JSON object + */ + ImageClassificationAnnotation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Calls UpdateSpecialistPool. - * @function updateSpecialistPool - * @memberof google.cloud.aiplatform.v1beta1.SpecialistPoolService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolRequest} request UpdateSpecialistPoolRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.SpecialistPoolService.UpdateSpecialistPoolCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(SpecialistPoolService.prototype.updateSpecialistPool = function updateSpecialistPool(request, callback) { - return this.rpcCall(updateSpecialistPool, $root.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "UpdateSpecialistPool" }); + return ImageClassificationAnnotation; + })(); - /** - * Calls UpdateSpecialistPool. - * @function updateSpecialistPool - * @memberof google.cloud.aiplatform.v1beta1.SpecialistPoolService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolRequest} request UpdateSpecialistPoolRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + schema.ImageBoundingBoxAnnotation = (function() { - return SpecialistPoolService; - })(); + /** + * Properties of an ImageBoundingBoxAnnotation. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface IImageBoundingBoxAnnotation + * @property {string|null} [annotationSpecId] ImageBoundingBoxAnnotation annotationSpecId + * @property {string|null} [displayName] ImageBoundingBoxAnnotation displayName + * @property {number|null} [xMin] ImageBoundingBoxAnnotation xMin + * @property {number|null} [xMax] ImageBoundingBoxAnnotation xMax + * @property {number|null} [yMin] ImageBoundingBoxAnnotation yMin + * @property {number|null} [yMax] ImageBoundingBoxAnnotation yMax + */ - v1beta1.CreateSpecialistPoolRequest = (function() { + /** + * Constructs a new ImageBoundingBoxAnnotation. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents an ImageBoundingBoxAnnotation. + * @implements IImageBoundingBoxAnnotation + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.IImageBoundingBoxAnnotation=} [properties] Properties to set + */ + function ImageBoundingBoxAnnotation(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]]; + } - /** - * Properties of a CreateSpecialistPoolRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateSpecialistPoolRequest - * @property {string|null} [parent] CreateSpecialistPoolRequest parent - * @property {google.cloud.aiplatform.v1beta1.ISpecialistPool|null} [specialistPool] CreateSpecialistPoolRequest specialistPool - */ + /** + * ImageBoundingBoxAnnotation annotationSpecId. + * @member {string} annotationSpecId + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageBoundingBoxAnnotation + * @instance + */ + ImageBoundingBoxAnnotation.prototype.annotationSpecId = ""; - /** - * Constructs a new CreateSpecialistPoolRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateSpecialistPoolRequest. - * @implements ICreateSpecialistPoolRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolRequest=} [properties] Properties to set - */ - function CreateSpecialistPoolRequest(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]]; - } + /** + * ImageBoundingBoxAnnotation displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageBoundingBoxAnnotation + * @instance + */ + ImageBoundingBoxAnnotation.prototype.displayName = ""; - /** - * CreateSpecialistPoolRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest - * @instance - */ - CreateSpecialistPoolRequest.prototype.parent = ""; + /** + * ImageBoundingBoxAnnotation xMin. + * @member {number} xMin + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageBoundingBoxAnnotation + * @instance + */ + ImageBoundingBoxAnnotation.prototype.xMin = 0; - /** - * CreateSpecialistPoolRequest specialistPool. - * @member {google.cloud.aiplatform.v1beta1.ISpecialistPool|null|undefined} specialistPool - * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest - * @instance - */ - CreateSpecialistPoolRequest.prototype.specialistPool = null; + /** + * ImageBoundingBoxAnnotation xMax. + * @member {number} xMax + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageBoundingBoxAnnotation + * @instance + */ + ImageBoundingBoxAnnotation.prototype.xMax = 0; - /** - * Creates a new CreateSpecialistPoolRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest} CreateSpecialistPoolRequest instance - */ - CreateSpecialistPoolRequest.create = function create(properties) { - return new CreateSpecialistPoolRequest(properties); - }; + /** + * ImageBoundingBoxAnnotation yMin. + * @member {number} yMin + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageBoundingBoxAnnotation + * @instance + */ + ImageBoundingBoxAnnotation.prototype.yMin = 0; - /** - * Encodes the specified CreateSpecialistPoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolRequest} message CreateSpecialistPoolRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateSpecialistPoolRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.specialistPool != null && Object.hasOwnProperty.call(message, "specialistPool")) - $root.google.cloud.aiplatform.v1beta1.SpecialistPool.encode(message.specialistPool, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * ImageBoundingBoxAnnotation yMax. + * @member {number} yMax + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageBoundingBoxAnnotation + * @instance + */ + ImageBoundingBoxAnnotation.prototype.yMax = 0; - /** - * Encodes the specified CreateSpecialistPoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolRequest} message CreateSpecialistPoolRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateSpecialistPoolRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new ImageBoundingBoxAnnotation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageBoundingBoxAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IImageBoundingBoxAnnotation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageBoundingBoxAnnotation} ImageBoundingBoxAnnotation instance + */ + ImageBoundingBoxAnnotation.create = function create(properties) { + return new ImageBoundingBoxAnnotation(properties); + }; - /** - * Decodes a CreateSpecialistPoolRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest} CreateSpecialistPoolRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateSpecialistPoolRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.specialistPool = $root.google.cloud.aiplatform.v1beta1.SpecialistPool.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Encodes the specified ImageBoundingBoxAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageBoundingBoxAnnotation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageBoundingBoxAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IImageBoundingBoxAnnotation} message ImageBoundingBoxAnnotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageBoundingBoxAnnotation.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.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.xMin != null && Object.hasOwnProperty.call(message, "xMin")) + writer.uint32(/* id 3, wireType 1 =*/25).double(message.xMin); + if (message.xMax != null && Object.hasOwnProperty.call(message, "xMax")) + writer.uint32(/* id 4, wireType 1 =*/33).double(message.xMax); + if (message.yMin != null && Object.hasOwnProperty.call(message, "yMin")) + writer.uint32(/* id 5, wireType 1 =*/41).double(message.yMin); + if (message.yMax != null && Object.hasOwnProperty.call(message, "yMax")) + writer.uint32(/* id 6, wireType 1 =*/49).double(message.yMax); + return writer; + }; + + /** + * Encodes the specified ImageBoundingBoxAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageBoundingBoxAnnotation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageBoundingBoxAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IImageBoundingBoxAnnotation} message ImageBoundingBoxAnnotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageBoundingBoxAnnotation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ImageBoundingBoxAnnotation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageBoundingBoxAnnotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageBoundingBoxAnnotation} ImageBoundingBoxAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageBoundingBoxAnnotation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.ImageBoundingBoxAnnotation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.annotationSpecId = reader.string(); + break; + case 2: + message.displayName = reader.string(); + break; + case 3: + message.xMin = reader.double(); + break; + case 4: + message.xMax = reader.double(); + break; + case 5: + message.yMin = reader.double(); + break; + case 6: + message.yMax = reader.double(); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a CreateSpecialistPoolRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest} CreateSpecialistPoolRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateSpecialistPoolRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes an ImageBoundingBoxAnnotation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageBoundingBoxAnnotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageBoundingBoxAnnotation} ImageBoundingBoxAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageBoundingBoxAnnotation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a CreateSpecialistPoolRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateSpecialistPoolRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.specialistPool != null && message.hasOwnProperty("specialistPool")) { - var error = $root.google.cloud.aiplatform.v1beta1.SpecialistPool.verify(message.specialistPool); - if (error) - return "specialistPool." + error; - } - return null; - }; + /** + * Verifies an ImageBoundingBoxAnnotation message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageBoundingBoxAnnotation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ImageBoundingBoxAnnotation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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"; + if (message.xMin != null && message.hasOwnProperty("xMin")) + if (typeof message.xMin !== "number") + return "xMin: number expected"; + if (message.xMax != null && message.hasOwnProperty("xMax")) + if (typeof message.xMax !== "number") + return "xMax: number expected"; + if (message.yMin != null && message.hasOwnProperty("yMin")) + if (typeof message.yMin !== "number") + return "yMin: number expected"; + if (message.yMax != null && message.hasOwnProperty("yMax")) + if (typeof message.yMax !== "number") + return "yMax: number expected"; + return null; + }; - /** - * Creates a CreateSpecialistPoolRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest} CreateSpecialistPoolRequest - */ - CreateSpecialistPoolRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.specialistPool != null) { - if (typeof object.specialistPool !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest.specialistPool: object expected"); - message.specialistPool = $root.google.cloud.aiplatform.v1beta1.SpecialistPool.fromObject(object.specialistPool); - } - return message; - }; + /** + * Creates an ImageBoundingBoxAnnotation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageBoundingBoxAnnotation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageBoundingBoxAnnotation} ImageBoundingBoxAnnotation + */ + ImageBoundingBoxAnnotation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.ImageBoundingBoxAnnotation) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.ImageBoundingBoxAnnotation(); + if (object.annotationSpecId != null) + message.annotationSpecId = String(object.annotationSpecId); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.xMin != null) + message.xMin = Number(object.xMin); + if (object.xMax != null) + message.xMax = Number(object.xMax); + if (object.yMin != null) + message.yMin = Number(object.yMin); + if (object.yMax != null) + message.yMax = Number(object.yMax); + return message; + }; - /** - * Creates a plain object from a CreateSpecialistPoolRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest} message CreateSpecialistPoolRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CreateSpecialistPoolRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.specialistPool = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.specialistPool != null && message.hasOwnProperty("specialistPool")) - object.specialistPool = $root.google.cloud.aiplatform.v1beta1.SpecialistPool.toObject(message.specialistPool, options); - return object; - }; + /** + * Creates a plain object from an ImageBoundingBoxAnnotation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageBoundingBoxAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ImageBoundingBoxAnnotation} message ImageBoundingBoxAnnotation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ImageBoundingBoxAnnotation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.annotationSpecId = ""; + object.displayName = ""; + object.xMin = 0; + object.xMax = 0; + object.yMin = 0; + object.yMax = 0; + } + if (message.annotationSpecId != null && message.hasOwnProperty("annotationSpecId")) + object.annotationSpecId = message.annotationSpecId; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.xMin != null && message.hasOwnProperty("xMin")) + object.xMin = options.json && !isFinite(message.xMin) ? String(message.xMin) : message.xMin; + if (message.xMax != null && message.hasOwnProperty("xMax")) + object.xMax = options.json && !isFinite(message.xMax) ? String(message.xMax) : message.xMax; + if (message.yMin != null && message.hasOwnProperty("yMin")) + object.yMin = options.json && !isFinite(message.yMin) ? String(message.yMin) : message.yMin; + if (message.yMax != null && message.hasOwnProperty("yMax")) + object.yMax = options.json && !isFinite(message.yMax) ? String(message.yMax) : message.yMax; + return object; + }; - /** - * Converts this CreateSpecialistPoolRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest - * @instance - * @returns {Object.} JSON object - */ - CreateSpecialistPoolRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this ImageBoundingBoxAnnotation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageBoundingBoxAnnotation + * @instance + * @returns {Object.} JSON object + */ + ImageBoundingBoxAnnotation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return CreateSpecialistPoolRequest; - })(); + return ImageBoundingBoxAnnotation; + })(); - v1beta1.CreateSpecialistPoolOperationMetadata = (function() { + schema.ImageSegmentationAnnotation = (function() { - /** - * Properties of a CreateSpecialistPoolOperationMetadata. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateSpecialistPoolOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateSpecialistPoolOperationMetadata genericMetadata - */ + /** + * Properties of an ImageSegmentationAnnotation. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface IImageSegmentationAnnotation + * @property {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.IMaskAnnotation|null} [maskAnnotation] ImageSegmentationAnnotation maskAnnotation + * @property {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.IPolygonAnnotation|null} [polygonAnnotation] ImageSegmentationAnnotation polygonAnnotation + * @property {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.IPolylineAnnotation|null} [polylineAnnotation] ImageSegmentationAnnotation polylineAnnotation + */ - /** - * Constructs a new CreateSpecialistPoolOperationMetadata. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateSpecialistPoolOperationMetadata. - * @implements ICreateSpecialistPoolOperationMetadata - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolOperationMetadata=} [properties] Properties to set - */ - function CreateSpecialistPoolOperationMetadata(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]]; - } + /** + * Constructs a new ImageSegmentationAnnotation. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents an ImageSegmentationAnnotation. + * @implements IImageSegmentationAnnotation + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.IImageSegmentationAnnotation=} [properties] Properties to set + */ + function ImageSegmentationAnnotation(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]]; + } - /** - * CreateSpecialistPoolOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata - * @instance - */ - CreateSpecialistPoolOperationMetadata.prototype.genericMetadata = null; + /** + * ImageSegmentationAnnotation maskAnnotation. + * @member {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.IMaskAnnotation|null|undefined} maskAnnotation + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation + * @instance + */ + ImageSegmentationAnnotation.prototype.maskAnnotation = null; - /** - * Creates a new CreateSpecialistPoolOperationMetadata instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata} CreateSpecialistPoolOperationMetadata instance - */ - CreateSpecialistPoolOperationMetadata.create = function create(properties) { - return new CreateSpecialistPoolOperationMetadata(properties); - }; + /** + * ImageSegmentationAnnotation polygonAnnotation. + * @member {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.IPolygonAnnotation|null|undefined} polygonAnnotation + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation + * @instance + */ + ImageSegmentationAnnotation.prototype.polygonAnnotation = null; - /** - * Encodes the specified CreateSpecialistPoolOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolOperationMetadata} message CreateSpecialistPoolOperationMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateSpecialistPoolOperationMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * ImageSegmentationAnnotation polylineAnnotation. + * @member {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.IPolylineAnnotation|null|undefined} polylineAnnotation + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation + * @instance + */ + ImageSegmentationAnnotation.prototype.polylineAnnotation = null; - /** - * Encodes the specified CreateSpecialistPoolOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolOperationMetadata} message CreateSpecialistPoolOperationMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateSpecialistPoolOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Decodes a CreateSpecialistPoolOperationMetadata message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata} CreateSpecialistPoolOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateSpecialistPoolOperationMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * ImageSegmentationAnnotation annotation. + * @member {"maskAnnotation"|"polygonAnnotation"|"polylineAnnotation"|undefined} annotation + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation + * @instance + */ + Object.defineProperty(ImageSegmentationAnnotation.prototype, "annotation", { + get: $util.oneOfGetter($oneOfFields = ["maskAnnotation", "polygonAnnotation", "polylineAnnotation"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Decodes a CreateSpecialistPoolOperationMetadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata} CreateSpecialistPoolOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateSpecialistPoolOperationMetadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a new ImageSegmentationAnnotation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IImageSegmentationAnnotation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation} ImageSegmentationAnnotation instance + */ + ImageSegmentationAnnotation.create = function create(properties) { + return new ImageSegmentationAnnotation(properties); + }; - /** - * Verifies a CreateSpecialistPoolOperationMetadata message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateSpecialistPoolOperationMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; - } - return null; - }; - - /** - * Creates a CreateSpecialistPoolOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata} CreateSpecialistPoolOperationMetadata - */ - CreateSpecialistPoolOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); - } - return message; - }; + /** + * Encodes the specified ImageSegmentationAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IImageSegmentationAnnotation} message ImageSegmentationAnnotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageSegmentationAnnotation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.maskAnnotation != null && Object.hasOwnProperty.call(message, "maskAnnotation")) + $root.google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.MaskAnnotation.encode(message.maskAnnotation, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.polygonAnnotation != null && Object.hasOwnProperty.call(message, "polygonAnnotation")) + $root.google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolygonAnnotation.encode(message.polygonAnnotation, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.polylineAnnotation != null && Object.hasOwnProperty.call(message, "polylineAnnotation")) + $root.google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolylineAnnotation.encode(message.polylineAnnotation, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; - /** - * Creates a plain object from a CreateSpecialistPoolOperationMetadata message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata} message CreateSpecialistPoolOperationMetadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CreateSpecialistPoolOperationMetadata.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); - return object; - }; + /** + * Encodes the specified ImageSegmentationAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IImageSegmentationAnnotation} message ImageSegmentationAnnotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageSegmentationAnnotation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Converts this CreateSpecialistPoolOperationMetadata to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata - * @instance - * @returns {Object.} JSON object - */ - CreateSpecialistPoolOperationMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes an ImageSegmentationAnnotation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation} ImageSegmentationAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageSegmentationAnnotation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 3: + message.maskAnnotation = $root.google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.MaskAnnotation.decode(reader, reader.uint32()); + break; + case 4: + message.polygonAnnotation = $root.google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolygonAnnotation.decode(reader, reader.uint32()); + break; + case 5: + message.polylineAnnotation = $root.google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolylineAnnotation.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - return CreateSpecialistPoolOperationMetadata; - })(); + /** + * Decodes an ImageSegmentationAnnotation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation} ImageSegmentationAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageSegmentationAnnotation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - v1beta1.GetSpecialistPoolRequest = (function() { + /** + * Verifies an ImageSegmentationAnnotation message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ImageSegmentationAnnotation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.maskAnnotation != null && message.hasOwnProperty("maskAnnotation")) { + properties.annotation = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.MaskAnnotation.verify(message.maskAnnotation); + if (error) + return "maskAnnotation." + error; + } + } + if (message.polygonAnnotation != null && message.hasOwnProperty("polygonAnnotation")) { + if (properties.annotation === 1) + return "annotation: multiple values"; + properties.annotation = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolygonAnnotation.verify(message.polygonAnnotation); + if (error) + return "polygonAnnotation." + error; + } + } + if (message.polylineAnnotation != null && message.hasOwnProperty("polylineAnnotation")) { + if (properties.annotation === 1) + return "annotation: multiple values"; + properties.annotation = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolylineAnnotation.verify(message.polylineAnnotation); + if (error) + return "polylineAnnotation." + error; + } + } + return null; + }; - /** - * Properties of a GetSpecialistPoolRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetSpecialistPoolRequest - * @property {string|null} [name] GetSpecialistPoolRequest name - */ + /** + * Creates an ImageSegmentationAnnotation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation} ImageSegmentationAnnotation + */ + ImageSegmentationAnnotation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation(); + if (object.maskAnnotation != null) { + if (typeof object.maskAnnotation !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.maskAnnotation: object expected"); + message.maskAnnotation = $root.google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.MaskAnnotation.fromObject(object.maskAnnotation); + } + if (object.polygonAnnotation != null) { + if (typeof object.polygonAnnotation !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.polygonAnnotation: object expected"); + message.polygonAnnotation = $root.google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolygonAnnotation.fromObject(object.polygonAnnotation); + } + if (object.polylineAnnotation != null) { + if (typeof object.polylineAnnotation !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.polylineAnnotation: object expected"); + message.polylineAnnotation = $root.google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolylineAnnotation.fromObject(object.polylineAnnotation); + } + return message; + }; - /** - * Constructs a new GetSpecialistPoolRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetSpecialistPoolRequest. - * @implements IGetSpecialistPoolRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetSpecialistPoolRequest=} [properties] Properties to set - */ - function GetSpecialistPoolRequest(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]]; - } + /** + * Creates a plain object from an ImageSegmentationAnnotation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation} message ImageSegmentationAnnotation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ImageSegmentationAnnotation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.maskAnnotation != null && message.hasOwnProperty("maskAnnotation")) { + object.maskAnnotation = $root.google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.MaskAnnotation.toObject(message.maskAnnotation, options); + if (options.oneofs) + object.annotation = "maskAnnotation"; + } + if (message.polygonAnnotation != null && message.hasOwnProperty("polygonAnnotation")) { + object.polygonAnnotation = $root.google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolygonAnnotation.toObject(message.polygonAnnotation, options); + if (options.oneofs) + object.annotation = "polygonAnnotation"; + } + if (message.polylineAnnotation != null && message.hasOwnProperty("polylineAnnotation")) { + object.polylineAnnotation = $root.google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolylineAnnotation.toObject(message.polylineAnnotation, options); + if (options.oneofs) + object.annotation = "polylineAnnotation"; + } + return object; + }; - /** - * GetSpecialistPoolRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest - * @instance - */ - GetSpecialistPoolRequest.prototype.name = ""; + /** + * Converts this ImageSegmentationAnnotation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation + * @instance + * @returns {Object.} JSON object + */ + ImageSegmentationAnnotation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a new GetSpecialistPoolRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IGetSpecialistPoolRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest} GetSpecialistPoolRequest instance - */ - GetSpecialistPoolRequest.create = function create(properties) { - return new GetSpecialistPoolRequest(properties); - }; + ImageSegmentationAnnotation.MaskAnnotation = (function() { - /** - * Encodes the specified GetSpecialistPoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IGetSpecialistPoolRequest} message GetSpecialistPoolRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetSpecialistPoolRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; + /** + * Properties of a MaskAnnotation. + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation + * @interface IMaskAnnotation + * @property {string|null} [maskGcsUri] MaskAnnotation maskGcsUri + * @property {Array.|null} [annotationSpecColors] MaskAnnotation annotationSpecColors + */ - /** - * Encodes the specified GetSpecialistPoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IGetSpecialistPoolRequest} message GetSpecialistPoolRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetSpecialistPoolRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Constructs a new MaskAnnotation. + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation + * @classdesc Represents a MaskAnnotation. + * @implements IMaskAnnotation + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.IMaskAnnotation=} [properties] Properties to set + */ + function MaskAnnotation(properties) { + this.annotationSpecColors = []; + 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]]; + } - /** - * Decodes a GetSpecialistPoolRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest} GetSpecialistPoolRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetSpecialistPoolRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * MaskAnnotation maskGcsUri. + * @member {string} maskGcsUri + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.MaskAnnotation + * @instance + */ + MaskAnnotation.prototype.maskGcsUri = ""; - /** - * Decodes a GetSpecialistPoolRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest} GetSpecialistPoolRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetSpecialistPoolRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * MaskAnnotation annotationSpecColors. + * @member {Array.} annotationSpecColors + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.MaskAnnotation + * @instance + */ + MaskAnnotation.prototype.annotationSpecColors = $util.emptyArray; - /** - * Verifies a GetSpecialistPoolRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetSpecialistPoolRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; + /** + * Creates a new MaskAnnotation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.MaskAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.IMaskAnnotation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.MaskAnnotation} MaskAnnotation instance + */ + MaskAnnotation.create = function create(properties) { + return new MaskAnnotation(properties); + }; - /** - * Creates a GetSpecialistPoolRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest} GetSpecialistPoolRequest - */ - GetSpecialistPoolRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + /** + * Encodes the specified MaskAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.MaskAnnotation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.MaskAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.IMaskAnnotation} message MaskAnnotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MaskAnnotation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.maskGcsUri != null && Object.hasOwnProperty.call(message, "maskGcsUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.maskGcsUri); + if (message.annotationSpecColors != null && message.annotationSpecColors.length) + for (var i = 0; i < message.annotationSpecColors.length; ++i) + $root.google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor.encode(message.annotationSpecColors[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Creates a plain object from a GetSpecialistPoolRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest} message GetSpecialistPoolRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetSpecialistPoolRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; + /** + * Encodes the specified MaskAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.MaskAnnotation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.MaskAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.IMaskAnnotation} message MaskAnnotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MaskAnnotation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Converts this GetSpecialistPoolRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest - * @instance - * @returns {Object.} JSON object - */ - GetSpecialistPoolRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a MaskAnnotation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.MaskAnnotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.MaskAnnotation} MaskAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MaskAnnotation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.MaskAnnotation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.maskGcsUri = reader.string(); + break; + case 2: + if (!(message.annotationSpecColors && message.annotationSpecColors.length)) + message.annotationSpecColors = []; + message.annotationSpecColors.push($root.google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - return GetSpecialistPoolRequest; - })(); + /** + * Decodes a MaskAnnotation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.MaskAnnotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.MaskAnnotation} MaskAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MaskAnnotation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - v1beta1.ListSpecialistPoolsRequest = (function() { + /** + * Verifies a MaskAnnotation message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.MaskAnnotation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MaskAnnotation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.maskGcsUri != null && message.hasOwnProperty("maskGcsUri")) + if (!$util.isString(message.maskGcsUri)) + return "maskGcsUri: string expected"; + if (message.annotationSpecColors != null && message.hasOwnProperty("annotationSpecColors")) { + if (!Array.isArray(message.annotationSpecColors)) + return "annotationSpecColors: array expected"; + for (var i = 0; i < message.annotationSpecColors.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor.verify(message.annotationSpecColors[i]); + if (error) + return "annotationSpecColors." + error; + } + } + return null; + }; - /** - * Properties of a ListSpecialistPoolsRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListSpecialistPoolsRequest - * @property {string|null} [parent] ListSpecialistPoolsRequest parent - * @property {number|null} [pageSize] ListSpecialistPoolsRequest pageSize - * @property {string|null} [pageToken] ListSpecialistPoolsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListSpecialistPoolsRequest readMask - */ + /** + * Creates a MaskAnnotation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.MaskAnnotation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.MaskAnnotation} MaskAnnotation + */ + MaskAnnotation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.MaskAnnotation) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.MaskAnnotation(); + if (object.maskGcsUri != null) + message.maskGcsUri = String(object.maskGcsUri); + if (object.annotationSpecColors) { + if (!Array.isArray(object.annotationSpecColors)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.MaskAnnotation.annotationSpecColors: array expected"); + message.annotationSpecColors = []; + for (var i = 0; i < object.annotationSpecColors.length; ++i) { + if (typeof object.annotationSpecColors[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.MaskAnnotation.annotationSpecColors: object expected"); + message.annotationSpecColors[i] = $root.google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor.fromObject(object.annotationSpecColors[i]); + } + } + return message; + }; - /** - * Constructs a new ListSpecialistPoolsRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListSpecialistPoolsRequest. - * @implements IListSpecialistPoolsRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListSpecialistPoolsRequest=} [properties] Properties to set - */ - function ListSpecialistPoolsRequest(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]]; - } + /** + * Creates a plain object from a MaskAnnotation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.MaskAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.MaskAnnotation} message MaskAnnotation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MaskAnnotation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.annotationSpecColors = []; + if (options.defaults) + object.maskGcsUri = ""; + if (message.maskGcsUri != null && message.hasOwnProperty("maskGcsUri")) + object.maskGcsUri = message.maskGcsUri; + if (message.annotationSpecColors && message.annotationSpecColors.length) { + object.annotationSpecColors = []; + for (var j = 0; j < message.annotationSpecColors.length; ++j) + object.annotationSpecColors[j] = $root.google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor.toObject(message.annotationSpecColors[j], options); + } + return object; + }; - /** - * ListSpecialistPoolsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest - * @instance - */ - ListSpecialistPoolsRequest.prototype.parent = ""; + /** + * Converts this MaskAnnotation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.MaskAnnotation + * @instance + * @returns {Object.} JSON object + */ + MaskAnnotation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * ListSpecialistPoolsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest - * @instance - */ - ListSpecialistPoolsRequest.prototype.pageSize = 0; + return MaskAnnotation; + })(); - /** - * ListSpecialistPoolsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest - * @instance - */ - ListSpecialistPoolsRequest.prototype.pageToken = ""; - - /** - * ListSpecialistPoolsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest - * @instance - */ - ListSpecialistPoolsRequest.prototype.readMask = null; - - /** - * Creates a new ListSpecialistPoolsRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IListSpecialistPoolsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest} ListSpecialistPoolsRequest instance - */ - ListSpecialistPoolsRequest.create = function create(properties) { - return new ListSpecialistPoolsRequest(properties); - }; - - /** - * Encodes the specified ListSpecialistPoolsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IListSpecialistPoolsRequest} message ListSpecialistPoolsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListSpecialistPoolsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; + ImageSegmentationAnnotation.PolygonAnnotation = (function() { - /** - * Encodes the specified ListSpecialistPoolsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IListSpecialistPoolsRequest} message ListSpecialistPoolsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListSpecialistPoolsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Properties of a PolygonAnnotation. + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation + * @interface IPolygonAnnotation + * @property {Array.|null} [vertexes] PolygonAnnotation vertexes + * @property {string|null} [annotationSpecId] PolygonAnnotation annotationSpecId + * @property {string|null} [displayName] PolygonAnnotation displayName + */ - /** - * Decodes a ListSpecialistPoolsRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest} ListSpecialistPoolsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListSpecialistPoolsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); - break; - case 4: - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Constructs a new PolygonAnnotation. + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation + * @classdesc Represents a PolygonAnnotation. + * @implements IPolygonAnnotation + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.IPolygonAnnotation=} [properties] Properties to set + */ + function PolygonAnnotation(properties) { + this.vertexes = []; + 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]]; } - } - return message; - }; - - /** - * Decodes a ListSpecialistPoolsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest} ListSpecialistPoolsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListSpecialistPoolsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ListSpecialistPoolsRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListSpecialistPoolsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); - if (error) - return "readMask." + error; - } - return null; - }; - /** - * Creates a ListSpecialistPoolsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest} ListSpecialistPoolsRequest - */ - ListSpecialistPoolsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); - } - return message; - }; + /** + * PolygonAnnotation vertexes. + * @member {Array.} vertexes + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolygonAnnotation + * @instance + */ + PolygonAnnotation.prototype.vertexes = $util.emptyArray; - /** - * Creates a plain object from a ListSpecialistPoolsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest} message ListSpecialistPoolsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListSpecialistPoolsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); - return object; - }; + /** + * PolygonAnnotation annotationSpecId. + * @member {string} annotationSpecId + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolygonAnnotation + * @instance + */ + PolygonAnnotation.prototype.annotationSpecId = ""; - /** - * Converts this ListSpecialistPoolsRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest - * @instance - * @returns {Object.} JSON object - */ - ListSpecialistPoolsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * PolygonAnnotation displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolygonAnnotation + * @instance + */ + PolygonAnnotation.prototype.displayName = ""; - return ListSpecialistPoolsRequest; - })(); + /** + * Creates a new PolygonAnnotation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolygonAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.IPolygonAnnotation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolygonAnnotation} PolygonAnnotation instance + */ + PolygonAnnotation.create = function create(properties) { + return new PolygonAnnotation(properties); + }; - v1beta1.ListSpecialistPoolsResponse = (function() { + /** + * Encodes the specified PolygonAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolygonAnnotation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolygonAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.IPolygonAnnotation} message PolygonAnnotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PolygonAnnotation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.vertexes != null && message.vertexes.length) + for (var i = 0; i < message.vertexes.length; ++i) + $root.google.cloud.aiplatform.v1beta1.schema.Vertex.encode(message.vertexes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.annotationSpecId != null && Object.hasOwnProperty.call(message, "annotationSpecId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.annotationSpecId); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); + return writer; + }; - /** - * Properties of a ListSpecialistPoolsResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListSpecialistPoolsResponse - * @property {Array.|null} [specialistPools] ListSpecialistPoolsResponse specialistPools - * @property {string|null} [nextPageToken] ListSpecialistPoolsResponse nextPageToken - */ + /** + * Encodes the specified PolygonAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolygonAnnotation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolygonAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.IPolygonAnnotation} message PolygonAnnotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PolygonAnnotation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Constructs a new ListSpecialistPoolsResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListSpecialistPoolsResponse. - * @implements IListSpecialistPoolsResponse - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListSpecialistPoolsResponse=} [properties] Properties to set - */ - function ListSpecialistPoolsResponse(properties) { - this.specialistPools = []; - 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]]; - } + /** + * Decodes a PolygonAnnotation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolygonAnnotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolygonAnnotation} PolygonAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PolygonAnnotation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolygonAnnotation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.vertexes && message.vertexes.length)) + message.vertexes = []; + message.vertexes.push($root.google.cloud.aiplatform.v1beta1.schema.Vertex.decode(reader, reader.uint32())); + break; + case 2: + message.annotationSpecId = reader.string(); + break; + case 3: + message.displayName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * ListSpecialistPoolsResponse specialistPools. - * @member {Array.} specialistPools - * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse - * @instance - */ - ListSpecialistPoolsResponse.prototype.specialistPools = $util.emptyArray; + /** + * Decodes a PolygonAnnotation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolygonAnnotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolygonAnnotation} PolygonAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PolygonAnnotation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * ListSpecialistPoolsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse - * @instance - */ - ListSpecialistPoolsResponse.prototype.nextPageToken = ""; + /** + * Verifies a PolygonAnnotation message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolygonAnnotation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PolygonAnnotation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.vertexes != null && message.hasOwnProperty("vertexes")) { + if (!Array.isArray(message.vertexes)) + return "vertexes: array expected"; + for (var i = 0; i < message.vertexes.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.schema.Vertex.verify(message.vertexes[i]); + if (error) + return "vertexes." + 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 a new ListSpecialistPoolsResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IListSpecialistPoolsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse} ListSpecialistPoolsResponse instance - */ - ListSpecialistPoolsResponse.create = function create(properties) { - return new ListSpecialistPoolsResponse(properties); - }; + /** + * Creates a PolygonAnnotation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolygonAnnotation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolygonAnnotation} PolygonAnnotation + */ + PolygonAnnotation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolygonAnnotation) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolygonAnnotation(); + if (object.vertexes) { + if (!Array.isArray(object.vertexes)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolygonAnnotation.vertexes: array expected"); + message.vertexes = []; + for (var i = 0; i < object.vertexes.length; ++i) { + if (typeof object.vertexes[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolygonAnnotation.vertexes: object expected"); + message.vertexes[i] = $root.google.cloud.aiplatform.v1beta1.schema.Vertex.fromObject(object.vertexes[i]); + } + } + if (object.annotationSpecId != null) + message.annotationSpecId = String(object.annotationSpecId); + if (object.displayName != null) + message.displayName = String(object.displayName); + return message; + }; - /** - * Encodes the specified ListSpecialistPoolsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IListSpecialistPoolsResponse} message ListSpecialistPoolsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListSpecialistPoolsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.specialistPools != null && message.specialistPools.length) - for (var i = 0; i < message.specialistPools.length; ++i) - $root.google.cloud.aiplatform.v1beta1.SpecialistPool.encode(message.specialistPools[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - return writer; - }; + /** + * Creates a plain object from a PolygonAnnotation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolygonAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolygonAnnotation} message PolygonAnnotation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PolygonAnnotation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.vertexes = []; + if (options.defaults) { + object.annotationSpecId = ""; + object.displayName = ""; + } + if (message.vertexes && message.vertexes.length) { + object.vertexes = []; + for (var j = 0; j < message.vertexes.length; ++j) + object.vertexes[j] = $root.google.cloud.aiplatform.v1beta1.schema.Vertex.toObject(message.vertexes[j], options); + } + if (message.annotationSpecId != null && message.hasOwnProperty("annotationSpecId")) + object.annotationSpecId = message.annotationSpecId; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + return object; + }; - /** - * Encodes the specified ListSpecialistPoolsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IListSpecialistPoolsResponse} message ListSpecialistPoolsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListSpecialistPoolsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Converts this PolygonAnnotation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolygonAnnotation + * @instance + * @returns {Object.} JSON object + */ + PolygonAnnotation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Decodes a ListSpecialistPoolsResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse} ListSpecialistPoolsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListSpecialistPoolsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.specialistPools && message.specialistPools.length)) - message.specialistPools = []; - message.specialistPools.push($root.google.cloud.aiplatform.v1beta1.SpecialistPool.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + return PolygonAnnotation; + })(); - /** - * Decodes a ListSpecialistPoolsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse} ListSpecialistPoolsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListSpecialistPoolsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + ImageSegmentationAnnotation.PolylineAnnotation = (function() { - /** - * Verifies a ListSpecialistPoolsResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListSpecialistPoolsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.specialistPools != null && message.hasOwnProperty("specialistPools")) { - if (!Array.isArray(message.specialistPools)) - return "specialistPools: array expected"; - for (var i = 0; i < message.specialistPools.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.SpecialistPool.verify(message.specialistPools[i]); - if (error) - return "specialistPools." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; + /** + * Properties of a PolylineAnnotation. + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation + * @interface IPolylineAnnotation + * @property {Array.|null} [vertexes] PolylineAnnotation vertexes + * @property {string|null} [annotationSpecId] PolylineAnnotation annotationSpecId + * @property {string|null} [displayName] PolylineAnnotation displayName + */ - /** - * Creates a ListSpecialistPoolsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse} ListSpecialistPoolsResponse - */ - ListSpecialistPoolsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse(); - if (object.specialistPools) { - if (!Array.isArray(object.specialistPools)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse.specialistPools: array expected"); - message.specialistPools = []; - for (var i = 0; i < object.specialistPools.length; ++i) { - if (typeof object.specialistPools[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse.specialistPools: object expected"); - message.specialistPools[i] = $root.google.cloud.aiplatform.v1beta1.SpecialistPool.fromObject(object.specialistPools[i]); + /** + * Constructs a new PolylineAnnotation. + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation + * @classdesc Represents a PolylineAnnotation. + * @implements IPolylineAnnotation + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.IPolylineAnnotation=} [properties] Properties to set + */ + function PolylineAnnotation(properties) { + this.vertexes = []; + 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]]; } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; - /** - * Creates a plain object from a ListSpecialistPoolsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse} message ListSpecialistPoolsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListSpecialistPoolsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.specialistPools = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.specialistPools && message.specialistPools.length) { - object.specialistPools = []; - for (var j = 0; j < message.specialistPools.length; ++j) - object.specialistPools[j] = $root.google.cloud.aiplatform.v1beta1.SpecialistPool.toObject(message.specialistPools[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; + /** + * PolylineAnnotation vertexes. + * @member {Array.} vertexes + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolylineAnnotation + * @instance + */ + PolylineAnnotation.prototype.vertexes = $util.emptyArray; - /** - * Converts this ListSpecialistPoolsResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse - * @instance - * @returns {Object.} JSON object - */ - ListSpecialistPoolsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * PolylineAnnotation annotationSpecId. + * @member {string} annotationSpecId + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolylineAnnotation + * @instance + */ + PolylineAnnotation.prototype.annotationSpecId = ""; - return ListSpecialistPoolsResponse; - })(); + /** + * PolylineAnnotation displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolylineAnnotation + * @instance + */ + PolylineAnnotation.prototype.displayName = ""; - v1beta1.DeleteSpecialistPoolRequest = (function() { + /** + * Creates a new PolylineAnnotation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolylineAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.IPolylineAnnotation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolylineAnnotation} PolylineAnnotation instance + */ + PolylineAnnotation.create = function create(properties) { + return new PolylineAnnotation(properties); + }; - /** - * Properties of a DeleteSpecialistPoolRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteSpecialistPoolRequest - * @property {string|null} [name] DeleteSpecialistPoolRequest name - * @property {boolean|null} [force] DeleteSpecialistPoolRequest force - */ + /** + * Encodes the specified PolylineAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolylineAnnotation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolylineAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.IPolylineAnnotation} message PolylineAnnotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PolylineAnnotation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.vertexes != null && message.vertexes.length) + for (var i = 0; i < message.vertexes.length; ++i) + $root.google.cloud.aiplatform.v1beta1.schema.Vertex.encode(message.vertexes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.annotationSpecId != null && Object.hasOwnProperty.call(message, "annotationSpecId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.annotationSpecId); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); + return writer; + }; - /** - * Constructs a new DeleteSpecialistPoolRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteSpecialistPoolRequest. - * @implements IDeleteSpecialistPoolRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteSpecialistPoolRequest=} [properties] Properties to set - */ - function DeleteSpecialistPoolRequest(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]]; - } + /** + * Encodes the specified PolylineAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolylineAnnotation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolylineAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.IPolylineAnnotation} message PolylineAnnotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PolylineAnnotation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * DeleteSpecialistPoolRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest - * @instance - */ - DeleteSpecialistPoolRequest.prototype.name = ""; + /** + * Decodes a PolylineAnnotation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolylineAnnotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolylineAnnotation} PolylineAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PolylineAnnotation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolylineAnnotation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.vertexes && message.vertexes.length)) + message.vertexes = []; + message.vertexes.push($root.google.cloud.aiplatform.v1beta1.schema.Vertex.decode(reader, reader.uint32())); + break; + case 2: + message.annotationSpecId = reader.string(); + break; + case 3: + message.displayName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * DeleteSpecialistPoolRequest force. - * @member {boolean} force - * @memberof google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest - * @instance - */ - DeleteSpecialistPoolRequest.prototype.force = false; + /** + * Decodes a PolylineAnnotation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolylineAnnotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolylineAnnotation} PolylineAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PolylineAnnotation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a new DeleteSpecialistPoolRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteSpecialistPoolRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest} DeleteSpecialistPoolRequest instance - */ - DeleteSpecialistPoolRequest.create = function create(properties) { - return new DeleteSpecialistPoolRequest(properties); - }; + /** + * Verifies a PolylineAnnotation message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolylineAnnotation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PolylineAnnotation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.vertexes != null && message.hasOwnProperty("vertexes")) { + if (!Array.isArray(message.vertexes)) + return "vertexes: array expected"; + for (var i = 0; i < message.vertexes.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.schema.Vertex.verify(message.vertexes[i]); + if (error) + return "vertexes." + 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; + }; - /** - * Encodes the specified DeleteSpecialistPoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteSpecialistPoolRequest} message DeleteSpecialistPoolRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteSpecialistPoolRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); - return writer; - }; + /** + * Creates a PolylineAnnotation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolylineAnnotation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolylineAnnotation} PolylineAnnotation + */ + PolylineAnnotation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolylineAnnotation) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolylineAnnotation(); + if (object.vertexes) { + if (!Array.isArray(object.vertexes)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolylineAnnotation.vertexes: array expected"); + message.vertexes = []; + for (var i = 0; i < object.vertexes.length; ++i) { + if (typeof object.vertexes[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolylineAnnotation.vertexes: object expected"); + message.vertexes[i] = $root.google.cloud.aiplatform.v1beta1.schema.Vertex.fromObject(object.vertexes[i]); + } + } + if (object.annotationSpecId != null) + message.annotationSpecId = String(object.annotationSpecId); + if (object.displayName != null) + message.displayName = String(object.displayName); + return message; + }; - /** - * Encodes the specified DeleteSpecialistPoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteSpecialistPoolRequest} message DeleteSpecialistPoolRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteSpecialistPoolRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a plain object from a PolylineAnnotation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolylineAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolylineAnnotation} message PolylineAnnotation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PolylineAnnotation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.vertexes = []; + if (options.defaults) { + object.annotationSpecId = ""; + object.displayName = ""; + } + if (message.vertexes && message.vertexes.length) { + object.vertexes = []; + for (var j = 0; j < message.vertexes.length; ++j) + object.vertexes[j] = $root.google.cloud.aiplatform.v1beta1.schema.Vertex.toObject(message.vertexes[j], options); + } + if (message.annotationSpecId != null && message.hasOwnProperty("annotationSpecId")) + object.annotationSpecId = message.annotationSpecId; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + return object; + }; - /** - * Decodes a DeleteSpecialistPoolRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest} DeleteSpecialistPoolRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteSpecialistPoolRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.force = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Converts this PolylineAnnotation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationAnnotation.PolylineAnnotation + * @instance + * @returns {Object.} JSON object + */ + PolylineAnnotation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Decodes a DeleteSpecialistPoolRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest} DeleteSpecialistPoolRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteSpecialistPoolRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + return PolylineAnnotation; + })(); - /** - * Verifies a DeleteSpecialistPoolRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DeleteSpecialistPoolRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; - return null; - }; + return ImageSegmentationAnnotation; + })(); - /** - * Creates a DeleteSpecialistPoolRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest} DeleteSpecialistPoolRequest - */ - DeleteSpecialistPoolRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.force != null) - message.force = Boolean(object.force); - return message; - }; + schema.TextClassificationAnnotation = (function() { - /** - * Creates a plain object from a DeleteSpecialistPoolRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest} message DeleteSpecialistPoolRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeleteSpecialistPoolRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.force = false; + /** + * Properties of a TextClassificationAnnotation. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface ITextClassificationAnnotation + * @property {string|null} [annotationSpecId] TextClassificationAnnotation annotationSpecId + * @property {string|null} [displayName] TextClassificationAnnotation displayName + */ + + /** + * Constructs a new TextClassificationAnnotation. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents a TextClassificationAnnotation. + * @implements ITextClassificationAnnotation + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.ITextClassificationAnnotation=} [properties] Properties to set + */ + function TextClassificationAnnotation(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]]; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; - return object; - }; - /** - * Converts this DeleteSpecialistPoolRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest - * @instance - * @returns {Object.} JSON object - */ - DeleteSpecialistPoolRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * TextClassificationAnnotation annotationSpecId. + * @member {string} annotationSpecId + * @memberof google.cloud.aiplatform.v1beta1.schema.TextClassificationAnnotation + * @instance + */ + TextClassificationAnnotation.prototype.annotationSpecId = ""; - return DeleteSpecialistPoolRequest; - })(); + /** + * TextClassificationAnnotation displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.schema.TextClassificationAnnotation + * @instance + */ + TextClassificationAnnotation.prototype.displayName = ""; - v1beta1.UpdateSpecialistPoolRequest = (function() { + /** + * Creates a new TextClassificationAnnotation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.TextClassificationAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITextClassificationAnnotation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.TextClassificationAnnotation} TextClassificationAnnotation instance + */ + TextClassificationAnnotation.create = function create(properties) { + return new TextClassificationAnnotation(properties); + }; - /** - * Properties of an UpdateSpecialistPoolRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdateSpecialistPoolRequest - * @property {google.cloud.aiplatform.v1beta1.ISpecialistPool|null} [specialistPool] UpdateSpecialistPoolRequest specialistPool - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSpecialistPoolRequest updateMask - */ + /** + * Encodes the specified TextClassificationAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextClassificationAnnotation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.TextClassificationAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITextClassificationAnnotation} message TextClassificationAnnotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TextClassificationAnnotation.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.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + return writer; + }; - /** - * Constructs a new UpdateSpecialistPoolRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateSpecialistPoolRequest. - * @implements IUpdateSpecialistPoolRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolRequest=} [properties] Properties to set - */ - function UpdateSpecialistPoolRequest(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]]; - } + /** + * Encodes the specified TextClassificationAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextClassificationAnnotation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TextClassificationAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITextClassificationAnnotation} message TextClassificationAnnotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TextClassificationAnnotation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * UpdateSpecialistPoolRequest specialistPool. - * @member {google.cloud.aiplatform.v1beta1.ISpecialistPool|null|undefined} specialistPool - * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest - * @instance - */ - UpdateSpecialistPoolRequest.prototype.specialistPool = null; + /** + * Decodes a TextClassificationAnnotation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.TextClassificationAnnotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.TextClassificationAnnotation} TextClassificationAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TextClassificationAnnotation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.TextClassificationAnnotation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.annotationSpecId = reader.string(); + break; + case 2: + message.displayName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * UpdateSpecialistPoolRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest - * @instance - */ - UpdateSpecialistPoolRequest.prototype.updateMask = null; + /** + * Decodes a TextClassificationAnnotation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TextClassificationAnnotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.TextClassificationAnnotation} TextClassificationAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TextClassificationAnnotation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a new UpdateSpecialistPoolRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest} UpdateSpecialistPoolRequest instance - */ - UpdateSpecialistPoolRequest.create = function create(properties) { - return new UpdateSpecialistPoolRequest(properties); - }; + /** + * Verifies a TextClassificationAnnotation message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.TextClassificationAnnotation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TextClassificationAnnotation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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; + }; - /** - * Encodes the specified UpdateSpecialistPoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolRequest} message UpdateSpecialistPoolRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateSpecialistPoolRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.specialistPool != null && Object.hasOwnProperty.call(message, "specialistPool")) - $root.google.cloud.aiplatform.v1beta1.SpecialistPool.encode(message.specialistPool, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Creates a TextClassificationAnnotation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TextClassificationAnnotation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.TextClassificationAnnotation} TextClassificationAnnotation + */ + TextClassificationAnnotation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.TextClassificationAnnotation) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.TextClassificationAnnotation(); + if (object.annotationSpecId != null) + message.annotationSpecId = String(object.annotationSpecId); + if (object.displayName != null) + message.displayName = String(object.displayName); + return message; + }; - /** - * Encodes the specified UpdateSpecialistPoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolRequest} message UpdateSpecialistPoolRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateSpecialistPoolRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an UpdateSpecialistPoolRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest} UpdateSpecialistPoolRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateSpecialistPoolRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.specialistPool = $root.google.cloud.aiplatform.v1beta1.SpecialistPool.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Creates a plain object from a TextClassificationAnnotation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TextClassificationAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TextClassificationAnnotation} message TextClassificationAnnotation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TextClassificationAnnotation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.annotationSpecId = ""; + object.displayName = ""; } - } - return message; - }; - - /** - * Decodes an UpdateSpecialistPoolRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest} UpdateSpecialistPoolRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateSpecialistPoolRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UpdateSpecialistPoolRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UpdateSpecialistPoolRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.specialistPool != null && message.hasOwnProperty("specialistPool")) { - var error = $root.google.cloud.aiplatform.v1beta1.SpecialistPool.verify(message.specialistPool); - if (error) - return "specialistPool." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } - return null; - }; - - /** - * Creates an UpdateSpecialistPoolRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest} UpdateSpecialistPoolRequest - */ - UpdateSpecialistPoolRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest) + if (message.annotationSpecId != null && message.hasOwnProperty("annotationSpecId")) + object.annotationSpecId = message.annotationSpecId; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest(); - if (object.specialistPool != null) { - if (typeof object.specialistPool !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest.specialistPool: object expected"); - message.specialistPool = $root.google.cloud.aiplatform.v1beta1.SpecialistPool.fromObject(object.specialistPool); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } - return message; - }; + }; - /** - * Creates a plain object from an UpdateSpecialistPoolRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest} message UpdateSpecialistPoolRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UpdateSpecialistPoolRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.specialistPool = null; - object.updateMask = null; - } - if (message.specialistPool != null && message.hasOwnProperty("specialistPool")) - object.specialistPool = $root.google.cloud.aiplatform.v1beta1.SpecialistPool.toObject(message.specialistPool, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - return object; - }; + /** + * Converts this TextClassificationAnnotation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.TextClassificationAnnotation + * @instance + * @returns {Object.} JSON object + */ + TextClassificationAnnotation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this UpdateSpecialistPoolRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest - * @instance - * @returns {Object.} JSON object - */ - UpdateSpecialistPoolRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return TextClassificationAnnotation; + })(); - return UpdateSpecialistPoolRequest; - })(); + schema.TextExtractionAnnotation = (function() { - v1beta1.UpdateSpecialistPoolOperationMetadata = (function() { + /** + * Properties of a TextExtractionAnnotation. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface ITextExtractionAnnotation + * @property {google.cloud.aiplatform.v1beta1.schema.ITextSegment|null} [textSegment] TextExtractionAnnotation textSegment + * @property {string|null} [annotationSpecId] TextExtractionAnnotation annotationSpecId + * @property {string|null} [displayName] TextExtractionAnnotation displayName + */ - /** - * Properties of an UpdateSpecialistPoolOperationMetadata. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdateSpecialistPoolOperationMetadata - * @property {string|null} [specialistPool] UpdateSpecialistPoolOperationMetadata specialistPool - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UpdateSpecialistPoolOperationMetadata genericMetadata - */ + /** + * Constructs a new TextExtractionAnnotation. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents a TextExtractionAnnotation. + * @implements ITextExtractionAnnotation + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.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]]; + } - /** - * Constructs a new UpdateSpecialistPoolOperationMetadata. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateSpecialistPoolOperationMetadata. - * @implements IUpdateSpecialistPoolOperationMetadata - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolOperationMetadata=} [properties] Properties to set - */ - function UpdateSpecialistPoolOperationMetadata(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.aiplatform.v1beta1.schema.ITextSegment|null|undefined} textSegment + * @memberof google.cloud.aiplatform.v1beta1.schema.TextExtractionAnnotation + * @instance + */ + TextExtractionAnnotation.prototype.textSegment = null; - /** - * UpdateSpecialistPoolOperationMetadata specialistPool. - * @member {string} specialistPool - * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata - * @instance - */ - UpdateSpecialistPoolOperationMetadata.prototype.specialistPool = ""; + /** + * TextExtractionAnnotation annotationSpecId. + * @member {string} annotationSpecId + * @memberof google.cloud.aiplatform.v1beta1.schema.TextExtractionAnnotation + * @instance + */ + TextExtractionAnnotation.prototype.annotationSpecId = ""; - /** - * UpdateSpecialistPoolOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata - * @instance - */ - UpdateSpecialistPoolOperationMetadata.prototype.genericMetadata = null; + /** + * TextExtractionAnnotation displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.schema.TextExtractionAnnotation + * @instance + */ + TextExtractionAnnotation.prototype.displayName = ""; - /** - * Creates a new UpdateSpecialistPoolOperationMetadata instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata} UpdateSpecialistPoolOperationMetadata instance - */ - UpdateSpecialistPoolOperationMetadata.create = function create(properties) { - return new UpdateSpecialistPoolOperationMetadata(properties); - }; + /** + * Creates a new TextExtractionAnnotation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.TextExtractionAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITextExtractionAnnotation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.TextExtractionAnnotation} TextExtractionAnnotation instance + */ + TextExtractionAnnotation.create = function create(properties) { + return new TextExtractionAnnotation(properties); + }; - /** - * Encodes the specified UpdateSpecialistPoolOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolOperationMetadata} message UpdateSpecialistPoolOperationMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateSpecialistPoolOperationMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.specialistPool != null && Object.hasOwnProperty.call(message, "specialistPool")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.specialistPool); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified TextExtractionAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextExtractionAnnotation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.TextExtractionAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.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.textSegment != null && Object.hasOwnProperty.call(message, "textSegment")) + $root.google.cloud.aiplatform.v1beta1.schema.TextSegment.encode(message.textSegment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.annotationSpecId != null && Object.hasOwnProperty.call(message, "annotationSpecId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.annotationSpecId); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); + return writer; + }; - /** - * Encodes the specified UpdateSpecialistPoolOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolOperationMetadata} message UpdateSpecialistPoolOperationMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateSpecialistPoolOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified TextExtractionAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextExtractionAnnotation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TextExtractionAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.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 an UpdateSpecialistPoolOperationMetadata message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata} UpdateSpecialistPoolOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateSpecialistPoolOperationMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.specialistPool = reader.string(); - break; - case 2: - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Decodes a TextExtractionAnnotation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.TextExtractionAnnotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.TextExtractionAnnotation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.textSegment = $root.google.cloud.aiplatform.v1beta1.schema.TextSegment.decode(reader, reader.uint32()); + break; + case 2: + message.annotationSpecId = reader.string(); + break; + case 3: + message.displayName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes an UpdateSpecialistPoolOperationMetadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata} UpdateSpecialistPoolOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateSpecialistPoolOperationMetadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a TextExtractionAnnotation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TextExtractionAnnotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.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 an UpdateSpecialistPoolOperationMetadata message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UpdateSpecialistPoolOperationMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.specialistPool != null && message.hasOwnProperty("specialistPool")) - if (!$util.isString(message.specialistPool)) - return "specialistPool: string expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; - } - return null; - }; + /** + * Verifies a TextExtractionAnnotation message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.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"; + if (message.textSegment != null && message.hasOwnProperty("textSegment")) { + var error = $root.google.cloud.aiplatform.v1beta1.schema.TextSegment.verify(message.textSegment); + if (error) + return "textSegment." + 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 UpdateSpecialistPoolOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata} UpdateSpecialistPoolOperationMetadata - */ - UpdateSpecialistPoolOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata(); - if (object.specialistPool != null) - message.specialistPool = String(object.specialistPool); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); - } - return message; - }; + /** + * Creates a TextExtractionAnnotation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TextExtractionAnnotation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.TextExtractionAnnotation} TextExtractionAnnotation + */ + TextExtractionAnnotation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.TextExtractionAnnotation) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.TextExtractionAnnotation(); + if (object.textSegment != null) { + if (typeof object.textSegment !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.TextExtractionAnnotation.textSegment: object expected"); + message.textSegment = $root.google.cloud.aiplatform.v1beta1.schema.TextSegment.fromObject(object.textSegment); + } + 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 UpdateSpecialistPoolOperationMetadata message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata} message UpdateSpecialistPoolOperationMetadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UpdateSpecialistPoolOperationMetadata.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.specialistPool = ""; - object.genericMetadata = null; - } - if (message.specialistPool != null && message.hasOwnProperty("specialistPool")) - object.specialistPool = message.specialistPool; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); - return object; - }; + /** + * Creates a plain object from a TextExtractionAnnotation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TextExtractionAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.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.textSegment = null; + object.annotationSpecId = ""; + object.displayName = ""; + } + if (message.textSegment != null && message.hasOwnProperty("textSegment")) + object.textSegment = $root.google.cloud.aiplatform.v1beta1.schema.TextSegment.toObject(message.textSegment, options); + if (message.annotationSpecId != null && message.hasOwnProperty("annotationSpecId")) + object.annotationSpecId = message.annotationSpecId; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + return object; + }; - /** - * Converts this UpdateSpecialistPoolOperationMetadata to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata - * @instance - * @returns {Object.} JSON object - */ - UpdateSpecialistPoolOperationMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this TextExtractionAnnotation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.TextExtractionAnnotation + * @instance + * @returns {Object.} JSON object + */ + TextExtractionAnnotation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return UpdateSpecialistPoolOperationMetadata; - })(); + return TextExtractionAnnotation; + })(); - return v1beta1; - })(); + schema.TextSegment = (function() { - return aiplatform; - })(); + /** + * Properties of a TextSegment. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface ITextSegment + * @property {number|Long|null} [startOffset] TextSegment startOffset + * @property {number|Long|null} [endOffset] TextSegment endOffset + * @property {string|null} [content] TextSegment content + */ - return cloud; - })(); + /** + * Constructs a new TextSegment. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents a TextSegment. + * @implements ITextSegment + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.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]]; + } - google.api = (function() { + /** + * TextSegment startOffset. + * @member {number|Long} startOffset + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSegment + * @instance + */ + TextSegment.prototype.startOffset = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - /** - * Namespace api. - * @memberof google - * @namespace - */ - var api = {}; + /** + * TextSegment endOffset. + * @member {number|Long} endOffset + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSegment + * @instance + */ + TextSegment.prototype.endOffset = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - api.Http = (function() { + /** + * TextSegment content. + * @member {string} content + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSegment + * @instance + */ + TextSegment.prototype.content = ""; - /** - * Properties of a Http. - * @memberof google.api - * @interface IHttp - * @property {Array.|null} [rules] Http rules - * @property {boolean|null} [fullyDecodeReservedExpansion] Http fullyDecodeReservedExpansion - */ + /** + * Creates a new TextSegment instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSegment + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITextSegment=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.TextSegment} TextSegment instance + */ + TextSegment.create = function create(properties) { + return new TextSegment(properties); + }; - /** - * Constructs a new Http. - * @memberof google.api - * @classdesc Represents a Http. - * @implements IHttp - * @constructor - * @param {google.api.IHttp=} [properties] Properties to set - */ - function Http(properties) { - this.rules = []; - 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]]; - } + /** + * Encodes the specified TextSegment message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextSegment.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSegment + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.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).uint64(message.startOffset); + if (message.endOffset != null && Object.hasOwnProperty.call(message, "endOffset")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.endOffset); + if (message.content != null && Object.hasOwnProperty.call(message, "content")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.content); + return writer; + }; - /** - * Http rules. - * @member {Array.} rules - * @memberof google.api.Http - * @instance - */ - Http.prototype.rules = $util.emptyArray; + /** + * Encodes the specified TextSegment message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextSegment.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSegment + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.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(); + }; - /** - * Http fullyDecodeReservedExpansion. - * @member {boolean} fullyDecodeReservedExpansion - * @memberof google.api.Http - * @instance - */ - Http.prototype.fullyDecodeReservedExpansion = false; + /** + * Decodes a TextSegment message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSegment + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.TextSegment(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.startOffset = reader.uint64(); + break; + case 2: + message.endOffset = reader.uint64(); + break; + case 3: + message.content = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a new Http instance using the specified properties. - * @function create - * @memberof google.api.Http - * @static - * @param {google.api.IHttp=} [properties] Properties to set - * @returns {google.api.Http} Http instance - */ - Http.create = function create(properties) { - return new Http(properties); - }; + /** + * Decodes a TextSegment message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSegment + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.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()); + }; - /** - * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. - * @function encode - * @memberof google.api.Http - * @static - * @param {google.api.IHttp} message Http message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Http.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.rules != null && message.rules.length) - for (var i = 0; i < message.rules.length; ++i) - $root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.fullyDecodeReservedExpansion != null && Object.hasOwnProperty.call(message, "fullyDecodeReservedExpansion")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.fullyDecodeReservedExpansion); - return writer; - }; + /** + * Verifies a TextSegment message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.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.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"; + if (message.content != null && message.hasOwnProperty("content")) + if (!$util.isString(message.content)) + return "content: string expected"; + return null; + }; - /** - * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. - * @function encodeDelimited - * @memberof google.api.Http - * @static - * @param {google.api.IHttp} message Http message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Http.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a TextSegment message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSegment + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.TextSegment} TextSegment + */ + TextSegment.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.TextSegment) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.TextSegment(); + if (object.startOffset != null) + if ($util.Long) + (message.startOffset = $util.Long.fromValue(object.startOffset)).unsigned = true; + 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(true); + if (object.endOffset != null) + if ($util.Long) + (message.endOffset = $util.Long.fromValue(object.endOffset)).unsigned = true; + 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(true); + if (object.content != null) + message.content = String(object.content); + return message; + }; - /** - * Decodes a Http message from the specified reader or buffer. - * @function decode - * @memberof google.api.Http - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.api.Http} Http - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Http.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.api.Http(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.rules && message.rules.length)) - message.rules = []; - message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32())); - break; - case 2: - message.fullyDecodeReservedExpansion = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a plain object from a TextSegment message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSegment + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.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, true); + 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, true); + 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(true) : 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(true) : message.endOffset; + if (message.content != null && message.hasOwnProperty("content")) + object.content = message.content; + return object; + }; - /** - * Decodes a Http message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.api.Http - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.Http} Http - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Http.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Converts this TextSegment to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSegment + * @instance + * @returns {Object.} JSON object + */ + TextSegment.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Verifies a Http message. - * @function verify - * @memberof google.api.Http - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Http.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.rules != null && message.hasOwnProperty("rules")) { - if (!Array.isArray(message.rules)) - return "rules: array expected"; - for (var i = 0; i < message.rules.length; ++i) { - var error = $root.google.api.HttpRule.verify(message.rules[i]); - if (error) - return "rules." + error; - } - } - if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion")) - if (typeof message.fullyDecodeReservedExpansion !== "boolean") - return "fullyDecodeReservedExpansion: boolean expected"; - return null; - }; + return TextSegment; + })(); - /** - * Creates a Http message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.api.Http - * @static - * @param {Object.} object Plain object - * @returns {google.api.Http} Http - */ - Http.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.Http) - return object; - var message = new $root.google.api.Http(); - if (object.rules) { - if (!Array.isArray(object.rules)) - throw TypeError(".google.api.Http.rules: array expected"); - message.rules = []; - for (var i = 0; i < object.rules.length; ++i) { - if (typeof object.rules[i] !== "object") - throw TypeError(".google.api.Http.rules: object expected"); - message.rules[i] = $root.google.api.HttpRule.fromObject(object.rules[i]); - } - } - if (object.fullyDecodeReservedExpansion != null) - message.fullyDecodeReservedExpansion = Boolean(object.fullyDecodeReservedExpansion); - return message; - }; - - /** - * Creates a plain object from a Http message. Also converts values to other types if specified. - * @function toObject - * @memberof google.api.Http - * @static - * @param {google.api.Http} message Http - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Http.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.rules = []; - if (options.defaults) - object.fullyDecodeReservedExpansion = false; - if (message.rules && message.rules.length) { - object.rules = []; - for (var j = 0; j < message.rules.length; ++j) - object.rules[j] = $root.google.api.HttpRule.toObject(message.rules[j], options); - } - if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion")) - object.fullyDecodeReservedExpansion = message.fullyDecodeReservedExpansion; - return object; - }; - - /** - * Converts this Http to JSON. - * @function toJSON - * @memberof google.api.Http - * @instance - * @returns {Object.} JSON object - */ - Http.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + schema.TextSentimentAnnotation = (function() { - return Http; - })(); + /** + * Properties of a TextSentimentAnnotation. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface ITextSentimentAnnotation + * @property {number|null} [sentiment] TextSentimentAnnotation sentiment + * @property {number|null} [sentimentMax] TextSentimentAnnotation sentimentMax + * @property {string|null} [annotationSpecId] TextSentimentAnnotation annotationSpecId + * @property {string|null} [displayName] TextSentimentAnnotation displayName + */ - api.HttpRule = (function() { + /** + * Constructs a new TextSentimentAnnotation. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents a TextSentimentAnnotation. + * @implements ITextSentimentAnnotation + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.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]]; + } - /** - * Properties of a HttpRule. - * @memberof google.api - * @interface IHttpRule - * @property {string|null} [selector] HttpRule selector - * @property {string|null} [get] HttpRule get - * @property {string|null} [put] HttpRule put - * @property {string|null} [post] HttpRule post - * @property {string|null} ["delete"] HttpRule delete - * @property {string|null} [patch] HttpRule patch - * @property {google.api.ICustomHttpPattern|null} [custom] HttpRule custom - * @property {string|null} [body] HttpRule body - * @property {string|null} [responseBody] HttpRule responseBody - * @property {Array.|null} [additionalBindings] HttpRule additionalBindings - */ + /** + * TextSentimentAnnotation sentiment. + * @member {number} sentiment + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentAnnotation + * @instance + */ + TextSentimentAnnotation.prototype.sentiment = 0; - /** - * Constructs a new HttpRule. - * @memberof google.api - * @classdesc Represents a HttpRule. - * @implements IHttpRule - * @constructor - * @param {google.api.IHttpRule=} [properties] Properties to set - */ - function HttpRule(properties) { - this.additionalBindings = []; - 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 sentimentMax. + * @member {number} sentimentMax + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentAnnotation + * @instance + */ + TextSentimentAnnotation.prototype.sentimentMax = 0; - /** - * HttpRule selector. - * @member {string} selector - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.selector = ""; + /** + * TextSentimentAnnotation annotationSpecId. + * @member {string} annotationSpecId + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentAnnotation + * @instance + */ + TextSentimentAnnotation.prototype.annotationSpecId = ""; - /** - * HttpRule get. - * @member {string} get - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.get = ""; + /** + * TextSentimentAnnotation displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentAnnotation + * @instance + */ + TextSentimentAnnotation.prototype.displayName = ""; - /** - * HttpRule put. - * @member {string} put - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.put = ""; + /** + * Creates a new TextSentimentAnnotation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITextSentimentAnnotation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.TextSentimentAnnotation} TextSentimentAnnotation instance + */ + TextSentimentAnnotation.create = function create(properties) { + return new TextSentimentAnnotation(properties); + }; - /** - * HttpRule post. - * @member {string} post - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.post = ""; + /** + * Encodes the specified TextSentimentAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextSentimentAnnotation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.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); + if (message.sentimentMax != null && Object.hasOwnProperty.call(message, "sentimentMax")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.sentimentMax); + if (message.annotationSpecId != null && Object.hasOwnProperty.call(message, "annotationSpecId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.annotationSpecId); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.displayName); + return writer; + }; - /** - * HttpRule delete. - * @member {string} delete - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype["delete"] = ""; + /** + * Encodes the specified TextSentimentAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextSentimentAnnotation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.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(); + }; - /** - * HttpRule patch. - * @member {string} patch - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.patch = ""; + /** + * Decodes a TextSentimentAnnotation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentAnnotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.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.aiplatform.v1beta1.schema.TextSentimentAnnotation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sentiment = reader.int32(); + break; + case 2: + message.sentimentMax = reader.int32(); + break; + case 3: + message.annotationSpecId = reader.string(); + break; + case 4: + message.displayName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * HttpRule custom. - * @member {google.api.ICustomHttpPattern|null|undefined} custom - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.custom = null; + /** + * Decodes a TextSentimentAnnotation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentAnnotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.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()); + }; - /** - * HttpRule body. - * @member {string} body - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.body = ""; + /** + * Verifies a TextSentimentAnnotation message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.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"; + if (message.sentimentMax != null && message.hasOwnProperty("sentimentMax")) + if (!$util.isInteger(message.sentimentMax)) + return "sentimentMax: integer expected"; + 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; + }; - /** - * HttpRule responseBody. - * @member {string} responseBody - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.responseBody = ""; + /** + * Creates a TextSentimentAnnotation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentAnnotation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.TextSentimentAnnotation} TextSentimentAnnotation + */ + TextSentimentAnnotation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.TextSentimentAnnotation) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.TextSentimentAnnotation(); + if (object.sentiment != null) + message.sentiment = object.sentiment | 0; + if (object.sentimentMax != null) + message.sentimentMax = object.sentimentMax | 0; + if (object.annotationSpecId != null) + message.annotationSpecId = String(object.annotationSpecId); + if (object.displayName != null) + message.displayName = String(object.displayName); + return message; + }; - /** - * HttpRule additionalBindings. - * @member {Array.} additionalBindings - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.additionalBindings = $util.emptyArray; + /** + * Creates a plain object from a TextSentimentAnnotation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.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; + object.sentimentMax = 0; + object.annotationSpecId = ""; + object.displayName = ""; + } + if (message.sentiment != null && message.hasOwnProperty("sentiment")) + object.sentiment = message.sentiment; + if (message.sentimentMax != null && message.hasOwnProperty("sentimentMax")) + object.sentimentMax = message.sentimentMax; + if (message.annotationSpecId != null && message.hasOwnProperty("annotationSpecId")) + object.annotationSpecId = message.annotationSpecId; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + return object; + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Converts this TextSentimentAnnotation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentAnnotation + * @instance + * @returns {Object.} JSON object + */ + TextSentimentAnnotation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * HttpRule pattern. - * @member {"get"|"put"|"post"|"delete"|"patch"|"custom"|undefined} pattern - * @memberof google.api.HttpRule - * @instance - */ - Object.defineProperty(HttpRule.prototype, "pattern", { - get: $util.oneOfGetter($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"]), - set: $util.oneOfSetter($oneOfFields) - }); + return TextSentimentAnnotation; + })(); - /** - * Creates a new HttpRule instance using the specified properties. - * @function create - * @memberof google.api.HttpRule - * @static - * @param {google.api.IHttpRule=} [properties] Properties to set - * @returns {google.api.HttpRule} HttpRule instance - */ - HttpRule.create = function create(properties) { - return new HttpRule(properties); - }; + schema.VideoClassificationAnnotation = (function() { - /** - * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. - * @function encode - * @memberof google.api.HttpRule - * @static - * @param {google.api.IHttpRule} message HttpRule message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - HttpRule.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.selector != null && Object.hasOwnProperty.call(message, "selector")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector); - if (message.get != null && Object.hasOwnProperty.call(message, "get")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.get); - if (message.put != null && Object.hasOwnProperty.call(message, "put")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.put); - if (message.post != null && Object.hasOwnProperty.call(message, "post")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.post); - if (message["delete"] != null && Object.hasOwnProperty.call(message, "delete")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message["delete"]); - if (message.patch != null && Object.hasOwnProperty.call(message, "patch")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.patch); - if (message.body != null && Object.hasOwnProperty.call(message, "body")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.body); - if (message.custom != null && Object.hasOwnProperty.call(message, "custom")) - $root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.additionalBindings != null && message.additionalBindings.length) - for (var i = 0; i < message.additionalBindings.length; ++i) - $root.google.api.HttpRule.encode(message.additionalBindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.responseBody != null && Object.hasOwnProperty.call(message, "responseBody")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.responseBody); - return writer; - }; + /** + * Properties of a VideoClassificationAnnotation. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface IVideoClassificationAnnotation + * @property {google.cloud.aiplatform.v1beta1.schema.ITimeSegment|null} [timeSegment] VideoClassificationAnnotation timeSegment + * @property {string|null} [annotationSpecId] VideoClassificationAnnotation annotationSpecId + * @property {string|null} [displayName] VideoClassificationAnnotation displayName + */ - /** - * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. - * @function encodeDelimited - * @memberof google.api.HttpRule - * @static - * @param {google.api.IHttpRule} message HttpRule message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - HttpRule.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Constructs a new VideoClassificationAnnotation. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents a VideoClassificationAnnotation. + * @implements IVideoClassificationAnnotation + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoClassificationAnnotation=} [properties] Properties to set + */ + function VideoClassificationAnnotation(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]]; + } - /** - * Decodes a HttpRule message from the specified reader or buffer. - * @function decode - * @memberof google.api.HttpRule - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.api.HttpRule} HttpRule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - HttpRule.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.api.HttpRule(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.selector = reader.string(); - break; - case 2: - message.get = reader.string(); - break; - case 3: - message.put = reader.string(); - break; - case 4: - message.post = reader.string(); - break; - case 5: - message["delete"] = reader.string(); - break; - case 6: - message.patch = reader.string(); - break; - case 8: - message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32()); - break; - case 7: - message.body = reader.string(); - break; - case 12: - message.responseBody = reader.string(); - break; - case 11: - if (!(message.additionalBindings && message.additionalBindings.length)) - message.additionalBindings = []; - message.additionalBindings.push($root.google.api.HttpRule.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * VideoClassificationAnnotation timeSegment. + * @member {google.cloud.aiplatform.v1beta1.schema.ITimeSegment|null|undefined} timeSegment + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationAnnotation + * @instance + */ + VideoClassificationAnnotation.prototype.timeSegment = null; - /** - * Decodes a HttpRule message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.api.HttpRule - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.HttpRule} HttpRule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - HttpRule.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * VideoClassificationAnnotation annotationSpecId. + * @member {string} annotationSpecId + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationAnnotation + * @instance + */ + VideoClassificationAnnotation.prototype.annotationSpecId = ""; - /** - * Verifies a HttpRule message. - * @function verify - * @memberof google.api.HttpRule - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - HttpRule.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.selector != null && message.hasOwnProperty("selector")) - if (!$util.isString(message.selector)) - return "selector: string expected"; - if (message.get != null && message.hasOwnProperty("get")) { - properties.pattern = 1; - if (!$util.isString(message.get)) - return "get: string expected"; - } - if (message.put != null && message.hasOwnProperty("put")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message.put)) - return "put: string expected"; - } - if (message.post != null && message.hasOwnProperty("post")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message.post)) - return "post: string expected"; - } - if (message["delete"] != null && message.hasOwnProperty("delete")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message["delete"])) - return "delete: string expected"; - } - if (message.patch != null && message.hasOwnProperty("patch")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message.patch)) - return "patch: string expected"; - } - if (message.custom != null && message.hasOwnProperty("custom")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - { - var error = $root.google.api.CustomHttpPattern.verify(message.custom); - if (error) - return "custom." + error; - } - } - if (message.body != null && message.hasOwnProperty("body")) - if (!$util.isString(message.body)) - return "body: string expected"; - if (message.responseBody != null && message.hasOwnProperty("responseBody")) - if (!$util.isString(message.responseBody)) - return "responseBody: string expected"; - if (message.additionalBindings != null && message.hasOwnProperty("additionalBindings")) { - if (!Array.isArray(message.additionalBindings)) - return "additionalBindings: array expected"; - for (var i = 0; i < message.additionalBindings.length; ++i) { - var error = $root.google.api.HttpRule.verify(message.additionalBindings[i]); - if (error) - return "additionalBindings." + error; - } - } - return null; - }; + /** + * VideoClassificationAnnotation displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationAnnotation + * @instance + */ + VideoClassificationAnnotation.prototype.displayName = ""; - /** - * Creates a HttpRule message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.api.HttpRule - * @static - * @param {Object.} object Plain object - * @returns {google.api.HttpRule} HttpRule - */ - HttpRule.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.HttpRule) - return object; - var message = new $root.google.api.HttpRule(); - if (object.selector != null) - message.selector = String(object.selector); - if (object.get != null) - message.get = String(object.get); - if (object.put != null) - message.put = String(object.put); - if (object.post != null) - message.post = String(object.post); - if (object["delete"] != null) - message["delete"] = String(object["delete"]); - if (object.patch != null) - message.patch = String(object.patch); - if (object.custom != null) { - if (typeof object.custom !== "object") - throw TypeError(".google.api.HttpRule.custom: object expected"); - message.custom = $root.google.api.CustomHttpPattern.fromObject(object.custom); - } - if (object.body != null) - message.body = String(object.body); - if (object.responseBody != null) - message.responseBody = String(object.responseBody); - if (object.additionalBindings) { - if (!Array.isArray(object.additionalBindings)) - throw TypeError(".google.api.HttpRule.additionalBindings: array expected"); - message.additionalBindings = []; - for (var i = 0; i < object.additionalBindings.length; ++i) { - if (typeof object.additionalBindings[i] !== "object") - throw TypeError(".google.api.HttpRule.additionalBindings: object expected"); - message.additionalBindings[i] = $root.google.api.HttpRule.fromObject(object.additionalBindings[i]); - } - } - return message; - }; + /** + * Creates a new VideoClassificationAnnotation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoClassificationAnnotation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoClassificationAnnotation} VideoClassificationAnnotation instance + */ + VideoClassificationAnnotation.create = function create(properties) { + return new VideoClassificationAnnotation(properties); + }; - /** - * Creates a plain object from a HttpRule message. Also converts values to other types if specified. - * @function toObject - * @memberof google.api.HttpRule - * @static - * @param {google.api.HttpRule} message HttpRule - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - HttpRule.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.additionalBindings = []; - if (options.defaults) { - object.selector = ""; - object.body = ""; - object.responseBody = ""; - } - if (message.selector != null && message.hasOwnProperty("selector")) - object.selector = message.selector; - if (message.get != null && message.hasOwnProperty("get")) { - object.get = message.get; - if (options.oneofs) - object.pattern = "get"; - } - if (message.put != null && message.hasOwnProperty("put")) { - object.put = message.put; - if (options.oneofs) - object.pattern = "put"; - } - if (message.post != null && message.hasOwnProperty("post")) { - object.post = message.post; - if (options.oneofs) - object.pattern = "post"; - } - if (message["delete"] != null && message.hasOwnProperty("delete")) { - object["delete"] = message["delete"]; - if (options.oneofs) - object.pattern = "delete"; - } - if (message.patch != null && message.hasOwnProperty("patch")) { - object.patch = message.patch; - if (options.oneofs) - object.pattern = "patch"; - } - if (message.body != null && message.hasOwnProperty("body")) - object.body = message.body; - if (message.custom != null && message.hasOwnProperty("custom")) { - object.custom = $root.google.api.CustomHttpPattern.toObject(message.custom, options); - if (options.oneofs) - object.pattern = "custom"; - } - if (message.additionalBindings && message.additionalBindings.length) { - object.additionalBindings = []; - for (var j = 0; j < message.additionalBindings.length; ++j) - object.additionalBindings[j] = $root.google.api.HttpRule.toObject(message.additionalBindings[j], options); - } - if (message.responseBody != null && message.hasOwnProperty("responseBody")) - object.responseBody = message.responseBody; - return object; - }; + /** + * Encodes the specified VideoClassificationAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoClassificationAnnotation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoClassificationAnnotation} message VideoClassificationAnnotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoClassificationAnnotation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.timeSegment != null && Object.hasOwnProperty.call(message, "timeSegment")) + $root.google.cloud.aiplatform.v1beta1.schema.TimeSegment.encode(message.timeSegment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.annotationSpecId != null && Object.hasOwnProperty.call(message, "annotationSpecId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.annotationSpecId); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); + return writer; + }; - /** - * Converts this HttpRule to JSON. - * @function toJSON - * @memberof google.api.HttpRule - * @instance - * @returns {Object.} JSON object - */ - HttpRule.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Encodes the specified VideoClassificationAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoClassificationAnnotation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoClassificationAnnotation} message VideoClassificationAnnotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoClassificationAnnotation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - return HttpRule; - })(); + /** + * Decodes a VideoClassificationAnnotation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationAnnotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoClassificationAnnotation} VideoClassificationAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoClassificationAnnotation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.VideoClassificationAnnotation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.timeSegment = $root.google.cloud.aiplatform.v1beta1.schema.TimeSegment.decode(reader, reader.uint32()); + break; + case 2: + message.annotationSpecId = reader.string(); + break; + case 3: + message.displayName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - api.CustomHttpPattern = (function() { + /** + * Decodes a VideoClassificationAnnotation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationAnnotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoClassificationAnnotation} VideoClassificationAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoClassificationAnnotation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Properties of a CustomHttpPattern. - * @memberof google.api - * @interface ICustomHttpPattern - * @property {string|null} [kind] CustomHttpPattern kind - * @property {string|null} [path] CustomHttpPattern path - */ + /** + * Verifies a VideoClassificationAnnotation message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationAnnotation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VideoClassificationAnnotation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.timeSegment != null && message.hasOwnProperty("timeSegment")) { + var error = $root.google.cloud.aiplatform.v1beta1.schema.TimeSegment.verify(message.timeSegment); + if (error) + return "timeSegment." + 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; + }; - /** - * Constructs a new CustomHttpPattern. - * @memberof google.api - * @classdesc Represents a CustomHttpPattern. - * @implements ICustomHttpPattern - * @constructor - * @param {google.api.ICustomHttpPattern=} [properties] Properties to set - */ - function CustomHttpPattern(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]]; - } + /** + * Creates a VideoClassificationAnnotation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationAnnotation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoClassificationAnnotation} VideoClassificationAnnotation + */ + VideoClassificationAnnotation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.VideoClassificationAnnotation) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.VideoClassificationAnnotation(); + if (object.timeSegment != null) { + if (typeof object.timeSegment !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.VideoClassificationAnnotation.timeSegment: object expected"); + message.timeSegment = $root.google.cloud.aiplatform.v1beta1.schema.TimeSegment.fromObject(object.timeSegment); + } + if (object.annotationSpecId != null) + message.annotationSpecId = String(object.annotationSpecId); + if (object.displayName != null) + message.displayName = String(object.displayName); + return message; + }; - /** - * CustomHttpPattern kind. - * @member {string} kind - * @memberof google.api.CustomHttpPattern - * @instance - */ - CustomHttpPattern.prototype.kind = ""; + /** + * Creates a plain object from a VideoClassificationAnnotation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.VideoClassificationAnnotation} message VideoClassificationAnnotation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VideoClassificationAnnotation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.timeSegment = null; + object.annotationSpecId = ""; + object.displayName = ""; + } + if (message.timeSegment != null && message.hasOwnProperty("timeSegment")) + object.timeSegment = $root.google.cloud.aiplatform.v1beta1.schema.TimeSegment.toObject(message.timeSegment, options); + if (message.annotationSpecId != null && message.hasOwnProperty("annotationSpecId")) + object.annotationSpecId = message.annotationSpecId; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + return object; + }; - /** - * CustomHttpPattern path. - * @member {string} path - * @memberof google.api.CustomHttpPattern - * @instance - */ - CustomHttpPattern.prototype.path = ""; - - /** - * Creates a new CustomHttpPattern instance using the specified properties. - * @function create - * @memberof google.api.CustomHttpPattern - * @static - * @param {google.api.ICustomHttpPattern=} [properties] Properties to set - * @returns {google.api.CustomHttpPattern} CustomHttpPattern instance - */ - CustomHttpPattern.create = function create(properties) { - return new CustomHttpPattern(properties); - }; - - /** - * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. - * @function encode - * @memberof google.api.CustomHttpPattern - * @static - * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CustomHttpPattern.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); - return writer; - }; + /** + * Converts this VideoClassificationAnnotation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationAnnotation + * @instance + * @returns {Object.} JSON object + */ + VideoClassificationAnnotation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. - * @function encodeDelimited - * @memberof google.api.CustomHttpPattern - * @static - * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CustomHttpPattern.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + return VideoClassificationAnnotation; + })(); - /** - * Decodes a CustomHttpPattern message from the specified reader or buffer. - * @function decode - * @memberof google.api.CustomHttpPattern - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.api.CustomHttpPattern} CustomHttpPattern - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CustomHttpPattern.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.api.CustomHttpPattern(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.kind = reader.string(); - break; - case 2: - message.path = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + schema.TimeSegment = (function() { - /** - * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.api.CustomHttpPattern - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.CustomHttpPattern} CustomHttpPattern - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CustomHttpPattern.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Properties of a TimeSegment. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface ITimeSegment + * @property {google.protobuf.IDuration|null} [startTimeOffset] TimeSegment startTimeOffset + * @property {google.protobuf.IDuration|null} [endTimeOffset] TimeSegment endTimeOffset + */ - /** - * Verifies a CustomHttpPattern message. - * @function verify - * @memberof google.api.CustomHttpPattern - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CustomHttpPattern.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.kind != null && message.hasOwnProperty("kind")) - if (!$util.isString(message.kind)) - return "kind: string expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!$util.isString(message.path)) - return "path: string expected"; - return null; - }; + /** + * Constructs a new TimeSegment. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents a TimeSegment. + * @implements ITimeSegment + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.ITimeSegment=} [properties] Properties to set + */ + function TimeSegment(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]]; + } - /** - * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.api.CustomHttpPattern - * @static - * @param {Object.} object Plain object - * @returns {google.api.CustomHttpPattern} CustomHttpPattern - */ - CustomHttpPattern.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.CustomHttpPattern) - return object; - var message = new $root.google.api.CustomHttpPattern(); - if (object.kind != null) - message.kind = String(object.kind); - if (object.path != null) - message.path = String(object.path); - return message; - }; + /** + * TimeSegment startTimeOffset. + * @member {google.protobuf.IDuration|null|undefined} startTimeOffset + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSegment + * @instance + */ + TimeSegment.prototype.startTimeOffset = null; - /** - * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. - * @function toObject - * @memberof google.api.CustomHttpPattern - * @static - * @param {google.api.CustomHttpPattern} message CustomHttpPattern - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CustomHttpPattern.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.kind = ""; - object.path = ""; - } - if (message.kind != null && message.hasOwnProperty("kind")) - object.kind = message.kind; - if (message.path != null && message.hasOwnProperty("path")) - object.path = message.path; - return object; - }; + /** + * TimeSegment endTimeOffset. + * @member {google.protobuf.IDuration|null|undefined} endTimeOffset + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSegment + * @instance + */ + TimeSegment.prototype.endTimeOffset = null; - /** - * Converts this CustomHttpPattern to JSON. - * @function toJSON - * @memberof google.api.CustomHttpPattern - * @instance - * @returns {Object.} JSON object - */ - CustomHttpPattern.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a new TimeSegment instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSegment + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITimeSegment=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.TimeSegment} TimeSegment instance + */ + TimeSegment.create = function create(properties) { + return new TimeSegment(properties); + }; - return CustomHttpPattern; - })(); + /** + * Encodes the specified TimeSegment message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TimeSegment.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSegment + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITimeSegment} message TimeSegment message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TimeSegment.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.startTimeOffset != null && Object.hasOwnProperty.call(message, "startTimeOffset")) + $root.google.protobuf.Duration.encode(message.startTimeOffset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.endTimeOffset != null && Object.hasOwnProperty.call(message, "endTimeOffset")) + $root.google.protobuf.Duration.encode(message.endTimeOffset, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * FieldBehavior enum. - * @name google.api.FieldBehavior - * @enum {number} - * @property {number} FIELD_BEHAVIOR_UNSPECIFIED=0 FIELD_BEHAVIOR_UNSPECIFIED value - * @property {number} OPTIONAL=1 OPTIONAL value - * @property {number} REQUIRED=2 REQUIRED value - * @property {number} OUTPUT_ONLY=3 OUTPUT_ONLY value - * @property {number} INPUT_ONLY=4 INPUT_ONLY value - * @property {number} IMMUTABLE=5 IMMUTABLE value - */ - api.FieldBehavior = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "FIELD_BEHAVIOR_UNSPECIFIED"] = 0; - values[valuesById[1] = "OPTIONAL"] = 1; - values[valuesById[2] = "REQUIRED"] = 2; - values[valuesById[3] = "OUTPUT_ONLY"] = 3; - values[valuesById[4] = "INPUT_ONLY"] = 4; - values[valuesById[5] = "IMMUTABLE"] = 5; - return values; - })(); + /** + * Encodes the specified TimeSegment message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TimeSegment.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSegment + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITimeSegment} message TimeSegment message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TimeSegment.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - api.ResourceDescriptor = (function() { + /** + * Decodes a TimeSegment message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSegment + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.TimeSegment} TimeSegment + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TimeSegment.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.TimeSegment(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.startTimeOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 2: + message.endTimeOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Properties of a ResourceDescriptor. - * @memberof google.api - * @interface IResourceDescriptor - * @property {string|null} [type] ResourceDescriptor type - * @property {Array.|null} [pattern] ResourceDescriptor pattern - * @property {string|null} [nameField] ResourceDescriptor nameField - * @property {google.api.ResourceDescriptor.History|null} [history] ResourceDescriptor history - * @property {string|null} [plural] ResourceDescriptor plural - * @property {string|null} [singular] ResourceDescriptor singular - */ + /** + * Decodes a TimeSegment message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSegment + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.TimeSegment} TimeSegment + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TimeSegment.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Constructs a new ResourceDescriptor. - * @memberof google.api - * @classdesc Represents a ResourceDescriptor. - * @implements IResourceDescriptor - * @constructor - * @param {google.api.IResourceDescriptor=} [properties] Properties to set - */ - function ResourceDescriptor(properties) { - this.pattern = []; - 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]]; - } + /** + * Verifies a TimeSegment message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSegment + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TimeSegment.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.startTimeOffset != null && message.hasOwnProperty("startTimeOffset")) { + var error = $root.google.protobuf.Duration.verify(message.startTimeOffset); + if (error) + return "startTimeOffset." + error; + } + if (message.endTimeOffset != null && message.hasOwnProperty("endTimeOffset")) { + var error = $root.google.protobuf.Duration.verify(message.endTimeOffset); + if (error) + return "endTimeOffset." + error; + } + return null; + }; - /** - * ResourceDescriptor type. - * @member {string} type - * @memberof google.api.ResourceDescriptor - * @instance - */ - ResourceDescriptor.prototype.type = ""; + /** + * Creates a TimeSegment message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSegment + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.TimeSegment} TimeSegment + */ + TimeSegment.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.TimeSegment) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.TimeSegment(); + if (object.startTimeOffset != null) { + if (typeof object.startTimeOffset !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.TimeSegment.startTimeOffset: object expected"); + message.startTimeOffset = $root.google.protobuf.Duration.fromObject(object.startTimeOffset); + } + if (object.endTimeOffset != null) { + if (typeof object.endTimeOffset !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.TimeSegment.endTimeOffset: object expected"); + message.endTimeOffset = $root.google.protobuf.Duration.fromObject(object.endTimeOffset); + } + return message; + }; - /** - * ResourceDescriptor pattern. - * @member {Array.} pattern - * @memberof google.api.ResourceDescriptor - * @instance - */ - ResourceDescriptor.prototype.pattern = $util.emptyArray; + /** + * Creates a plain object from a TimeSegment message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSegment + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TimeSegment} message TimeSegment + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TimeSegment.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.startTimeOffset = null; + object.endTimeOffset = null; + } + if (message.startTimeOffset != null && message.hasOwnProperty("startTimeOffset")) + object.startTimeOffset = $root.google.protobuf.Duration.toObject(message.startTimeOffset, options); + if (message.endTimeOffset != null && message.hasOwnProperty("endTimeOffset")) + object.endTimeOffset = $root.google.protobuf.Duration.toObject(message.endTimeOffset, options); + return object; + }; - /** - * ResourceDescriptor nameField. - * @member {string} nameField - * @memberof google.api.ResourceDescriptor - * @instance - */ - ResourceDescriptor.prototype.nameField = ""; + /** + * Converts this TimeSegment to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSegment + * @instance + * @returns {Object.} JSON object + */ + TimeSegment.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * ResourceDescriptor history. - * @member {google.api.ResourceDescriptor.History} history - * @memberof google.api.ResourceDescriptor - * @instance - */ - ResourceDescriptor.prototype.history = 0; + return TimeSegment; + })(); - /** - * ResourceDescriptor plural. - * @member {string} plural - * @memberof google.api.ResourceDescriptor - * @instance - */ - ResourceDescriptor.prototype.plural = ""; + schema.VideoObjectTrackingAnnotation = (function() { - /** - * ResourceDescriptor singular. - * @member {string} singular - * @memberof google.api.ResourceDescriptor - * @instance - */ - ResourceDescriptor.prototype.singular = ""; + /** + * Properties of a VideoObjectTrackingAnnotation. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface IVideoObjectTrackingAnnotation + * @property {google.protobuf.IDuration|null} [timeOffset] VideoObjectTrackingAnnotation timeOffset + * @property {number|null} [xMin] VideoObjectTrackingAnnotation xMin + * @property {number|null} [xMax] VideoObjectTrackingAnnotation xMax + * @property {number|null} [yMin] VideoObjectTrackingAnnotation yMin + * @property {number|null} [yMax] VideoObjectTrackingAnnotation yMax + * @property {number|Long|null} [instanceId] VideoObjectTrackingAnnotation instanceId + * @property {string|null} [annotationSpecId] VideoObjectTrackingAnnotation annotationSpecId + * @property {string|null} [displayName] VideoObjectTrackingAnnotation displayName + */ - /** - * Creates a new ResourceDescriptor instance using the specified properties. - * @function create - * @memberof google.api.ResourceDescriptor - * @static - * @param {google.api.IResourceDescriptor=} [properties] Properties to set - * @returns {google.api.ResourceDescriptor} ResourceDescriptor instance - */ - ResourceDescriptor.create = function create(properties) { - return new ResourceDescriptor(properties); - }; + /** + * Constructs a new VideoObjectTrackingAnnotation. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents a VideoObjectTrackingAnnotation. + * @implements IVideoObjectTrackingAnnotation + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoObjectTrackingAnnotation=} [properties] Properties to set + */ + function VideoObjectTrackingAnnotation(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]]; + } - /** - * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. - * @function encode - * @memberof google.api.ResourceDescriptor - * @static - * @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResourceDescriptor.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); - if (message.pattern != null && message.pattern.length) - for (var i = 0; i < message.pattern.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.pattern[i]); - if (message.nameField != null && Object.hasOwnProperty.call(message, "nameField")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.nameField); - if (message.history != null && Object.hasOwnProperty.call(message, "history")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.history); - if (message.plural != null && Object.hasOwnProperty.call(message, "plural")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.plural); - if (message.singular != null && Object.hasOwnProperty.call(message, "singular")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.singular); - return writer; - }; + /** + * VideoObjectTrackingAnnotation timeOffset. + * @member {google.protobuf.IDuration|null|undefined} timeOffset + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingAnnotation + * @instance + */ + VideoObjectTrackingAnnotation.prototype.timeOffset = null; - /** - * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. - * @function encodeDelimited - * @memberof google.api.ResourceDescriptor - * @static - * @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResourceDescriptor.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * VideoObjectTrackingAnnotation xMin. + * @member {number} xMin + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingAnnotation + * @instance + */ + VideoObjectTrackingAnnotation.prototype.xMin = 0; - /** - * Decodes a ResourceDescriptor message from the specified reader or buffer. - * @function decode - * @memberof google.api.ResourceDescriptor - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.api.ResourceDescriptor} ResourceDescriptor - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResourceDescriptor.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.api.ResourceDescriptor(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type = reader.string(); - break; - case 2: - if (!(message.pattern && message.pattern.length)) - message.pattern = []; - message.pattern.push(reader.string()); - break; - case 3: - message.nameField = reader.string(); - break; - case 4: - message.history = reader.int32(); - break; - case 5: - message.plural = reader.string(); - break; - case 6: - message.singular = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * VideoObjectTrackingAnnotation xMax. + * @member {number} xMax + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingAnnotation + * @instance + */ + VideoObjectTrackingAnnotation.prototype.xMax = 0; - /** - * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.api.ResourceDescriptor - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.ResourceDescriptor} ResourceDescriptor - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResourceDescriptor.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * VideoObjectTrackingAnnotation yMin. + * @member {number} yMin + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingAnnotation + * @instance + */ + VideoObjectTrackingAnnotation.prototype.yMin = 0; - /** - * Verifies a ResourceDescriptor message. - * @function verify - * @memberof google.api.ResourceDescriptor - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ResourceDescriptor.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: string expected"; - if (message.pattern != null && message.hasOwnProperty("pattern")) { - if (!Array.isArray(message.pattern)) - return "pattern: array expected"; - for (var i = 0; i < message.pattern.length; ++i) - if (!$util.isString(message.pattern[i])) - return "pattern: string[] expected"; - } - if (message.nameField != null && message.hasOwnProperty("nameField")) - if (!$util.isString(message.nameField)) - return "nameField: string expected"; - if (message.history != null && message.hasOwnProperty("history")) - switch (message.history) { - default: - return "history: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.plural != null && message.hasOwnProperty("plural")) - if (!$util.isString(message.plural)) - return "plural: string expected"; - if (message.singular != null && message.hasOwnProperty("singular")) - if (!$util.isString(message.singular)) - return "singular: string expected"; - return null; - }; + /** + * VideoObjectTrackingAnnotation yMax. + * @member {number} yMax + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingAnnotation + * @instance + */ + VideoObjectTrackingAnnotation.prototype.yMax = 0; - /** - * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.api.ResourceDescriptor - * @static - * @param {Object.} object Plain object - * @returns {google.api.ResourceDescriptor} ResourceDescriptor - */ - ResourceDescriptor.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.ResourceDescriptor) - return object; - var message = new $root.google.api.ResourceDescriptor(); - if (object.type != null) - message.type = String(object.type); - if (object.pattern) { - if (!Array.isArray(object.pattern)) - throw TypeError(".google.api.ResourceDescriptor.pattern: array expected"); - message.pattern = []; - for (var i = 0; i < object.pattern.length; ++i) - message.pattern[i] = String(object.pattern[i]); - } - if (object.nameField != null) - message.nameField = String(object.nameField); - switch (object.history) { - case "HISTORY_UNSPECIFIED": - case 0: - message.history = 0; - break; - case "ORIGINALLY_SINGLE_PATTERN": - case 1: - message.history = 1; - break; - case "FUTURE_MULTI_PATTERN": - case 2: - message.history = 2; - break; - } - if (object.plural != null) - message.plural = String(object.plural); - if (object.singular != null) - message.singular = String(object.singular); - return message; - }; + /** + * VideoObjectTrackingAnnotation instanceId. + * @member {number|Long} instanceId + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingAnnotation + * @instance + */ + VideoObjectTrackingAnnotation.prototype.instanceId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified. - * @function toObject - * @memberof google.api.ResourceDescriptor - * @static - * @param {google.api.ResourceDescriptor} message ResourceDescriptor - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ResourceDescriptor.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.pattern = []; - if (options.defaults) { - object.type = ""; - object.nameField = ""; - object.history = options.enums === String ? "HISTORY_UNSPECIFIED" : 0; - object.plural = ""; - object.singular = ""; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; - if (message.pattern && message.pattern.length) { - object.pattern = []; - for (var j = 0; j < message.pattern.length; ++j) - object.pattern[j] = message.pattern[j]; - } - if (message.nameField != null && message.hasOwnProperty("nameField")) - object.nameField = message.nameField; - if (message.history != null && message.hasOwnProperty("history")) - object.history = options.enums === String ? $root.google.api.ResourceDescriptor.History[message.history] : message.history; - if (message.plural != null && message.hasOwnProperty("plural")) - object.plural = message.plural; - if (message.singular != null && message.hasOwnProperty("singular")) - object.singular = message.singular; - return object; - }; + /** + * VideoObjectTrackingAnnotation annotationSpecId. + * @member {string} annotationSpecId + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingAnnotation + * @instance + */ + VideoObjectTrackingAnnotation.prototype.annotationSpecId = ""; - /** - * Converts this ResourceDescriptor to JSON. - * @function toJSON - * @memberof google.api.ResourceDescriptor - * @instance - * @returns {Object.} JSON object - */ - ResourceDescriptor.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * VideoObjectTrackingAnnotation displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingAnnotation + * @instance + */ + VideoObjectTrackingAnnotation.prototype.displayName = ""; - /** - * History enum. - * @name google.api.ResourceDescriptor.History - * @enum {number} - * @property {number} HISTORY_UNSPECIFIED=0 HISTORY_UNSPECIFIED value - * @property {number} ORIGINALLY_SINGLE_PATTERN=1 ORIGINALLY_SINGLE_PATTERN value - * @property {number} FUTURE_MULTI_PATTERN=2 FUTURE_MULTI_PATTERN value - */ - ResourceDescriptor.History = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "HISTORY_UNSPECIFIED"] = 0; - values[valuesById[1] = "ORIGINALLY_SINGLE_PATTERN"] = 1; - values[valuesById[2] = "FUTURE_MULTI_PATTERN"] = 2; - return values; - })(); + /** + * Creates a new VideoObjectTrackingAnnotation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoObjectTrackingAnnotation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingAnnotation} VideoObjectTrackingAnnotation instance + */ + VideoObjectTrackingAnnotation.create = function create(properties) { + return new VideoObjectTrackingAnnotation(properties); + }; - return ResourceDescriptor; - })(); + /** + * Encodes the specified VideoObjectTrackingAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingAnnotation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoObjectTrackingAnnotation} message VideoObjectTrackingAnnotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoObjectTrackingAnnotation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.timeOffset != null && Object.hasOwnProperty.call(message, "timeOffset")) + $root.google.protobuf.Duration.encode(message.timeOffset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.xMin != null && Object.hasOwnProperty.call(message, "xMin")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.xMin); + if (message.xMax != null && Object.hasOwnProperty.call(message, "xMax")) + writer.uint32(/* id 3, wireType 1 =*/25).double(message.xMax); + if (message.yMin != null && Object.hasOwnProperty.call(message, "yMin")) + writer.uint32(/* id 4, wireType 1 =*/33).double(message.yMin); + if (message.yMax != null && Object.hasOwnProperty.call(message, "yMax")) + writer.uint32(/* id 5, wireType 1 =*/41).double(message.yMax); + if (message.instanceId != null && Object.hasOwnProperty.call(message, "instanceId")) + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.instanceId); + if (message.annotationSpecId != null && Object.hasOwnProperty.call(message, "annotationSpecId")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.annotationSpecId); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.displayName); + return writer; + }; - api.ResourceReference = (function() { + /** + * Encodes the specified VideoObjectTrackingAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingAnnotation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoObjectTrackingAnnotation} message VideoObjectTrackingAnnotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoObjectTrackingAnnotation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Properties of a ResourceReference. - * @memberof google.api - * @interface IResourceReference - * @property {string|null} [type] ResourceReference type - * @property {string|null} [childType] ResourceReference childType - */ + /** + * Decodes a VideoObjectTrackingAnnotation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingAnnotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingAnnotation} VideoObjectTrackingAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoObjectTrackingAnnotation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingAnnotation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.timeOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 2: + message.xMin = reader.double(); + break; + case 3: + message.xMax = reader.double(); + break; + case 4: + message.yMin = reader.double(); + break; + case 5: + message.yMax = reader.double(); + break; + case 6: + message.instanceId = reader.int64(); + break; + case 7: + message.annotationSpecId = reader.string(); + break; + case 8: + message.displayName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Constructs a new ResourceReference. - * @memberof google.api - * @classdesc Represents a ResourceReference. - * @implements IResourceReference - * @constructor - * @param {google.api.IResourceReference=} [properties] Properties to set - */ - function ResourceReference(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]]; - } + /** + * Decodes a VideoObjectTrackingAnnotation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingAnnotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingAnnotation} VideoObjectTrackingAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoObjectTrackingAnnotation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * ResourceReference type. - * @member {string} type - * @memberof google.api.ResourceReference - * @instance - */ - ResourceReference.prototype.type = ""; - - /** - * ResourceReference childType. - * @member {string} childType - * @memberof google.api.ResourceReference - * @instance - */ - ResourceReference.prototype.childType = ""; + /** + * Verifies a VideoObjectTrackingAnnotation message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingAnnotation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VideoObjectTrackingAnnotation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.timeOffset != null && message.hasOwnProperty("timeOffset")) { + var error = $root.google.protobuf.Duration.verify(message.timeOffset); + if (error) + return "timeOffset." + error; + } + if (message.xMin != null && message.hasOwnProperty("xMin")) + if (typeof message.xMin !== "number") + return "xMin: number expected"; + if (message.xMax != null && message.hasOwnProperty("xMax")) + if (typeof message.xMax !== "number") + return "xMax: number expected"; + if (message.yMin != null && message.hasOwnProperty("yMin")) + if (typeof message.yMin !== "number") + return "yMin: number expected"; + if (message.yMax != null && message.hasOwnProperty("yMax")) + if (typeof message.yMax !== "number") + return "yMax: number expected"; + if (message.instanceId != null && message.hasOwnProperty("instanceId")) + if (!$util.isInteger(message.instanceId) && !(message.instanceId && $util.isInteger(message.instanceId.low) && $util.isInteger(message.instanceId.high))) + return "instanceId: integer|Long expected"; + 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 a new ResourceReference instance using the specified properties. - * @function create - * @memberof google.api.ResourceReference - * @static - * @param {google.api.IResourceReference=} [properties] Properties to set - * @returns {google.api.ResourceReference} ResourceReference instance - */ - ResourceReference.create = function create(properties) { - return new ResourceReference(properties); - }; + /** + * Creates a VideoObjectTrackingAnnotation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingAnnotation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingAnnotation} VideoObjectTrackingAnnotation + */ + VideoObjectTrackingAnnotation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingAnnotation) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingAnnotation(); + if (object.timeOffset != null) { + if (typeof object.timeOffset !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingAnnotation.timeOffset: object expected"); + message.timeOffset = $root.google.protobuf.Duration.fromObject(object.timeOffset); + } + if (object.xMin != null) + message.xMin = Number(object.xMin); + if (object.xMax != null) + message.xMax = Number(object.xMax); + if (object.yMin != null) + message.yMin = Number(object.yMin); + if (object.yMax != null) + message.yMax = Number(object.yMax); + if (object.instanceId != null) + if ($util.Long) + (message.instanceId = $util.Long.fromValue(object.instanceId)).unsigned = false; + else if (typeof object.instanceId === "string") + message.instanceId = parseInt(object.instanceId, 10); + else if (typeof object.instanceId === "number") + message.instanceId = object.instanceId; + else if (typeof object.instanceId === "object") + message.instanceId = new $util.LongBits(object.instanceId.low >>> 0, object.instanceId.high >>> 0).toNumber(); + if (object.annotationSpecId != null) + message.annotationSpecId = String(object.annotationSpecId); + if (object.displayName != null) + message.displayName = String(object.displayName); + return message; + }; - /** - * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. - * @function encode - * @memberof google.api.ResourceReference - * @static - * @param {google.api.IResourceReference} message ResourceReference message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResourceReference.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); - if (message.childType != null && Object.hasOwnProperty.call(message, "childType")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.childType); - return writer; - }; + /** + * Creates a plain object from a VideoObjectTrackingAnnotation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingAnnotation} message VideoObjectTrackingAnnotation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VideoObjectTrackingAnnotation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.timeOffset = null; + object.xMin = 0; + object.xMax = 0; + object.yMin = 0; + object.yMax = 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.instanceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.instanceId = options.longs === String ? "0" : 0; + object.annotationSpecId = ""; + object.displayName = ""; + } + if (message.timeOffset != null && message.hasOwnProperty("timeOffset")) + object.timeOffset = $root.google.protobuf.Duration.toObject(message.timeOffset, options); + if (message.xMin != null && message.hasOwnProperty("xMin")) + object.xMin = options.json && !isFinite(message.xMin) ? String(message.xMin) : message.xMin; + if (message.xMax != null && message.hasOwnProperty("xMax")) + object.xMax = options.json && !isFinite(message.xMax) ? String(message.xMax) : message.xMax; + if (message.yMin != null && message.hasOwnProperty("yMin")) + object.yMin = options.json && !isFinite(message.yMin) ? String(message.yMin) : message.yMin; + if (message.yMax != null && message.hasOwnProperty("yMax")) + object.yMax = options.json && !isFinite(message.yMax) ? String(message.yMax) : message.yMax; + if (message.instanceId != null && message.hasOwnProperty("instanceId")) + if (typeof message.instanceId === "number") + object.instanceId = options.longs === String ? String(message.instanceId) : message.instanceId; + else + object.instanceId = options.longs === String ? $util.Long.prototype.toString.call(message.instanceId) : options.longs === Number ? new $util.LongBits(message.instanceId.low >>> 0, message.instanceId.high >>> 0).toNumber() : message.instanceId; + if (message.annotationSpecId != null && message.hasOwnProperty("annotationSpecId")) + object.annotationSpecId = message.annotationSpecId; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + return object; + }; - /** - * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. - * @function encodeDelimited - * @memberof google.api.ResourceReference - * @static - * @param {google.api.IResourceReference} message ResourceReference message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResourceReference.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Converts this VideoObjectTrackingAnnotation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingAnnotation + * @instance + * @returns {Object.} JSON object + */ + VideoObjectTrackingAnnotation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Decodes a ResourceReference message from the specified reader or buffer. - * @function decode - * @memberof google.api.ResourceReference - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.api.ResourceReference} ResourceReference - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResourceReference.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.api.ResourceReference(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type = reader.string(); - break; - case 2: - message.childType = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + return VideoObjectTrackingAnnotation; + })(); - /** - * Decodes a ResourceReference message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.api.ResourceReference - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.ResourceReference} ResourceReference - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResourceReference.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + schema.VideoActionRecognitionAnnotation = (function() { - /** - * Verifies a ResourceReference message. - * @function verify - * @memberof google.api.ResourceReference - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ResourceReference.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: string expected"; - if (message.childType != null && message.hasOwnProperty("childType")) - if (!$util.isString(message.childType)) - return "childType: string expected"; - return null; - }; + /** + * Properties of a VideoActionRecognitionAnnotation. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface IVideoActionRecognitionAnnotation + * @property {google.cloud.aiplatform.v1beta1.schema.ITimeSegment|null} [timeSegment] VideoActionRecognitionAnnotation timeSegment + * @property {string|null} [annotationSpecId] VideoActionRecognitionAnnotation annotationSpecId + * @property {string|null} [displayName] VideoActionRecognitionAnnotation displayName + */ - /** - * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.api.ResourceReference - * @static - * @param {Object.} object Plain object - * @returns {google.api.ResourceReference} ResourceReference - */ - ResourceReference.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.ResourceReference) - return object; - var message = new $root.google.api.ResourceReference(); - if (object.type != null) - message.type = String(object.type); - if (object.childType != null) - message.childType = String(object.childType); - return message; - }; + /** + * Constructs a new VideoActionRecognitionAnnotation. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents a VideoActionRecognitionAnnotation. + * @implements IVideoActionRecognitionAnnotation + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoActionRecognitionAnnotation=} [properties] Properties to set + */ + function VideoActionRecognitionAnnotation(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]]; + } - /** - * Creates a plain object from a ResourceReference message. Also converts values to other types if specified. - * @function toObject - * @memberof google.api.ResourceReference - * @static - * @param {google.api.ResourceReference} message ResourceReference - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ResourceReference.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.type = ""; - object.childType = ""; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; - if (message.childType != null && message.hasOwnProperty("childType")) - object.childType = message.childType; - return object; - }; + /** + * VideoActionRecognitionAnnotation timeSegment. + * @member {google.cloud.aiplatform.v1beta1.schema.ITimeSegment|null|undefined} timeSegment + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionAnnotation + * @instance + */ + VideoActionRecognitionAnnotation.prototype.timeSegment = null; - /** - * Converts this ResourceReference to JSON. - * @function toJSON - * @memberof google.api.ResourceReference - * @instance - * @returns {Object.} JSON object - */ - ResourceReference.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * VideoActionRecognitionAnnotation annotationSpecId. + * @member {string} annotationSpecId + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionAnnotation + * @instance + */ + VideoActionRecognitionAnnotation.prototype.annotationSpecId = ""; - return ResourceReference; - })(); + /** + * VideoActionRecognitionAnnotation displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionAnnotation + * @instance + */ + VideoActionRecognitionAnnotation.prototype.displayName = ""; - return api; - })(); + /** + * Creates a new VideoActionRecognitionAnnotation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoActionRecognitionAnnotation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionAnnotation} VideoActionRecognitionAnnotation instance + */ + VideoActionRecognitionAnnotation.create = function create(properties) { + return new VideoActionRecognitionAnnotation(properties); + }; - google.protobuf = (function() { + /** + * Encodes the specified VideoActionRecognitionAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionAnnotation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoActionRecognitionAnnotation} message VideoActionRecognitionAnnotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoActionRecognitionAnnotation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.timeSegment != null && Object.hasOwnProperty.call(message, "timeSegment")) + $root.google.cloud.aiplatform.v1beta1.schema.TimeSegment.encode(message.timeSegment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.annotationSpecId != null && Object.hasOwnProperty.call(message, "annotationSpecId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.annotationSpecId); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); + return writer; + }; - /** - * Namespace protobuf. - * @memberof google - * @namespace - */ - var protobuf = {}; + /** + * Encodes the specified VideoActionRecognitionAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionAnnotation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoActionRecognitionAnnotation} message VideoActionRecognitionAnnotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoActionRecognitionAnnotation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - protobuf.FileDescriptorSet = (function() { + /** + * Decodes a VideoActionRecognitionAnnotation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionAnnotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionAnnotation} VideoActionRecognitionAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoActionRecognitionAnnotation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionAnnotation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.timeSegment = $root.google.cloud.aiplatform.v1beta1.schema.TimeSegment.decode(reader, reader.uint32()); + break; + case 2: + message.annotationSpecId = reader.string(); + break; + case 3: + message.displayName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Properties of a FileDescriptorSet. - * @memberof google.protobuf - * @interface IFileDescriptorSet - * @property {Array.|null} [file] FileDescriptorSet file - */ + /** + * Decodes a VideoActionRecognitionAnnotation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionAnnotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionAnnotation} VideoActionRecognitionAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoActionRecognitionAnnotation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Constructs a new FileDescriptorSet. - * @memberof google.protobuf - * @classdesc Represents a FileDescriptorSet. - * @implements IFileDescriptorSet - * @constructor - * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set - */ - function FileDescriptorSet(properties) { - this.file = []; - 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]]; - } + /** + * Verifies a VideoActionRecognitionAnnotation message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionAnnotation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VideoActionRecognitionAnnotation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.timeSegment != null && message.hasOwnProperty("timeSegment")) { + var error = $root.google.cloud.aiplatform.v1beta1.schema.TimeSegment.verify(message.timeSegment); + if (error) + return "timeSegment." + 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; + }; - /** - * FileDescriptorSet file. - * @member {Array.} file - * @memberof google.protobuf.FileDescriptorSet - * @instance - */ - FileDescriptorSet.prototype.file = $util.emptyArray; + /** + * Creates a VideoActionRecognitionAnnotation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionAnnotation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionAnnotation} VideoActionRecognitionAnnotation + */ + VideoActionRecognitionAnnotation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionAnnotation) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionAnnotation(); + if (object.timeSegment != null) { + if (typeof object.timeSegment !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionAnnotation.timeSegment: object expected"); + message.timeSegment = $root.google.cloud.aiplatform.v1beta1.schema.TimeSegment.fromObject(object.timeSegment); + } + if (object.annotationSpecId != null) + message.annotationSpecId = String(object.annotationSpecId); + if (object.displayName != null) + message.displayName = String(object.displayName); + return message; + }; - /** - * Creates a new FileDescriptorSet instance using the specified properties. - * @function create - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set - * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet instance - */ - FileDescriptorSet.create = function create(properties) { - return new FileDescriptorSet(properties); - }; + /** + * Creates a plain object from a VideoActionRecognitionAnnotation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionAnnotation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionAnnotation} message VideoActionRecognitionAnnotation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VideoActionRecognitionAnnotation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.timeSegment = null; + object.annotationSpecId = ""; + object.displayName = ""; + } + if (message.timeSegment != null && message.hasOwnProperty("timeSegment")) + object.timeSegment = $root.google.cloud.aiplatform.v1beta1.schema.TimeSegment.toObject(message.timeSegment, options); + if (message.annotationSpecId != null && message.hasOwnProperty("annotationSpecId")) + object.annotationSpecId = message.annotationSpecId; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + return object; + }; - /** - * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileDescriptorSet.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.file != null && message.file.length) - for (var i = 0; i < message.file.length; ++i) - $root.google.protobuf.FileDescriptorProto.encode(message.file[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Converts this VideoActionRecognitionAnnotation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionAnnotation + * @instance + * @returns {Object.} JSON object + */ + VideoActionRecognitionAnnotation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileDescriptorSet.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + return VideoActionRecognitionAnnotation; + })(); - /** - * Decodes a FileDescriptorSet message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileDescriptorSet.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.protobuf.FileDescriptorSet(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.file && message.file.length)) - message.file = []; - message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + schema.AnnotationSpecColor = (function() { - /** - * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileDescriptorSet.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Properties of an AnnotationSpecColor. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface IAnnotationSpecColor + * @property {google.type.IColor|null} [color] AnnotationSpecColor color + * @property {string|null} [displayName] AnnotationSpecColor displayName + * @property {string|null} [id] AnnotationSpecColor id + */ - /** - * Verifies a FileDescriptorSet message. - * @function verify - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FileDescriptorSet.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.file != null && message.hasOwnProperty("file")) { - if (!Array.isArray(message.file)) - return "file: array expected"; - for (var i = 0; i < message.file.length; ++i) { - var error = $root.google.protobuf.FileDescriptorProto.verify(message.file[i]); - if (error) - return "file." + error; - } - } - return null; - }; + /** + * Constructs a new AnnotationSpecColor. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents an AnnotationSpecColor. + * @implements IAnnotationSpecColor + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.IAnnotationSpecColor=} [properties] Properties to set + */ + function AnnotationSpecColor(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]]; + } - /** - * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet - */ - FileDescriptorSet.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FileDescriptorSet) - return object; - var message = new $root.google.protobuf.FileDescriptorSet(); - if (object.file) { - if (!Array.isArray(object.file)) - throw TypeError(".google.protobuf.FileDescriptorSet.file: array expected"); - message.file = []; - for (var i = 0; i < object.file.length; ++i) { - if (typeof object.file[i] !== "object") - throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected"); - message.file[i] = $root.google.protobuf.FileDescriptorProto.fromObject(object.file[i]); - } - } - return message; - }; + /** + * AnnotationSpecColor color. + * @member {google.type.IColor|null|undefined} color + * @memberof google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor + * @instance + */ + AnnotationSpecColor.prototype.color = null; - /** - * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {google.protobuf.FileDescriptorSet} message FileDescriptorSet - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FileDescriptorSet.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.file = []; - if (message.file && message.file.length) { - object.file = []; - for (var j = 0; j < message.file.length; ++j) - object.file[j] = $root.google.protobuf.FileDescriptorProto.toObject(message.file[j], options); - } - return object; - }; + /** + * AnnotationSpecColor displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor + * @instance + */ + AnnotationSpecColor.prototype.displayName = ""; - /** - * Converts this FileDescriptorSet to JSON. - * @function toJSON - * @memberof google.protobuf.FileDescriptorSet - * @instance - * @returns {Object.} JSON object - */ - FileDescriptorSet.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * AnnotationSpecColor id. + * @member {string} id + * @memberof google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor + * @instance + */ + AnnotationSpecColor.prototype.id = ""; - return FileDescriptorSet; - })(); + /** + * Creates a new AnnotationSpecColor instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IAnnotationSpecColor=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor} AnnotationSpecColor instance + */ + AnnotationSpecColor.create = function create(properties) { + return new AnnotationSpecColor(properties); + }; - protobuf.FileDescriptorProto = (function() { + /** + * Encodes the specified AnnotationSpecColor message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IAnnotationSpecColor} message AnnotationSpecColor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AnnotationSpecColor.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.color != null && Object.hasOwnProperty.call(message, "color")) + $root.google.type.Color.encode(message.color, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.id); + return writer; + }; - /** - * Properties of a FileDescriptorProto. - * @memberof google.protobuf - * @interface IFileDescriptorProto - * @property {string|null} [name] FileDescriptorProto name - * @property {string|null} ["package"] FileDescriptorProto package - * @property {Array.|null} [dependency] FileDescriptorProto dependency - * @property {Array.|null} [publicDependency] FileDescriptorProto publicDependency - * @property {Array.|null} [weakDependency] FileDescriptorProto weakDependency - * @property {Array.|null} [messageType] FileDescriptorProto messageType - * @property {Array.|null} [enumType] FileDescriptorProto enumType - * @property {Array.|null} [service] FileDescriptorProto service - * @property {Array.|null} [extension] FileDescriptorProto extension - * @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options - * @property {google.protobuf.ISourceCodeInfo|null} [sourceCodeInfo] FileDescriptorProto sourceCodeInfo - * @property {string|null} [syntax] FileDescriptorProto syntax - */ + /** + * Encodes the specified AnnotationSpecColor message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IAnnotationSpecColor} message AnnotationSpecColor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AnnotationSpecColor.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Constructs a new FileDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents a FileDescriptorProto. - * @implements IFileDescriptorProto - * @constructor - * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set - */ - function FileDescriptorProto(properties) { - this.dependency = []; - this.publicDependency = []; - this.weakDependency = []; - this.messageType = []; - this.enumType = []; - this.service = []; - this.extension = []; - 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]]; - } + /** + * Decodes an AnnotationSpecColor message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor} AnnotationSpecColor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AnnotationSpecColor.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.color = $root.google.type.Color.decode(reader, reader.uint32()); + break; + case 2: + message.displayName = reader.string(); + break; + case 3: + message.id = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * FileDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.name = ""; + /** + * Decodes an AnnotationSpecColor message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor} AnnotationSpecColor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AnnotationSpecColor.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * FileDescriptorProto package. - * @member {string} package - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype["package"] = ""; + /** + * Verifies an AnnotationSpecColor message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AnnotationSpecColor.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.color != null && message.hasOwnProperty("color")) { + var error = $root.google.type.Color.verify(message.color); + if (error) + return "color." + error; + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + return null; + }; - /** - * FileDescriptorProto dependency. - * @member {Array.} dependency - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.dependency = $util.emptyArray; + /** + * Creates an AnnotationSpecColor message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor} AnnotationSpecColor + */ + AnnotationSpecColor.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor(); + if (object.color != null) { + if (typeof object.color !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor.color: object expected"); + message.color = $root.google.type.Color.fromObject(object.color); + } + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.id != null) + message.id = String(object.id); + return message; + }; - /** - * FileDescriptorProto publicDependency. - * @member {Array.} publicDependency - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.publicDependency = $util.emptyArray; + /** + * Creates a plain object from an AnnotationSpecColor message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor} message AnnotationSpecColor + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AnnotationSpecColor.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.color = null; + object.displayName = ""; + object.id = ""; + } + if (message.color != null && message.hasOwnProperty("color")) + object.color = $root.google.type.Color.toObject(message.color, options); + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + return object; + }; - /** - * FileDescriptorProto weakDependency. - * @member {Array.} weakDependency - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.weakDependency = $util.emptyArray; + /** + * Converts this AnnotationSpecColor to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor + * @instance + * @returns {Object.} JSON object + */ + AnnotationSpecColor.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * FileDescriptorProto messageType. - * @member {Array.} messageType - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.messageType = $util.emptyArray; + return AnnotationSpecColor; + })(); - /** - * FileDescriptorProto enumType. - * @member {Array.} enumType - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.enumType = $util.emptyArray; + schema.Vertex = (function() { - /** - * FileDescriptorProto service. - * @member {Array.} service - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.service = $util.emptyArray; + /** + * Properties of a Vertex. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface IVertex + * @property {number|null} [x] Vertex x + * @property {number|null} [y] Vertex y + */ - /** - * FileDescriptorProto extension. - * @member {Array.} extension - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.extension = $util.emptyArray; + /** + * Constructs a new Vertex. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents a Vertex. + * @implements IVertex + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.IVertex=} [properties] Properties to set + */ + function Vertex(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]]; + } - /** - * FileDescriptorProto options. - * @member {google.protobuf.IFileOptions|null|undefined} options - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.options = null; + /** + * Vertex x. + * @member {number} x + * @memberof google.cloud.aiplatform.v1beta1.schema.Vertex + * @instance + */ + Vertex.prototype.x = 0; - /** - * FileDescriptorProto sourceCodeInfo. - * @member {google.protobuf.ISourceCodeInfo|null|undefined} sourceCodeInfo - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.sourceCodeInfo = null; + /** + * Vertex y. + * @member {number} y + * @memberof google.cloud.aiplatform.v1beta1.schema.Vertex + * @instance + */ + Vertex.prototype.y = 0; - /** - * FileDescriptorProto syntax. - * @member {string} syntax - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.syntax = ""; + /** + * Creates a new Vertex instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.Vertex + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVertex=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.Vertex} Vertex instance + */ + Vertex.create = function create(properties) { + return new Vertex(properties); + }; - /** - * Creates a new FileDescriptorProto instance using the specified properties. - * @function create - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto instance - */ - FileDescriptorProto.create = function create(properties) { - return new FileDescriptorProto(properties); - }; + /** + * Encodes the specified Vertex message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.Vertex.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.Vertex + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVertex} message Vertex message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Vertex.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.x != null && Object.hasOwnProperty.call(message, "x")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.x); + if (message.y != null && Object.hasOwnProperty.call(message, "y")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.y); + return writer; + }; - /** - * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileDescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message["package"] != null && Object.hasOwnProperty.call(message, "package")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message["package"]); - if (message.dependency != null && message.dependency.length) - for (var i = 0; i < message.dependency.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.dependency[i]); - if (message.messageType != null && message.messageType.length) - for (var i = 0; i < message.messageType.length; ++i) - $root.google.protobuf.DescriptorProto.encode(message.messageType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.enumType != null && message.enumType.length) - for (var i = 0; i < message.enumType.length; ++i) - $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.service != null && message.service.length) - for (var i = 0; i < message.service.length; ++i) - $root.google.protobuf.ServiceDescriptorProto.encode(message.service[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.extension != null && message.extension.length) - for (var i = 0; i < message.extension.length; ++i) - $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.FileOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.sourceCodeInfo != null && Object.hasOwnProperty.call(message, "sourceCodeInfo")) - $root.google.protobuf.SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.publicDependency != null && message.publicDependency.length) - for (var i = 0; i < message.publicDependency.length; ++i) - writer.uint32(/* id 10, wireType 0 =*/80).int32(message.publicDependency[i]); - if (message.weakDependency != null && message.weakDependency.length) - for (var i = 0; i < message.weakDependency.length; ++i) - writer.uint32(/* id 11, wireType 0 =*/88).int32(message.weakDependency[i]); - if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax); - return writer; - }; + /** + * Encodes the specified Vertex message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.Vertex.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.Vertex + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVertex} message Vertex message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Vertex.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes a Vertex message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.Vertex + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.Vertex} Vertex + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Vertex.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.Vertex(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.x = reader.double(); + break; + case 2: + message.y = reader.double(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Decodes a FileDescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileDescriptorProto.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.protobuf.FileDescriptorProto(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message["package"] = reader.string(); - break; - case 3: - if (!(message.dependency && message.dependency.length)) - message.dependency = []; - message.dependency.push(reader.string()); - break; - case 10: - if (!(message.publicDependency && message.publicDependency.length)) - message.publicDependency = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.publicDependency.push(reader.int32()); - } else - message.publicDependency.push(reader.int32()); - break; - case 11: - if (!(message.weakDependency && message.weakDependency.length)) - message.weakDependency = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.weakDependency.push(reader.int32()); - } else - message.weakDependency.push(reader.int32()); - break; - case 4: - if (!(message.messageType && message.messageType.length)) - message.messageType = []; - message.messageType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); - break; - case 5: - if (!(message.enumType && message.enumType.length)) - message.enumType = []; - message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); - break; - case 6: - if (!(message.service && message.service.length)) - message.service = []; - message.service.push($root.google.protobuf.ServiceDescriptorProto.decode(reader, reader.uint32())); - break; - case 7: - if (!(message.extension && message.extension.length)) - message.extension = []; - message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); - break; - case 8: - message.options = $root.google.protobuf.FileOptions.decode(reader, reader.uint32()); - break; - case 9: - message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.decode(reader, reader.uint32()); - break; - case 12: - message.syntax = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Decodes a Vertex message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.Vertex + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.Vertex} Vertex + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Vertex.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FileDescriptorProto + /** + * Verifies a Vertex message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.Vertex + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Vertex.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 Vertex message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.Vertex + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.Vertex} Vertex + */ + Vertex.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.Vertex) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.Vertex(); + 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 Vertex message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.Vertex + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.Vertex} message Vertex + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Vertex.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 Vertex to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.Vertex + * @instance + * @returns {Object.} JSON object + */ + Vertex.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Vertex; + })(); + + schema.ImageDataItem = (function() { + + /** + * Properties of an ImageDataItem. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface IImageDataItem + * @property {string|null} [gcsUri] ImageDataItem gcsUri + * @property {string|null} [mimeType] ImageDataItem mimeType + */ + + /** + * Constructs a new ImageDataItem. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents an ImageDataItem. + * @implements IImageDataItem + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.IImageDataItem=} [properties] Properties to set + */ + function ImageDataItem(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]]; + } + + /** + * ImageDataItem gcsUri. + * @member {string} gcsUri + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageDataItem + * @instance + */ + ImageDataItem.prototype.gcsUri = ""; + + /** + * ImageDataItem mimeType. + * @member {string} mimeType + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageDataItem + * @instance + */ + ImageDataItem.prototype.mimeType = ""; + + /** + * Creates a new ImageDataItem instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageDataItem + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IImageDataItem=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageDataItem} ImageDataItem instance + */ + ImageDataItem.create = function create(properties) { + return new ImageDataItem(properties); + }; + + /** + * Encodes the specified ImageDataItem message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageDataItem.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageDataItem + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IImageDataItem} message ImageDataItem message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageDataItem.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.gcsUri != null && Object.hasOwnProperty.call(message, "gcsUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.gcsUri); + if (message.mimeType != null && Object.hasOwnProperty.call(message, "mimeType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.mimeType); + return writer; + }; + + /** + * Encodes the specified ImageDataItem message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageDataItem.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageDataItem + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IImageDataItem} message ImageDataItem message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageDataItem.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ImageDataItem message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageDataItem + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageDataItem} ImageDataItem + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageDataItem.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.ImageDataItem(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.gcsUri = reader.string(); + break; + case 2: + message.mimeType = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ImageDataItem message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageDataItem + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageDataItem} ImageDataItem + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageDataItem.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ImageDataItem message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageDataItem + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ImageDataItem.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) + if (!$util.isString(message.gcsUri)) + return "gcsUri: string expected"; + if (message.mimeType != null && message.hasOwnProperty("mimeType")) + if (!$util.isString(message.mimeType)) + return "mimeType: string expected"; + return null; + }; + + /** + * Creates an ImageDataItem message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageDataItem + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageDataItem} ImageDataItem + */ + ImageDataItem.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.ImageDataItem) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.ImageDataItem(); + if (object.gcsUri != null) + message.gcsUri = String(object.gcsUri); + if (object.mimeType != null) + message.mimeType = String(object.mimeType); + return message; + }; + + /** + * Creates a plain object from an ImageDataItem message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageDataItem + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ImageDataItem} message ImageDataItem + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ImageDataItem.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.gcsUri = ""; + object.mimeType = ""; + } + if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) + object.gcsUri = message.gcsUri; + if (message.mimeType != null && message.hasOwnProperty("mimeType")) + object.mimeType = message.mimeType; + return object; + }; + + /** + * Converts this ImageDataItem to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageDataItem + * @instance + * @returns {Object.} JSON object + */ + ImageDataItem.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ImageDataItem; + })(); + + schema.VideoDataItem = (function() { + + /** + * Properties of a VideoDataItem. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface IVideoDataItem + * @property {string|null} [gcsUri] VideoDataItem gcsUri + * @property {string|null} [mimeType] VideoDataItem mimeType + */ + + /** + * Constructs a new VideoDataItem. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents a VideoDataItem. + * @implements IVideoDataItem + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoDataItem=} [properties] Properties to set + */ + function VideoDataItem(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]]; + } + + /** + * VideoDataItem gcsUri. + * @member {string} gcsUri + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoDataItem + * @instance + */ + VideoDataItem.prototype.gcsUri = ""; + + /** + * VideoDataItem mimeType. + * @member {string} mimeType + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoDataItem + * @instance + */ + VideoDataItem.prototype.mimeType = ""; + + /** + * Creates a new VideoDataItem instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoDataItem + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoDataItem=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoDataItem} VideoDataItem instance + */ + VideoDataItem.create = function create(properties) { + return new VideoDataItem(properties); + }; + + /** + * Encodes the specified VideoDataItem message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoDataItem.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoDataItem + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoDataItem} message VideoDataItem message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoDataItem.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.gcsUri != null && Object.hasOwnProperty.call(message, "gcsUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.gcsUri); + if (message.mimeType != null && Object.hasOwnProperty.call(message, "mimeType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.mimeType); + return writer; + }; + + /** + * Encodes the specified VideoDataItem message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoDataItem.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoDataItem + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoDataItem} message VideoDataItem message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoDataItem.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VideoDataItem message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoDataItem + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoDataItem} VideoDataItem + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoDataItem.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.VideoDataItem(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.gcsUri = reader.string(); + break; + case 2: + message.mimeType = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VideoDataItem message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoDataItem + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoDataItem} VideoDataItem + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoDataItem.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VideoDataItem message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoDataItem + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VideoDataItem.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) + if (!$util.isString(message.gcsUri)) + return "gcsUri: string expected"; + if (message.mimeType != null && message.hasOwnProperty("mimeType")) + if (!$util.isString(message.mimeType)) + return "mimeType: string expected"; + return null; + }; + + /** + * Creates a VideoDataItem message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoDataItem + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoDataItem} VideoDataItem + */ + VideoDataItem.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.VideoDataItem) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.VideoDataItem(); + if (object.gcsUri != null) + message.gcsUri = String(object.gcsUri); + if (object.mimeType != null) + message.mimeType = String(object.mimeType); + return message; + }; + + /** + * Creates a plain object from a VideoDataItem message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoDataItem + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.VideoDataItem} message VideoDataItem + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VideoDataItem.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.gcsUri = ""; + object.mimeType = ""; + } + if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) + object.gcsUri = message.gcsUri; + if (message.mimeType != null && message.hasOwnProperty("mimeType")) + object.mimeType = message.mimeType; + return object; + }; + + /** + * Converts this VideoDataItem to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoDataItem + * @instance + * @returns {Object.} JSON object + */ + VideoDataItem.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return VideoDataItem; + })(); + + schema.TextDataItem = (function() { + + /** + * Properties of a TextDataItem. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface ITextDataItem + * @property {string|null} [gcsUri] TextDataItem gcsUri + */ + + /** + * Constructs a new TextDataItem. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents a TextDataItem. + * @implements ITextDataItem + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.ITextDataItem=} [properties] Properties to set + */ + function TextDataItem(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]]; + } + + /** + * TextDataItem gcsUri. + * @member {string} gcsUri + * @memberof google.cloud.aiplatform.v1beta1.schema.TextDataItem + * @instance + */ + TextDataItem.prototype.gcsUri = ""; + + /** + * Creates a new TextDataItem instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.TextDataItem + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITextDataItem=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.TextDataItem} TextDataItem instance + */ + TextDataItem.create = function create(properties) { + return new TextDataItem(properties); + }; + + /** + * Encodes the specified TextDataItem message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextDataItem.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.TextDataItem + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITextDataItem} message TextDataItem message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TextDataItem.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.gcsUri != null && Object.hasOwnProperty.call(message, "gcsUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.gcsUri); + return writer; + }; + + /** + * Encodes the specified TextDataItem message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextDataItem.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TextDataItem + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITextDataItem} message TextDataItem message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TextDataItem.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TextDataItem message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.TextDataItem + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.TextDataItem} TextDataItem + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TextDataItem.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.TextDataItem(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.gcsUri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TextDataItem message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TextDataItem + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.TextDataItem} TextDataItem + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TextDataItem.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TextDataItem message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.TextDataItem + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TextDataItem.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) + if (!$util.isString(message.gcsUri)) + return "gcsUri: string expected"; + return null; + }; + + /** + * Creates a TextDataItem message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TextDataItem + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.TextDataItem} TextDataItem + */ + TextDataItem.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.TextDataItem) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.TextDataItem(); + if (object.gcsUri != null) + message.gcsUri = String(object.gcsUri); + return message; + }; + + /** + * Creates a plain object from a TextDataItem message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TextDataItem + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TextDataItem} message TextDataItem + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TextDataItem.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.gcsUri = ""; + if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) + object.gcsUri = message.gcsUri; + return object; + }; + + /** + * Converts this TextDataItem to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.TextDataItem + * @instance + * @returns {Object.} JSON object + */ + TextDataItem.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return TextDataItem; + })(); + + schema.ImageDatasetMetadata = (function() { + + /** + * Properties of an ImageDatasetMetadata. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface IImageDatasetMetadata + * @property {string|null} [dataItemSchemaUri] ImageDatasetMetadata dataItemSchemaUri + * @property {string|null} [gcsBucket] ImageDatasetMetadata gcsBucket + */ + + /** + * Constructs a new ImageDatasetMetadata. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents an ImageDatasetMetadata. + * @implements IImageDatasetMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.IImageDatasetMetadata=} [properties] Properties to set + */ + function ImageDatasetMetadata(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]]; + } + + /** + * ImageDatasetMetadata dataItemSchemaUri. + * @member {string} dataItemSchemaUri + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageDatasetMetadata + * @instance + */ + ImageDatasetMetadata.prototype.dataItemSchemaUri = ""; + + /** + * ImageDatasetMetadata gcsBucket. + * @member {string} gcsBucket + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageDatasetMetadata + * @instance + */ + ImageDatasetMetadata.prototype.gcsBucket = ""; + + /** + * Creates a new ImageDatasetMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageDatasetMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IImageDatasetMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageDatasetMetadata} ImageDatasetMetadata instance + */ + ImageDatasetMetadata.create = function create(properties) { + return new ImageDatasetMetadata(properties); + }; + + /** + * Encodes the specified ImageDatasetMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageDatasetMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageDatasetMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IImageDatasetMetadata} message ImageDatasetMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageDatasetMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dataItemSchemaUri != null && Object.hasOwnProperty.call(message, "dataItemSchemaUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataItemSchemaUri); + if (message.gcsBucket != null && Object.hasOwnProperty.call(message, "gcsBucket")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.gcsBucket); + return writer; + }; + + /** + * Encodes the specified ImageDatasetMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageDatasetMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageDatasetMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IImageDatasetMetadata} message ImageDatasetMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageDatasetMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ImageDatasetMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageDatasetMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageDatasetMetadata} ImageDatasetMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageDatasetMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.ImageDatasetMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.dataItemSchemaUri = reader.string(); + break; + case 2: + message.gcsBucket = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ImageDatasetMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageDatasetMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageDatasetMetadata} ImageDatasetMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageDatasetMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ImageDatasetMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageDatasetMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ImageDatasetMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.dataItemSchemaUri != null && message.hasOwnProperty("dataItemSchemaUri")) + if (!$util.isString(message.dataItemSchemaUri)) + return "dataItemSchemaUri: string expected"; + if (message.gcsBucket != null && message.hasOwnProperty("gcsBucket")) + if (!$util.isString(message.gcsBucket)) + return "gcsBucket: string expected"; + return null; + }; + + /** + * Creates an ImageDatasetMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageDatasetMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageDatasetMetadata} ImageDatasetMetadata + */ + ImageDatasetMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.ImageDatasetMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.ImageDatasetMetadata(); + if (object.dataItemSchemaUri != null) + message.dataItemSchemaUri = String(object.dataItemSchemaUri); + if (object.gcsBucket != null) + message.gcsBucket = String(object.gcsBucket); + return message; + }; + + /** + * Creates a plain object from an ImageDatasetMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageDatasetMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ImageDatasetMetadata} message ImageDatasetMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ImageDatasetMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.dataItemSchemaUri = ""; + object.gcsBucket = ""; + } + if (message.dataItemSchemaUri != null && message.hasOwnProperty("dataItemSchemaUri")) + object.dataItemSchemaUri = message.dataItemSchemaUri; + if (message.gcsBucket != null && message.hasOwnProperty("gcsBucket")) + object.gcsBucket = message.gcsBucket; + return object; + }; + + /** + * Converts this ImageDatasetMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageDatasetMetadata + * @instance + * @returns {Object.} JSON object + */ + ImageDatasetMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ImageDatasetMetadata; + })(); + + schema.TextDatasetMetadata = (function() { + + /** + * Properties of a TextDatasetMetadata. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface ITextDatasetMetadata + * @property {string|null} [dataItemSchemaUri] TextDatasetMetadata dataItemSchemaUri + * @property {string|null} [gcsBucket] TextDatasetMetadata gcsBucket + */ + + /** + * Constructs a new TextDatasetMetadata. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents a TextDatasetMetadata. + * @implements ITextDatasetMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.ITextDatasetMetadata=} [properties] Properties to set + */ + function TextDatasetMetadata(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]]; + } + + /** + * TextDatasetMetadata dataItemSchemaUri. + * @member {string} dataItemSchemaUri + * @memberof google.cloud.aiplatform.v1beta1.schema.TextDatasetMetadata + * @instance + */ + TextDatasetMetadata.prototype.dataItemSchemaUri = ""; + + /** + * TextDatasetMetadata gcsBucket. + * @member {string} gcsBucket + * @memberof google.cloud.aiplatform.v1beta1.schema.TextDatasetMetadata + * @instance + */ + TextDatasetMetadata.prototype.gcsBucket = ""; + + /** + * Creates a new TextDatasetMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.TextDatasetMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITextDatasetMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.TextDatasetMetadata} TextDatasetMetadata instance + */ + TextDatasetMetadata.create = function create(properties) { + return new TextDatasetMetadata(properties); + }; + + /** + * Encodes the specified TextDatasetMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextDatasetMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.TextDatasetMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITextDatasetMetadata} message TextDatasetMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TextDatasetMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dataItemSchemaUri != null && Object.hasOwnProperty.call(message, "dataItemSchemaUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataItemSchemaUri); + if (message.gcsBucket != null && Object.hasOwnProperty.call(message, "gcsBucket")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.gcsBucket); + return writer; + }; + + /** + * Encodes the specified TextDatasetMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextDatasetMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TextDatasetMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITextDatasetMetadata} message TextDatasetMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TextDatasetMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TextDatasetMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.TextDatasetMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.TextDatasetMetadata} TextDatasetMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TextDatasetMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.TextDatasetMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.dataItemSchemaUri = reader.string(); + break; + case 2: + message.gcsBucket = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TextDatasetMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TextDatasetMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.TextDatasetMetadata} TextDatasetMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TextDatasetMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TextDatasetMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.TextDatasetMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TextDatasetMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.dataItemSchemaUri != null && message.hasOwnProperty("dataItemSchemaUri")) + if (!$util.isString(message.dataItemSchemaUri)) + return "dataItemSchemaUri: string expected"; + if (message.gcsBucket != null && message.hasOwnProperty("gcsBucket")) + if (!$util.isString(message.gcsBucket)) + return "gcsBucket: string expected"; + return null; + }; + + /** + * Creates a TextDatasetMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TextDatasetMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.TextDatasetMetadata} TextDatasetMetadata + */ + TextDatasetMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.TextDatasetMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.TextDatasetMetadata(); + if (object.dataItemSchemaUri != null) + message.dataItemSchemaUri = String(object.dataItemSchemaUri); + if (object.gcsBucket != null) + message.gcsBucket = String(object.gcsBucket); + return message; + }; + + /** + * Creates a plain object from a TextDatasetMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TextDatasetMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TextDatasetMetadata} message TextDatasetMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TextDatasetMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.dataItemSchemaUri = ""; + object.gcsBucket = ""; + } + if (message.dataItemSchemaUri != null && message.hasOwnProperty("dataItemSchemaUri")) + object.dataItemSchemaUri = message.dataItemSchemaUri; + if (message.gcsBucket != null && message.hasOwnProperty("gcsBucket")) + object.gcsBucket = message.gcsBucket; + return object; + }; + + /** + * Converts this TextDatasetMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.TextDatasetMetadata + * @instance + * @returns {Object.} JSON object + */ + TextDatasetMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return TextDatasetMetadata; + })(); + + schema.VideoDatasetMetadata = (function() { + + /** + * Properties of a VideoDatasetMetadata. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface IVideoDatasetMetadata + * @property {string|null} [dataItemSchemaUri] VideoDatasetMetadata dataItemSchemaUri + * @property {string|null} [gcsBucket] VideoDatasetMetadata gcsBucket + */ + + /** + * Constructs a new VideoDatasetMetadata. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents a VideoDatasetMetadata. + * @implements IVideoDatasetMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoDatasetMetadata=} [properties] Properties to set + */ + function VideoDatasetMetadata(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]]; + } + + /** + * VideoDatasetMetadata dataItemSchemaUri. + * @member {string} dataItemSchemaUri + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoDatasetMetadata + * @instance + */ + VideoDatasetMetadata.prototype.dataItemSchemaUri = ""; + + /** + * VideoDatasetMetadata gcsBucket. + * @member {string} gcsBucket + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoDatasetMetadata + * @instance + */ + VideoDatasetMetadata.prototype.gcsBucket = ""; + + /** + * Creates a new VideoDatasetMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoDatasetMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoDatasetMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoDatasetMetadata} VideoDatasetMetadata instance + */ + VideoDatasetMetadata.create = function create(properties) { + return new VideoDatasetMetadata(properties); + }; + + /** + * Encodes the specified VideoDatasetMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoDatasetMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoDatasetMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoDatasetMetadata} message VideoDatasetMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoDatasetMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dataItemSchemaUri != null && Object.hasOwnProperty.call(message, "dataItemSchemaUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataItemSchemaUri); + if (message.gcsBucket != null && Object.hasOwnProperty.call(message, "gcsBucket")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.gcsBucket); + return writer; + }; + + /** + * Encodes the specified VideoDatasetMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoDatasetMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoDatasetMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoDatasetMetadata} message VideoDatasetMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoDatasetMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VideoDatasetMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoDatasetMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoDatasetMetadata} VideoDatasetMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoDatasetMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.VideoDatasetMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.dataItemSchemaUri = reader.string(); + break; + case 2: + message.gcsBucket = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VideoDatasetMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoDatasetMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoDatasetMetadata} VideoDatasetMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoDatasetMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VideoDatasetMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoDatasetMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VideoDatasetMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.dataItemSchemaUri != null && message.hasOwnProperty("dataItemSchemaUri")) + if (!$util.isString(message.dataItemSchemaUri)) + return "dataItemSchemaUri: string expected"; + if (message.gcsBucket != null && message.hasOwnProperty("gcsBucket")) + if (!$util.isString(message.gcsBucket)) + return "gcsBucket: string expected"; + return null; + }; + + /** + * Creates a VideoDatasetMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoDatasetMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoDatasetMetadata} VideoDatasetMetadata + */ + VideoDatasetMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.VideoDatasetMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.VideoDatasetMetadata(); + if (object.dataItemSchemaUri != null) + message.dataItemSchemaUri = String(object.dataItemSchemaUri); + if (object.gcsBucket != null) + message.gcsBucket = String(object.gcsBucket); + return message; + }; + + /** + * Creates a plain object from a VideoDatasetMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoDatasetMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.VideoDatasetMetadata} message VideoDatasetMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VideoDatasetMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.dataItemSchemaUri = ""; + object.gcsBucket = ""; + } + if (message.dataItemSchemaUri != null && message.hasOwnProperty("dataItemSchemaUri")) + object.dataItemSchemaUri = message.dataItemSchemaUri; + if (message.gcsBucket != null && message.hasOwnProperty("gcsBucket")) + object.gcsBucket = message.gcsBucket; + return object; + }; + + /** + * Converts this VideoDatasetMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoDatasetMetadata + * @instance + * @returns {Object.} JSON object + */ + VideoDatasetMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return VideoDatasetMetadata; + })(); + + schema.TablesDatasetMetadata = (function() { + + /** + * Properties of a TablesDatasetMetadata. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface ITablesDatasetMetadata + * @property {google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.IInputConfig|null} [inputConfig] TablesDatasetMetadata inputConfig + */ + + /** + * Constructs a new TablesDatasetMetadata. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents a TablesDatasetMetadata. + * @implements ITablesDatasetMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.ITablesDatasetMetadata=} [properties] Properties to set + */ + function TablesDatasetMetadata(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]]; + } + + /** + * TablesDatasetMetadata inputConfig. + * @member {google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.IInputConfig|null|undefined} inputConfig + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata + * @instance + */ + TablesDatasetMetadata.prototype.inputConfig = null; + + /** + * Creates a new TablesDatasetMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITablesDatasetMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata} TablesDatasetMetadata instance + */ + TablesDatasetMetadata.create = function create(properties) { + return new TablesDatasetMetadata(properties); + }; + + /** + * Encodes the specified TablesDatasetMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITablesDatasetMetadata} message TablesDatasetMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TablesDatasetMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.inputConfig != null && Object.hasOwnProperty.call(message, "inputConfig")) + $root.google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.InputConfig.encode(message.inputConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified TablesDatasetMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITablesDatasetMetadata} message TablesDatasetMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TablesDatasetMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TablesDatasetMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata} TablesDatasetMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TablesDatasetMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.inputConfig = $root.google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.InputConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TablesDatasetMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata} TablesDatasetMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TablesDatasetMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TablesDatasetMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TablesDatasetMetadata.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.aiplatform.v1beta1.schema.TablesDatasetMetadata.InputConfig.verify(message.inputConfig); + if (error) + return "inputConfig." + error; + } + return null; + }; + + /** + * Creates a TablesDatasetMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata} TablesDatasetMetadata + */ + TablesDatasetMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata(); + if (object.inputConfig != null) { + if (typeof object.inputConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.inputConfig: object expected"); + message.inputConfig = $root.google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.InputConfig.fromObject(object.inputConfig); + } + return message; + }; + + /** + * Creates a plain object from a TablesDatasetMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata} message TablesDatasetMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TablesDatasetMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.inputConfig = null; + if (message.inputConfig != null && message.hasOwnProperty("inputConfig")) + object.inputConfig = $root.google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.InputConfig.toObject(message.inputConfig, options); + return object; + }; + + /** + * Converts this TablesDatasetMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata + * @instance + * @returns {Object.} JSON object + */ + TablesDatasetMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + TablesDatasetMetadata.InputConfig = (function() { + + /** + * Properties of an InputConfig. + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata + * @interface IInputConfig + * @property {google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.IGcsSource|null} [gcsSource] InputConfig gcsSource + * @property {google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.IBigQuerySource|null} [bigquerySource] InputConfig bigquerySource + */ + + /** + * Constructs a new InputConfig. + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata + * @classdesc Represents an InputConfig. + * @implements IInputConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.IInputConfig=} [properties] Properties to set + */ + function InputConfig(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]]; + } + + /** + * InputConfig gcsSource. + * @member {google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.IGcsSource|null|undefined} gcsSource + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.InputConfig + * @instance + */ + InputConfig.prototype.gcsSource = null; + + /** + * InputConfig bigquerySource. + * @member {google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.IBigQuerySource|null|undefined} bigquerySource + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.InputConfig + * @instance + */ + InputConfig.prototype.bigquerySource = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * InputConfig source. + * @member {"gcsSource"|"bigquerySource"|undefined} source + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.InputConfig + * @instance + */ + Object.defineProperty(InputConfig.prototype, "source", { + get: $util.oneOfGetter($oneOfFields = ["gcsSource", "bigquerySource"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InputConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.InputConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.IInputConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.InputConfig} InputConfig instance + */ + InputConfig.create = function create(properties) { + return new InputConfig(properties); + }; + + /** + * Encodes the specified InputConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.InputConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.InputConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.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.aiplatform.v1beta1.schema.TablesDatasetMetadata.GcsSource.encode(message.gcsSource, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.bigquerySource != null && Object.hasOwnProperty.call(message, "bigquerySource")) + $root.google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.BigQuerySource.encode(message.bigquerySource, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified InputConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.InputConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.InputConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.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.aiplatform.v1beta1.schema.TablesDatasetMetadata.InputConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.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.aiplatform.v1beta1.schema.TablesDatasetMetadata.InputConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.gcsSource = $root.google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.GcsSource.decode(reader, reader.uint32()); + break; + case 2: + message.bigquerySource = $root.google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.BigQuerySource.decode(reader, reader.uint32()); + 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.aiplatform.v1beta1.schema.TablesDatasetMetadata.InputConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.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.aiplatform.v1beta1.schema.TablesDatasetMetadata.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.aiplatform.v1beta1.schema.TablesDatasetMetadata.GcsSource.verify(message.gcsSource); + if (error) + return "gcsSource." + error; + } + } + if (message.bigquerySource != null && message.hasOwnProperty("bigquerySource")) { + if (properties.source === 1) + return "source: multiple values"; + properties.source = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.BigQuerySource.verify(message.bigquerySource); + if (error) + return "bigquerySource." + error; + } + } + return null; + }; + + /** + * Creates an InputConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.InputConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.InputConfig} InputConfig + */ + InputConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.InputConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.InputConfig(); + if (object.gcsSource != null) { + if (typeof object.gcsSource !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.InputConfig.gcsSource: object expected"); + message.gcsSource = $root.google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.GcsSource.fromObject(object.gcsSource); + } + if (object.bigquerySource != null) { + if (typeof object.bigquerySource !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.InputConfig.bigquerySource: object expected"); + message.bigquerySource = $root.google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.BigQuerySource.fromObject(object.bigquerySource); + } + return message; + }; + + /** + * Creates a plain object from an InputConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.InputConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.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 (message.gcsSource != null && message.hasOwnProperty("gcsSource")) { + object.gcsSource = $root.google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.GcsSource.toObject(message.gcsSource, options); + if (options.oneofs) + object.source = "gcsSource"; + } + if (message.bigquerySource != null && message.hasOwnProperty("bigquerySource")) { + object.bigquerySource = $root.google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.BigQuerySource.toObject(message.bigquerySource, options); + if (options.oneofs) + object.source = "bigquerySource"; + } + return object; + }; + + /** + * Converts this InputConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.InputConfig + * @instance + * @returns {Object.} JSON object + */ + InputConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return InputConfig; + })(); + + TablesDatasetMetadata.GcsSource = (function() { + + /** + * Properties of a GcsSource. + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata + * @interface IGcsSource + * @property {Array.|null} [uri] GcsSource uri + */ + + /** + * Constructs a new GcsSource. + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata + * @classdesc Represents a GcsSource. + * @implements IGcsSource + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.IGcsSource=} [properties] Properties to set + */ + function GcsSource(properties) { + this.uri = []; + 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]]; + } + + /** + * GcsSource uri. + * @member {Array.} uri + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.GcsSource + * @instance + */ + GcsSource.prototype.uri = $util.emptyArray; + + /** + * Creates a new GcsSource instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.GcsSource + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.IGcsSource=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.GcsSource} GcsSource instance + */ + GcsSource.create = function create(properties) { + return new GcsSource(properties); + }; + + /** + * Encodes the specified GcsSource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.GcsSource.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.GcsSource + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.IGcsSource} message GcsSource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GcsSource.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uri != null && message.uri.length) + for (var i = 0; i < message.uri.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri[i]); + return writer; + }; + + /** + * Encodes the specified GcsSource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.GcsSource.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.GcsSource + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.IGcsSource} message GcsSource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GcsSource.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GcsSource message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.GcsSource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.GcsSource} GcsSource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GcsSource.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.GcsSource(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.uri && message.uri.length)) + message.uri = []; + message.uri.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GcsSource message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.GcsSource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.GcsSource} GcsSource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GcsSource.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GcsSource message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.GcsSource + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GcsSource.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.uri != null && message.hasOwnProperty("uri")) { + if (!Array.isArray(message.uri)) + return "uri: array expected"; + for (var i = 0; i < message.uri.length; ++i) + if (!$util.isString(message.uri[i])) + return "uri: string[] expected"; + } + return null; + }; + + /** + * Creates a GcsSource message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.GcsSource + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.GcsSource} GcsSource + */ + GcsSource.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.GcsSource) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.GcsSource(); + if (object.uri) { + if (!Array.isArray(object.uri)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.GcsSource.uri: array expected"); + message.uri = []; + for (var i = 0; i < object.uri.length; ++i) + message.uri[i] = String(object.uri[i]); + } + return message; + }; + + /** + * Creates a plain object from a GcsSource message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.GcsSource + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.GcsSource} message GcsSource + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GcsSource.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uri = []; + if (message.uri && message.uri.length) { + object.uri = []; + for (var j = 0; j < message.uri.length; ++j) + object.uri[j] = message.uri[j]; + } + return object; + }; + + /** + * Converts this GcsSource to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.GcsSource + * @instance + * @returns {Object.} JSON object + */ + GcsSource.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GcsSource; + })(); + + TablesDatasetMetadata.BigQuerySource = (function() { + + /** + * Properties of a BigQuerySource. + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata + * @interface IBigQuerySource + * @property {string|null} [uri] BigQuerySource uri + */ + + /** + * Constructs a new BigQuerySource. + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata + * @classdesc Represents a BigQuerySource. + * @implements IBigQuerySource + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.IBigQuerySource=} [properties] Properties to set + */ + function BigQuerySource(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]]; + } + + /** + * BigQuerySource uri. + * @member {string} uri + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.BigQuerySource + * @instance + */ + BigQuerySource.prototype.uri = ""; + + /** + * Creates a new BigQuerySource instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.BigQuerySource + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.IBigQuerySource=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.BigQuerySource} BigQuerySource instance + */ + BigQuerySource.create = function create(properties) { + return new BigQuerySource(properties); + }; + + /** + * Encodes the specified BigQuerySource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.BigQuerySource.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.BigQuerySource + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.IBigQuerySource} message BigQuerySource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BigQuerySource.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uri != null && Object.hasOwnProperty.call(message, "uri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); + return writer; + }; + + /** + * Encodes the specified BigQuerySource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.BigQuerySource.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.BigQuerySource + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.IBigQuerySource} message BigQuerySource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BigQuerySource.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BigQuerySource message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.BigQuerySource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.BigQuerySource} BigQuerySource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BigQuerySource.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.BigQuerySource(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.uri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BigQuerySource message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.BigQuerySource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.BigQuerySource} BigQuerySource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BigQuerySource.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BigQuerySource message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.BigQuerySource + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BigQuerySource.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.uri != null && message.hasOwnProperty("uri")) + if (!$util.isString(message.uri)) + return "uri: string expected"; + return null; + }; + + /** + * Creates a BigQuerySource message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.BigQuerySource + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.BigQuerySource} BigQuerySource + */ + BigQuerySource.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.BigQuerySource) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.BigQuerySource(); + if (object.uri != null) + message.uri = String(object.uri); + return message; + }; + + /** + * Creates a plain object from a BigQuerySource message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.BigQuerySource + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.BigQuerySource} message BigQuerySource + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BigQuerySource.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.uri = ""; + if (message.uri != null && message.hasOwnProperty("uri")) + object.uri = message.uri; + return object; + }; + + /** + * Converts this BigQuerySource to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.TablesDatasetMetadata.BigQuerySource + * @instance + * @returns {Object.} JSON object + */ + BigQuerySource.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return BigQuerySource; + })(); + + return TablesDatasetMetadata; + })(); + + schema.TimeSeriesDatasetMetadata = (function() { + + /** + * Properties of a TimeSeriesDatasetMetadata. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface ITimeSeriesDatasetMetadata + * @property {google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.IInputConfig|null} [inputConfig] TimeSeriesDatasetMetadata inputConfig + * @property {string|null} [timeSeriesIdentifierColumn] TimeSeriesDatasetMetadata timeSeriesIdentifierColumn + * @property {string|null} [timeColumn] TimeSeriesDatasetMetadata timeColumn + */ + + /** + * Constructs a new TimeSeriesDatasetMetadata. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents a TimeSeriesDatasetMetadata. + * @implements ITimeSeriesDatasetMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.ITimeSeriesDatasetMetadata=} [properties] Properties to set + */ + function TimeSeriesDatasetMetadata(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]]; + } + + /** + * TimeSeriesDatasetMetadata inputConfig. + * @member {google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.IInputConfig|null|undefined} inputConfig + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata + * @instance + */ + TimeSeriesDatasetMetadata.prototype.inputConfig = null; + + /** + * TimeSeriesDatasetMetadata timeSeriesIdentifierColumn. + * @member {string} timeSeriesIdentifierColumn + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata + * @instance + */ + TimeSeriesDatasetMetadata.prototype.timeSeriesIdentifierColumn = ""; + + /** + * TimeSeriesDatasetMetadata timeColumn. + * @member {string} timeColumn + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata + * @instance + */ + TimeSeriesDatasetMetadata.prototype.timeColumn = ""; + + /** + * Creates a new TimeSeriesDatasetMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITimeSeriesDatasetMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata} TimeSeriesDatasetMetadata instance + */ + TimeSeriesDatasetMetadata.create = function create(properties) { + return new TimeSeriesDatasetMetadata(properties); + }; + + /** + * Encodes the specified TimeSeriesDatasetMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITimeSeriesDatasetMetadata} message TimeSeriesDatasetMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TimeSeriesDatasetMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.inputConfig != null && Object.hasOwnProperty.call(message, "inputConfig")) + $root.google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.InputConfig.encode(message.inputConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.timeSeriesIdentifierColumn != null && Object.hasOwnProperty.call(message, "timeSeriesIdentifierColumn")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.timeSeriesIdentifierColumn); + if (message.timeColumn != null && Object.hasOwnProperty.call(message, "timeColumn")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.timeColumn); + return writer; + }; + + /** + * Encodes the specified TimeSeriesDatasetMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITimeSeriesDatasetMetadata} message TimeSeriesDatasetMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TimeSeriesDatasetMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TimeSeriesDatasetMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata} TimeSeriesDatasetMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TimeSeriesDatasetMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.inputConfig = $root.google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.InputConfig.decode(reader, reader.uint32()); + break; + case 2: + message.timeSeriesIdentifierColumn = reader.string(); + break; + case 3: + message.timeColumn = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TimeSeriesDatasetMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata} TimeSeriesDatasetMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TimeSeriesDatasetMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TimeSeriesDatasetMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TimeSeriesDatasetMetadata.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.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.InputConfig.verify(message.inputConfig); + if (error) + return "inputConfig." + error; + } + if (message.timeSeriesIdentifierColumn != null && message.hasOwnProperty("timeSeriesIdentifierColumn")) + if (!$util.isString(message.timeSeriesIdentifierColumn)) + return "timeSeriesIdentifierColumn: string expected"; + if (message.timeColumn != null && message.hasOwnProperty("timeColumn")) + if (!$util.isString(message.timeColumn)) + return "timeColumn: string expected"; + return null; + }; + + /** + * Creates a TimeSeriesDatasetMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata} TimeSeriesDatasetMetadata + */ + TimeSeriesDatasetMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata(); + if (object.inputConfig != null) { + if (typeof object.inputConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.inputConfig: object expected"); + message.inputConfig = $root.google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.InputConfig.fromObject(object.inputConfig); + } + if (object.timeSeriesIdentifierColumn != null) + message.timeSeriesIdentifierColumn = String(object.timeSeriesIdentifierColumn); + if (object.timeColumn != null) + message.timeColumn = String(object.timeColumn); + return message; + }; + + /** + * Creates a plain object from a TimeSeriesDatasetMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata} message TimeSeriesDatasetMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TimeSeriesDatasetMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.inputConfig = null; + object.timeSeriesIdentifierColumn = ""; + object.timeColumn = ""; + } + if (message.inputConfig != null && message.hasOwnProperty("inputConfig")) + object.inputConfig = $root.google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.InputConfig.toObject(message.inputConfig, options); + if (message.timeSeriesIdentifierColumn != null && message.hasOwnProperty("timeSeriesIdentifierColumn")) + object.timeSeriesIdentifierColumn = message.timeSeriesIdentifierColumn; + if (message.timeColumn != null && message.hasOwnProperty("timeColumn")) + object.timeColumn = message.timeColumn; + return object; + }; + + /** + * Converts this TimeSeriesDatasetMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata + * @instance + * @returns {Object.} JSON object + */ + TimeSeriesDatasetMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + TimeSeriesDatasetMetadata.InputConfig = (function() { + + /** + * Properties of an InputConfig. + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata + * @interface IInputConfig + * @property {google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.IGcsSource|null} [gcsSource] InputConfig gcsSource + * @property {google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.IBigQuerySource|null} [bigquerySource] InputConfig bigquerySource + */ + + /** + * Constructs a new InputConfig. + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata + * @classdesc Represents an InputConfig. + * @implements IInputConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.IInputConfig=} [properties] Properties to set + */ + function InputConfig(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]]; + } + + /** + * InputConfig gcsSource. + * @member {google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.IGcsSource|null|undefined} gcsSource + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.InputConfig + * @instance + */ + InputConfig.prototype.gcsSource = null; + + /** + * InputConfig bigquerySource. + * @member {google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.IBigQuerySource|null|undefined} bigquerySource + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.InputConfig + * @instance + */ + InputConfig.prototype.bigquerySource = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * InputConfig source. + * @member {"gcsSource"|"bigquerySource"|undefined} source + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.InputConfig + * @instance + */ + Object.defineProperty(InputConfig.prototype, "source", { + get: $util.oneOfGetter($oneOfFields = ["gcsSource", "bigquerySource"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InputConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.InputConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.IInputConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.InputConfig} InputConfig instance + */ + InputConfig.create = function create(properties) { + return new InputConfig(properties); + }; + + /** + * Encodes the specified InputConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.InputConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.InputConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.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.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.GcsSource.encode(message.gcsSource, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.bigquerySource != null && Object.hasOwnProperty.call(message, "bigquerySource")) + $root.google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.BigQuerySource.encode(message.bigquerySource, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified InputConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.InputConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.InputConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.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.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.InputConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.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.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.InputConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.gcsSource = $root.google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.GcsSource.decode(reader, reader.uint32()); + break; + case 2: + message.bigquerySource = $root.google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.BigQuerySource.decode(reader, reader.uint32()); + 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.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.InputConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.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.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.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.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.GcsSource.verify(message.gcsSource); + if (error) + return "gcsSource." + error; + } + } + if (message.bigquerySource != null && message.hasOwnProperty("bigquerySource")) { + if (properties.source === 1) + return "source: multiple values"; + properties.source = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.BigQuerySource.verify(message.bigquerySource); + if (error) + return "bigquerySource." + error; + } + } + return null; + }; + + /** + * Creates an InputConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.InputConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.InputConfig} InputConfig + */ + InputConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.InputConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.InputConfig(); + if (object.gcsSource != null) { + if (typeof object.gcsSource !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.InputConfig.gcsSource: object expected"); + message.gcsSource = $root.google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.GcsSource.fromObject(object.gcsSource); + } + if (object.bigquerySource != null) { + if (typeof object.bigquerySource !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.InputConfig.bigquerySource: object expected"); + message.bigquerySource = $root.google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.BigQuerySource.fromObject(object.bigquerySource); + } + return message; + }; + + /** + * Creates a plain object from an InputConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.InputConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.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 (message.gcsSource != null && message.hasOwnProperty("gcsSource")) { + object.gcsSource = $root.google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.GcsSource.toObject(message.gcsSource, options); + if (options.oneofs) + object.source = "gcsSource"; + } + if (message.bigquerySource != null && message.hasOwnProperty("bigquerySource")) { + object.bigquerySource = $root.google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.BigQuerySource.toObject(message.bigquerySource, options); + if (options.oneofs) + object.source = "bigquerySource"; + } + return object; + }; + + /** + * Converts this InputConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.InputConfig + * @instance + * @returns {Object.} JSON object + */ + InputConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return InputConfig; + })(); + + TimeSeriesDatasetMetadata.GcsSource = (function() { + + /** + * Properties of a GcsSource. + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata + * @interface IGcsSource + * @property {Array.|null} [uri] GcsSource uri + */ + + /** + * Constructs a new GcsSource. + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata + * @classdesc Represents a GcsSource. + * @implements IGcsSource + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.IGcsSource=} [properties] Properties to set + */ + function GcsSource(properties) { + this.uri = []; + 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]]; + } + + /** + * GcsSource uri. + * @member {Array.} uri + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.GcsSource + * @instance + */ + GcsSource.prototype.uri = $util.emptyArray; + + /** + * Creates a new GcsSource instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.GcsSource + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.IGcsSource=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.GcsSource} GcsSource instance + */ + GcsSource.create = function create(properties) { + return new GcsSource(properties); + }; + + /** + * Encodes the specified GcsSource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.GcsSource.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.GcsSource + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.IGcsSource} message GcsSource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GcsSource.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uri != null && message.uri.length) + for (var i = 0; i < message.uri.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri[i]); + return writer; + }; + + /** + * Encodes the specified GcsSource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.GcsSource.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.GcsSource + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.IGcsSource} message GcsSource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GcsSource.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GcsSource message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.GcsSource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.GcsSource} GcsSource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GcsSource.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.GcsSource(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.uri && message.uri.length)) + message.uri = []; + message.uri.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GcsSource message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.GcsSource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.GcsSource} GcsSource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GcsSource.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GcsSource message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.GcsSource + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GcsSource.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.uri != null && message.hasOwnProperty("uri")) { + if (!Array.isArray(message.uri)) + return "uri: array expected"; + for (var i = 0; i < message.uri.length; ++i) + if (!$util.isString(message.uri[i])) + return "uri: string[] expected"; + } + return null; + }; + + /** + * Creates a GcsSource message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.GcsSource + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.GcsSource} GcsSource + */ + GcsSource.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.GcsSource) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.GcsSource(); + if (object.uri) { + if (!Array.isArray(object.uri)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.GcsSource.uri: array expected"); + message.uri = []; + for (var i = 0; i < object.uri.length; ++i) + message.uri[i] = String(object.uri[i]); + } + return message; + }; + + /** + * Creates a plain object from a GcsSource message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.GcsSource + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.GcsSource} message GcsSource + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GcsSource.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uri = []; + if (message.uri && message.uri.length) { + object.uri = []; + for (var j = 0; j < message.uri.length; ++j) + object.uri[j] = message.uri[j]; + } + return object; + }; + + /** + * Converts this GcsSource to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.GcsSource + * @instance + * @returns {Object.} JSON object + */ + GcsSource.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GcsSource; + })(); + + TimeSeriesDatasetMetadata.BigQuerySource = (function() { + + /** + * Properties of a BigQuerySource. + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata + * @interface IBigQuerySource + * @property {string|null} [uri] BigQuerySource uri + */ + + /** + * Constructs a new BigQuerySource. + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata + * @classdesc Represents a BigQuerySource. + * @implements IBigQuerySource + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.IBigQuerySource=} [properties] Properties to set + */ + function BigQuerySource(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]]; + } + + /** + * BigQuerySource uri. + * @member {string} uri + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.BigQuerySource + * @instance + */ + BigQuerySource.prototype.uri = ""; + + /** + * Creates a new BigQuerySource instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.BigQuerySource + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.IBigQuerySource=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.BigQuerySource} BigQuerySource instance + */ + BigQuerySource.create = function create(properties) { + return new BigQuerySource(properties); + }; + + /** + * Encodes the specified BigQuerySource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.BigQuerySource.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.BigQuerySource + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.IBigQuerySource} message BigQuerySource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BigQuerySource.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uri != null && Object.hasOwnProperty.call(message, "uri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); + return writer; + }; + + /** + * Encodes the specified BigQuerySource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.BigQuerySource.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.BigQuerySource + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.IBigQuerySource} message BigQuerySource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BigQuerySource.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BigQuerySource message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.BigQuerySource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.BigQuerySource} BigQuerySource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BigQuerySource.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.BigQuerySource(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.uri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BigQuerySource message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.BigQuerySource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.BigQuerySource} BigQuerySource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BigQuerySource.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BigQuerySource message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.BigQuerySource + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BigQuerySource.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.uri != null && message.hasOwnProperty("uri")) + if (!$util.isString(message.uri)) + return "uri: string expected"; + return null; + }; + + /** + * Creates a BigQuerySource message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.BigQuerySource + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.BigQuerySource} BigQuerySource + */ + BigQuerySource.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.BigQuerySource) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.BigQuerySource(); + if (object.uri != null) + message.uri = String(object.uri); + return message; + }; + + /** + * Creates a plain object from a BigQuerySource message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.BigQuerySource + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.BigQuerySource} message BigQuerySource + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BigQuerySource.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.uri = ""; + if (message.uri != null && message.hasOwnProperty("uri")) + object.uri = message.uri; + return object; + }; + + /** + * Converts this BigQuerySource to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.TimeSeriesDatasetMetadata.BigQuerySource + * @instance + * @returns {Object.} JSON object + */ + BigQuerySource.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return BigQuerySource; + })(); + + return TimeSeriesDatasetMetadata; + })(); + + schema.ImageClassificationPredictionInstance = (function() { + + /** + * Properties of an ImageClassificationPredictionInstance. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface IImageClassificationPredictionInstance + * @property {string|null} [content] ImageClassificationPredictionInstance content + * @property {string|null} [mimeType] ImageClassificationPredictionInstance mimeType + */ + + /** + * Constructs a new ImageClassificationPredictionInstance. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents an ImageClassificationPredictionInstance. + * @implements IImageClassificationPredictionInstance + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.IImageClassificationPredictionInstance=} [properties] Properties to set + */ + function ImageClassificationPredictionInstance(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]]; + } + + /** + * ImageClassificationPredictionInstance content. + * @member {string} content + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionInstance + * @instance + */ + ImageClassificationPredictionInstance.prototype.content = ""; + + /** + * ImageClassificationPredictionInstance mimeType. + * @member {string} mimeType + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionInstance + * @instance + */ + ImageClassificationPredictionInstance.prototype.mimeType = ""; + + /** + * Creates a new ImageClassificationPredictionInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IImageClassificationPredictionInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionInstance} ImageClassificationPredictionInstance instance + */ + ImageClassificationPredictionInstance.create = function create(properties) { + return new ImageClassificationPredictionInstance(properties); + }; + + /** + * Encodes the specified ImageClassificationPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IImageClassificationPredictionInstance} message ImageClassificationPredictionInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageClassificationPredictionInstance.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); + return writer; + }; + + /** + * Encodes the specified ImageClassificationPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IImageClassificationPredictionInstance} message ImageClassificationPredictionInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageClassificationPredictionInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ImageClassificationPredictionInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionInstance} ImageClassificationPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageClassificationPredictionInstance.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionInstance(); + 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; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ImageClassificationPredictionInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionInstance} ImageClassificationPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageClassificationPredictionInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ImageClassificationPredictionInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ImageClassificationPredictionInstance.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"; + return null; + }; + + /** + * Creates an ImageClassificationPredictionInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionInstance} ImageClassificationPredictionInstance + */ + ImageClassificationPredictionInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionInstance(); + if (object.content != null) + message.content = String(object.content); + if (object.mimeType != null) + message.mimeType = String(object.mimeType); + return message; + }; + + /** + * Creates a plain object from an ImageClassificationPredictionInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionInstance} message ImageClassificationPredictionInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ImageClassificationPredictionInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.content = ""; + object.mimeType = ""; + } + if (message.content != null && message.hasOwnProperty("content")) + object.content = message.content; + if (message.mimeType != null && message.hasOwnProperty("mimeType")) + object.mimeType = message.mimeType; + return object; + }; + + /** + * Converts this ImageClassificationPredictionInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionInstance + * @instance + * @returns {Object.} JSON object + */ + ImageClassificationPredictionInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ImageClassificationPredictionInstance; + })(); + + schema.ImageObjectDetectionPredictionInstance = (function() { + + /** + * Properties of an ImageObjectDetectionPredictionInstance. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface IImageObjectDetectionPredictionInstance + * @property {string|null} [content] ImageObjectDetectionPredictionInstance content + * @property {string|null} [mimeType] ImageObjectDetectionPredictionInstance mimeType + */ + + /** + * Constructs a new ImageObjectDetectionPredictionInstance. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents an ImageObjectDetectionPredictionInstance. + * @implements IImageObjectDetectionPredictionInstance + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.IImageObjectDetectionPredictionInstance=} [properties] Properties to set + */ + function ImageObjectDetectionPredictionInstance(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]]; + } + + /** + * ImageObjectDetectionPredictionInstance content. + * @member {string} content + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionInstance + * @instance + */ + ImageObjectDetectionPredictionInstance.prototype.content = ""; + + /** + * ImageObjectDetectionPredictionInstance mimeType. + * @member {string} mimeType + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionInstance + * @instance + */ + ImageObjectDetectionPredictionInstance.prototype.mimeType = ""; + + /** + * Creates a new ImageObjectDetectionPredictionInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IImageObjectDetectionPredictionInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionInstance} ImageObjectDetectionPredictionInstance instance + */ + ImageObjectDetectionPredictionInstance.create = function create(properties) { + return new ImageObjectDetectionPredictionInstance(properties); + }; + + /** + * Encodes the specified ImageObjectDetectionPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IImageObjectDetectionPredictionInstance} message ImageObjectDetectionPredictionInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageObjectDetectionPredictionInstance.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); + return writer; + }; + + /** + * Encodes the specified ImageObjectDetectionPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IImageObjectDetectionPredictionInstance} message ImageObjectDetectionPredictionInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageObjectDetectionPredictionInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ImageObjectDetectionPredictionInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionInstance} ImageObjectDetectionPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageObjectDetectionPredictionInstance.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionInstance(); + 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; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ImageObjectDetectionPredictionInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionInstance} ImageObjectDetectionPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageObjectDetectionPredictionInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ImageObjectDetectionPredictionInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ImageObjectDetectionPredictionInstance.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"; + return null; + }; + + /** + * Creates an ImageObjectDetectionPredictionInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionInstance} ImageObjectDetectionPredictionInstance + */ + ImageObjectDetectionPredictionInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionInstance(); + if (object.content != null) + message.content = String(object.content); + if (object.mimeType != null) + message.mimeType = String(object.mimeType); + return message; + }; + + /** + * Creates a plain object from an ImageObjectDetectionPredictionInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionInstance} message ImageObjectDetectionPredictionInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ImageObjectDetectionPredictionInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.content = ""; + object.mimeType = ""; + } + if (message.content != null && message.hasOwnProperty("content")) + object.content = message.content; + if (message.mimeType != null && message.hasOwnProperty("mimeType")) + object.mimeType = message.mimeType; + return object; + }; + + /** + * Converts this ImageObjectDetectionPredictionInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionInstance + * @instance + * @returns {Object.} JSON object + */ + ImageObjectDetectionPredictionInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ImageObjectDetectionPredictionInstance; + })(); + + schema.ImageSegmentationPredictionInstance = (function() { + + /** + * Properties of an ImageSegmentationPredictionInstance. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface IImageSegmentationPredictionInstance + * @property {string|null} [content] ImageSegmentationPredictionInstance content + * @property {string|null} [mimeType] ImageSegmentationPredictionInstance mimeType + */ + + /** + * Constructs a new ImageSegmentationPredictionInstance. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents an ImageSegmentationPredictionInstance. + * @implements IImageSegmentationPredictionInstance + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.IImageSegmentationPredictionInstance=} [properties] Properties to set + */ + function ImageSegmentationPredictionInstance(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]]; + } + + /** + * ImageSegmentationPredictionInstance content. + * @member {string} content + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionInstance + * @instance + */ + ImageSegmentationPredictionInstance.prototype.content = ""; + + /** + * ImageSegmentationPredictionInstance mimeType. + * @member {string} mimeType + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionInstance + * @instance + */ + ImageSegmentationPredictionInstance.prototype.mimeType = ""; + + /** + * Creates a new ImageSegmentationPredictionInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IImageSegmentationPredictionInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionInstance} ImageSegmentationPredictionInstance instance + */ + ImageSegmentationPredictionInstance.create = function create(properties) { + return new ImageSegmentationPredictionInstance(properties); + }; + + /** + * Encodes the specified ImageSegmentationPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IImageSegmentationPredictionInstance} message ImageSegmentationPredictionInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageSegmentationPredictionInstance.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); + return writer; + }; + + /** + * Encodes the specified ImageSegmentationPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IImageSegmentationPredictionInstance} message ImageSegmentationPredictionInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageSegmentationPredictionInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ImageSegmentationPredictionInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionInstance} ImageSegmentationPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageSegmentationPredictionInstance.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionInstance(); + 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; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ImageSegmentationPredictionInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionInstance} ImageSegmentationPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageSegmentationPredictionInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ImageSegmentationPredictionInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ImageSegmentationPredictionInstance.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"; + return null; + }; + + /** + * Creates an ImageSegmentationPredictionInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionInstance} ImageSegmentationPredictionInstance + */ + ImageSegmentationPredictionInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionInstance(); + if (object.content != null) + message.content = String(object.content); + if (object.mimeType != null) + message.mimeType = String(object.mimeType); + return message; + }; + + /** + * Creates a plain object from an ImageSegmentationPredictionInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionInstance} message ImageSegmentationPredictionInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ImageSegmentationPredictionInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.content = ""; + object.mimeType = ""; + } + if (message.content != null && message.hasOwnProperty("content")) + object.content = message.content; + if (message.mimeType != null && message.hasOwnProperty("mimeType")) + object.mimeType = message.mimeType; + return object; + }; + + /** + * Converts this ImageSegmentationPredictionInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionInstance + * @instance + * @returns {Object.} JSON object + */ + ImageSegmentationPredictionInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ImageSegmentationPredictionInstance; + })(); + + schema.VideoClassificationPredictionInstance = (function() { + + /** + * Properties of a VideoClassificationPredictionInstance. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface IVideoClassificationPredictionInstance + * @property {string|null} [content] VideoClassificationPredictionInstance content + * @property {string|null} [mimeType] VideoClassificationPredictionInstance mimeType + * @property {string|null} [timeSegmentStart] VideoClassificationPredictionInstance timeSegmentStart + * @property {string|null} [timeSegmentEnd] VideoClassificationPredictionInstance timeSegmentEnd + */ + + /** + * Constructs a new VideoClassificationPredictionInstance. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents a VideoClassificationPredictionInstance. + * @implements IVideoClassificationPredictionInstance + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoClassificationPredictionInstance=} [properties] Properties to set + */ + function VideoClassificationPredictionInstance(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]]; + } + + /** + * VideoClassificationPredictionInstance content. + * @member {string} content + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionInstance + * @instance + */ + VideoClassificationPredictionInstance.prototype.content = ""; + + /** + * VideoClassificationPredictionInstance mimeType. + * @member {string} mimeType + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionInstance + * @instance + */ + VideoClassificationPredictionInstance.prototype.mimeType = ""; + + /** + * VideoClassificationPredictionInstance timeSegmentStart. + * @member {string} timeSegmentStart + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionInstance + * @instance + */ + VideoClassificationPredictionInstance.prototype.timeSegmentStart = ""; + + /** + * VideoClassificationPredictionInstance timeSegmentEnd. + * @member {string} timeSegmentEnd + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionInstance + * @instance + */ + VideoClassificationPredictionInstance.prototype.timeSegmentEnd = ""; + + /** + * Creates a new VideoClassificationPredictionInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoClassificationPredictionInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionInstance} VideoClassificationPredictionInstance instance + */ + VideoClassificationPredictionInstance.create = function create(properties) { + return new VideoClassificationPredictionInstance(properties); + }; + + /** + * Encodes the specified VideoClassificationPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoClassificationPredictionInstance} message VideoClassificationPredictionInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoClassificationPredictionInstance.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.timeSegmentStart != null && Object.hasOwnProperty.call(message, "timeSegmentStart")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.timeSegmentStart); + if (message.timeSegmentEnd != null && Object.hasOwnProperty.call(message, "timeSegmentEnd")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.timeSegmentEnd); + return writer; + }; + + /** + * Encodes the specified VideoClassificationPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoClassificationPredictionInstance} message VideoClassificationPredictionInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoClassificationPredictionInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VideoClassificationPredictionInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionInstance} VideoClassificationPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoClassificationPredictionInstance.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionInstance(); + 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 3: + message.timeSegmentStart = reader.string(); + break; + case 4: + message.timeSegmentEnd = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VideoClassificationPredictionInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionInstance} VideoClassificationPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoClassificationPredictionInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VideoClassificationPredictionInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VideoClassificationPredictionInstance.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.timeSegmentStart != null && message.hasOwnProperty("timeSegmentStart")) + if (!$util.isString(message.timeSegmentStart)) + return "timeSegmentStart: string expected"; + if (message.timeSegmentEnd != null && message.hasOwnProperty("timeSegmentEnd")) + if (!$util.isString(message.timeSegmentEnd)) + return "timeSegmentEnd: string expected"; + return null; + }; + + /** + * Creates a VideoClassificationPredictionInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionInstance} VideoClassificationPredictionInstance + */ + VideoClassificationPredictionInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionInstance(); + if (object.content != null) + message.content = String(object.content); + if (object.mimeType != null) + message.mimeType = String(object.mimeType); + if (object.timeSegmentStart != null) + message.timeSegmentStart = String(object.timeSegmentStart); + if (object.timeSegmentEnd != null) + message.timeSegmentEnd = String(object.timeSegmentEnd); + return message; + }; + + /** + * Creates a plain object from a VideoClassificationPredictionInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionInstance} message VideoClassificationPredictionInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VideoClassificationPredictionInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.content = ""; + object.mimeType = ""; + object.timeSegmentStart = ""; + object.timeSegmentEnd = ""; + } + if (message.content != null && message.hasOwnProperty("content")) + object.content = message.content; + if (message.mimeType != null && message.hasOwnProperty("mimeType")) + object.mimeType = message.mimeType; + if (message.timeSegmentStart != null && message.hasOwnProperty("timeSegmentStart")) + object.timeSegmentStart = message.timeSegmentStart; + if (message.timeSegmentEnd != null && message.hasOwnProperty("timeSegmentEnd")) + object.timeSegmentEnd = message.timeSegmentEnd; + return object; + }; + + /** + * Converts this VideoClassificationPredictionInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionInstance + * @instance + * @returns {Object.} JSON object + */ + VideoClassificationPredictionInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return VideoClassificationPredictionInstance; + })(); + + schema.VideoObjectTrackingPredictionInstance = (function() { + + /** + * Properties of a VideoObjectTrackingPredictionInstance. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface IVideoObjectTrackingPredictionInstance + * @property {string|null} [content] VideoObjectTrackingPredictionInstance content + * @property {string|null} [mimeType] VideoObjectTrackingPredictionInstance mimeType + * @property {string|null} [timeSegmentStart] VideoObjectTrackingPredictionInstance timeSegmentStart + * @property {string|null} [timeSegmentEnd] VideoObjectTrackingPredictionInstance timeSegmentEnd + */ + + /** + * Constructs a new VideoObjectTrackingPredictionInstance. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents a VideoObjectTrackingPredictionInstance. + * @implements IVideoObjectTrackingPredictionInstance + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoObjectTrackingPredictionInstance=} [properties] Properties to set + */ + function VideoObjectTrackingPredictionInstance(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]]; + } + + /** + * VideoObjectTrackingPredictionInstance content. + * @member {string} content + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionInstance + * @instance + */ + VideoObjectTrackingPredictionInstance.prototype.content = ""; + + /** + * VideoObjectTrackingPredictionInstance mimeType. + * @member {string} mimeType + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionInstance + * @instance + */ + VideoObjectTrackingPredictionInstance.prototype.mimeType = ""; + + /** + * VideoObjectTrackingPredictionInstance timeSegmentStart. + * @member {string} timeSegmentStart + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionInstance + * @instance + */ + VideoObjectTrackingPredictionInstance.prototype.timeSegmentStart = ""; + + /** + * VideoObjectTrackingPredictionInstance timeSegmentEnd. + * @member {string} timeSegmentEnd + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionInstance + * @instance + */ + VideoObjectTrackingPredictionInstance.prototype.timeSegmentEnd = ""; + + /** + * Creates a new VideoObjectTrackingPredictionInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoObjectTrackingPredictionInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionInstance} VideoObjectTrackingPredictionInstance instance + */ + VideoObjectTrackingPredictionInstance.create = function create(properties) { + return new VideoObjectTrackingPredictionInstance(properties); + }; + + /** + * Encodes the specified VideoObjectTrackingPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoObjectTrackingPredictionInstance} message VideoObjectTrackingPredictionInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoObjectTrackingPredictionInstance.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.timeSegmentStart != null && Object.hasOwnProperty.call(message, "timeSegmentStart")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.timeSegmentStart); + if (message.timeSegmentEnd != null && Object.hasOwnProperty.call(message, "timeSegmentEnd")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.timeSegmentEnd); + return writer; + }; + + /** + * Encodes the specified VideoObjectTrackingPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoObjectTrackingPredictionInstance} message VideoObjectTrackingPredictionInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoObjectTrackingPredictionInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VideoObjectTrackingPredictionInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionInstance} VideoObjectTrackingPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoObjectTrackingPredictionInstance.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionInstance(); + 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 3: + message.timeSegmentStart = reader.string(); + break; + case 4: + message.timeSegmentEnd = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VideoObjectTrackingPredictionInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionInstance} VideoObjectTrackingPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoObjectTrackingPredictionInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VideoObjectTrackingPredictionInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VideoObjectTrackingPredictionInstance.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.timeSegmentStart != null && message.hasOwnProperty("timeSegmentStart")) + if (!$util.isString(message.timeSegmentStart)) + return "timeSegmentStart: string expected"; + if (message.timeSegmentEnd != null && message.hasOwnProperty("timeSegmentEnd")) + if (!$util.isString(message.timeSegmentEnd)) + return "timeSegmentEnd: string expected"; + return null; + }; + + /** + * Creates a VideoObjectTrackingPredictionInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionInstance} VideoObjectTrackingPredictionInstance + */ + VideoObjectTrackingPredictionInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionInstance(); + if (object.content != null) + message.content = String(object.content); + if (object.mimeType != null) + message.mimeType = String(object.mimeType); + if (object.timeSegmentStart != null) + message.timeSegmentStart = String(object.timeSegmentStart); + if (object.timeSegmentEnd != null) + message.timeSegmentEnd = String(object.timeSegmentEnd); + return message; + }; + + /** + * Creates a plain object from a VideoObjectTrackingPredictionInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionInstance} message VideoObjectTrackingPredictionInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VideoObjectTrackingPredictionInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.content = ""; + object.mimeType = ""; + object.timeSegmentStart = ""; + object.timeSegmentEnd = ""; + } + if (message.content != null && message.hasOwnProperty("content")) + object.content = message.content; + if (message.mimeType != null && message.hasOwnProperty("mimeType")) + object.mimeType = message.mimeType; + if (message.timeSegmentStart != null && message.hasOwnProperty("timeSegmentStart")) + object.timeSegmentStart = message.timeSegmentStart; + if (message.timeSegmentEnd != null && message.hasOwnProperty("timeSegmentEnd")) + object.timeSegmentEnd = message.timeSegmentEnd; + return object; + }; + + /** + * Converts this VideoObjectTrackingPredictionInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionInstance + * @instance + * @returns {Object.} JSON object + */ + VideoObjectTrackingPredictionInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return VideoObjectTrackingPredictionInstance; + })(); + + schema.VideoActionRecognitionPredictionInstance = (function() { + + /** + * Properties of a VideoActionRecognitionPredictionInstance. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface IVideoActionRecognitionPredictionInstance + * @property {string|null} [content] VideoActionRecognitionPredictionInstance content + * @property {string|null} [mimeType] VideoActionRecognitionPredictionInstance mimeType + * @property {string|null} [timeSegmentStart] VideoActionRecognitionPredictionInstance timeSegmentStart + * @property {string|null} [timeSegmentEnd] VideoActionRecognitionPredictionInstance timeSegmentEnd + */ + + /** + * Constructs a new VideoActionRecognitionPredictionInstance. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents a VideoActionRecognitionPredictionInstance. + * @implements IVideoActionRecognitionPredictionInstance + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoActionRecognitionPredictionInstance=} [properties] Properties to set + */ + function VideoActionRecognitionPredictionInstance(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]]; + } + + /** + * VideoActionRecognitionPredictionInstance content. + * @member {string} content + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionInstance + * @instance + */ + VideoActionRecognitionPredictionInstance.prototype.content = ""; + + /** + * VideoActionRecognitionPredictionInstance mimeType. + * @member {string} mimeType + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionInstance + * @instance + */ + VideoActionRecognitionPredictionInstance.prototype.mimeType = ""; + + /** + * VideoActionRecognitionPredictionInstance timeSegmentStart. + * @member {string} timeSegmentStart + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionInstance + * @instance + */ + VideoActionRecognitionPredictionInstance.prototype.timeSegmentStart = ""; + + /** + * VideoActionRecognitionPredictionInstance timeSegmentEnd. + * @member {string} timeSegmentEnd + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionInstance + * @instance + */ + VideoActionRecognitionPredictionInstance.prototype.timeSegmentEnd = ""; + + /** + * Creates a new VideoActionRecognitionPredictionInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoActionRecognitionPredictionInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionInstance} VideoActionRecognitionPredictionInstance instance + */ + VideoActionRecognitionPredictionInstance.create = function create(properties) { + return new VideoActionRecognitionPredictionInstance(properties); + }; + + /** + * Encodes the specified VideoActionRecognitionPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoActionRecognitionPredictionInstance} message VideoActionRecognitionPredictionInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoActionRecognitionPredictionInstance.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.timeSegmentStart != null && Object.hasOwnProperty.call(message, "timeSegmentStart")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.timeSegmentStart); + if (message.timeSegmentEnd != null && Object.hasOwnProperty.call(message, "timeSegmentEnd")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.timeSegmentEnd); + return writer; + }; + + /** + * Encodes the specified VideoActionRecognitionPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoActionRecognitionPredictionInstance} message VideoActionRecognitionPredictionInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoActionRecognitionPredictionInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VideoActionRecognitionPredictionInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionInstance} VideoActionRecognitionPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoActionRecognitionPredictionInstance.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionInstance(); + 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 3: + message.timeSegmentStart = reader.string(); + break; + case 4: + message.timeSegmentEnd = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VideoActionRecognitionPredictionInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionInstance} VideoActionRecognitionPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoActionRecognitionPredictionInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VideoActionRecognitionPredictionInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VideoActionRecognitionPredictionInstance.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.timeSegmentStart != null && message.hasOwnProperty("timeSegmentStart")) + if (!$util.isString(message.timeSegmentStart)) + return "timeSegmentStart: string expected"; + if (message.timeSegmentEnd != null && message.hasOwnProperty("timeSegmentEnd")) + if (!$util.isString(message.timeSegmentEnd)) + return "timeSegmentEnd: string expected"; + return null; + }; + + /** + * Creates a VideoActionRecognitionPredictionInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionInstance} VideoActionRecognitionPredictionInstance + */ + VideoActionRecognitionPredictionInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionInstance(); + if (object.content != null) + message.content = String(object.content); + if (object.mimeType != null) + message.mimeType = String(object.mimeType); + if (object.timeSegmentStart != null) + message.timeSegmentStart = String(object.timeSegmentStart); + if (object.timeSegmentEnd != null) + message.timeSegmentEnd = String(object.timeSegmentEnd); + return message; + }; + + /** + * Creates a plain object from a VideoActionRecognitionPredictionInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionInstance} message VideoActionRecognitionPredictionInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VideoActionRecognitionPredictionInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.content = ""; + object.mimeType = ""; + object.timeSegmentStart = ""; + object.timeSegmentEnd = ""; + } + if (message.content != null && message.hasOwnProperty("content")) + object.content = message.content; + if (message.mimeType != null && message.hasOwnProperty("mimeType")) + object.mimeType = message.mimeType; + if (message.timeSegmentStart != null && message.hasOwnProperty("timeSegmentStart")) + object.timeSegmentStart = message.timeSegmentStart; + if (message.timeSegmentEnd != null && message.hasOwnProperty("timeSegmentEnd")) + object.timeSegmentEnd = message.timeSegmentEnd; + return object; + }; + + /** + * Converts this VideoActionRecognitionPredictionInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionInstance + * @instance + * @returns {Object.} JSON object + */ + VideoActionRecognitionPredictionInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return VideoActionRecognitionPredictionInstance; + })(); + + schema.TextClassificationPredictionInstance = (function() { + + /** + * Properties of a TextClassificationPredictionInstance. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface ITextClassificationPredictionInstance + * @property {string|null} [content] TextClassificationPredictionInstance content + * @property {string|null} [mimeType] TextClassificationPredictionInstance mimeType + */ + + /** + * Constructs a new TextClassificationPredictionInstance. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents a TextClassificationPredictionInstance. + * @implements ITextClassificationPredictionInstance + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.ITextClassificationPredictionInstance=} [properties] Properties to set + */ + function TextClassificationPredictionInstance(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]]; + } + + /** + * TextClassificationPredictionInstance content. + * @member {string} content + * @memberof google.cloud.aiplatform.v1beta1.schema.TextClassificationPredictionInstance + * @instance + */ + TextClassificationPredictionInstance.prototype.content = ""; + + /** + * TextClassificationPredictionInstance mimeType. + * @member {string} mimeType + * @memberof google.cloud.aiplatform.v1beta1.schema.TextClassificationPredictionInstance + * @instance + */ + TextClassificationPredictionInstance.prototype.mimeType = ""; + + /** + * Creates a new TextClassificationPredictionInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.TextClassificationPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITextClassificationPredictionInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.TextClassificationPredictionInstance} TextClassificationPredictionInstance instance + */ + TextClassificationPredictionInstance.create = function create(properties) { + return new TextClassificationPredictionInstance(properties); + }; + + /** + * Encodes the specified TextClassificationPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextClassificationPredictionInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.TextClassificationPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITextClassificationPredictionInstance} message TextClassificationPredictionInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TextClassificationPredictionInstance.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); + return writer; + }; + + /** + * Encodes the specified TextClassificationPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextClassificationPredictionInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TextClassificationPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITextClassificationPredictionInstance} message TextClassificationPredictionInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TextClassificationPredictionInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TextClassificationPredictionInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.TextClassificationPredictionInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.TextClassificationPredictionInstance} TextClassificationPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TextClassificationPredictionInstance.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.TextClassificationPredictionInstance(); + 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; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TextClassificationPredictionInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TextClassificationPredictionInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.TextClassificationPredictionInstance} TextClassificationPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TextClassificationPredictionInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TextClassificationPredictionInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.TextClassificationPredictionInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TextClassificationPredictionInstance.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"; + return null; + }; + + /** + * Creates a TextClassificationPredictionInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TextClassificationPredictionInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.TextClassificationPredictionInstance} TextClassificationPredictionInstance + */ + TextClassificationPredictionInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.TextClassificationPredictionInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.TextClassificationPredictionInstance(); + if (object.content != null) + message.content = String(object.content); + if (object.mimeType != null) + message.mimeType = String(object.mimeType); + return message; + }; + + /** + * Creates a plain object from a TextClassificationPredictionInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TextClassificationPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TextClassificationPredictionInstance} message TextClassificationPredictionInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TextClassificationPredictionInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.content = ""; + object.mimeType = ""; + } + if (message.content != null && message.hasOwnProperty("content")) + object.content = message.content; + if (message.mimeType != null && message.hasOwnProperty("mimeType")) + object.mimeType = message.mimeType; + return object; + }; + + /** + * Converts this TextClassificationPredictionInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.TextClassificationPredictionInstance + * @instance + * @returns {Object.} JSON object + */ + TextClassificationPredictionInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return TextClassificationPredictionInstance; + })(); + + schema.TextSentimentPredictionInstance = (function() { + + /** + * Properties of a TextSentimentPredictionInstance. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface ITextSentimentPredictionInstance + * @property {string|null} [content] TextSentimentPredictionInstance content + * @property {string|null} [mimeType] TextSentimentPredictionInstance mimeType + */ + + /** + * Constructs a new TextSentimentPredictionInstance. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents a TextSentimentPredictionInstance. + * @implements ITextSentimentPredictionInstance + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.ITextSentimentPredictionInstance=} [properties] Properties to set + */ + function TextSentimentPredictionInstance(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]]; + } + + /** + * TextSentimentPredictionInstance content. + * @member {string} content + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionInstance + * @instance + */ + TextSentimentPredictionInstance.prototype.content = ""; + + /** + * TextSentimentPredictionInstance mimeType. + * @member {string} mimeType + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionInstance + * @instance + */ + TextSentimentPredictionInstance.prototype.mimeType = ""; + + /** + * Creates a new TextSentimentPredictionInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITextSentimentPredictionInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionInstance} TextSentimentPredictionInstance instance + */ + TextSentimentPredictionInstance.create = function create(properties) { + return new TextSentimentPredictionInstance(properties); + }; + + /** + * Encodes the specified TextSentimentPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITextSentimentPredictionInstance} message TextSentimentPredictionInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TextSentimentPredictionInstance.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); + return writer; + }; + + /** + * Encodes the specified TextSentimentPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITextSentimentPredictionInstance} message TextSentimentPredictionInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TextSentimentPredictionInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TextSentimentPredictionInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionInstance} TextSentimentPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TextSentimentPredictionInstance.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionInstance(); + 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; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TextSentimentPredictionInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionInstance} TextSentimentPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TextSentimentPredictionInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TextSentimentPredictionInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TextSentimentPredictionInstance.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"; + return null; + }; + + /** + * Creates a TextSentimentPredictionInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionInstance} TextSentimentPredictionInstance + */ + TextSentimentPredictionInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionInstance(); + if (object.content != null) + message.content = String(object.content); + if (object.mimeType != null) + message.mimeType = String(object.mimeType); + return message; + }; + + /** + * Creates a plain object from a TextSentimentPredictionInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionInstance} message TextSentimentPredictionInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TextSentimentPredictionInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.content = ""; + object.mimeType = ""; + } + if (message.content != null && message.hasOwnProperty("content")) + object.content = message.content; + if (message.mimeType != null && message.hasOwnProperty("mimeType")) + object.mimeType = message.mimeType; + return object; + }; + + /** + * Converts this TextSentimentPredictionInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionInstance + * @instance + * @returns {Object.} JSON object + */ + TextSentimentPredictionInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return TextSentimentPredictionInstance; + })(); + + schema.TextExtractionPredictionInstance = (function() { + + /** + * Properties of a TextExtractionPredictionInstance. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface ITextExtractionPredictionInstance + * @property {string|null} [content] TextExtractionPredictionInstance content + * @property {string|null} [mimeType] TextExtractionPredictionInstance mimeType + * @property {string|null} [key] TextExtractionPredictionInstance key + */ + + /** + * Constructs a new TextExtractionPredictionInstance. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents a TextExtractionPredictionInstance. + * @implements ITextExtractionPredictionInstance + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.ITextExtractionPredictionInstance=} [properties] Properties to set + */ + function TextExtractionPredictionInstance(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]]; + } + + /** + * TextExtractionPredictionInstance content. + * @member {string} content + * @memberof google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionInstance + * @instance + */ + TextExtractionPredictionInstance.prototype.content = ""; + + /** + * TextExtractionPredictionInstance mimeType. + * @member {string} mimeType + * @memberof google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionInstance + * @instance + */ + TextExtractionPredictionInstance.prototype.mimeType = ""; + + /** + * TextExtractionPredictionInstance key. + * @member {string} key + * @memberof google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionInstance + * @instance + */ + TextExtractionPredictionInstance.prototype.key = ""; + + /** + * Creates a new TextExtractionPredictionInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITextExtractionPredictionInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionInstance} TextExtractionPredictionInstance instance + */ + TextExtractionPredictionInstance.create = function create(properties) { + return new TextExtractionPredictionInstance(properties); + }; + + /** + * Encodes the specified TextExtractionPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITextExtractionPredictionInstance} message TextExtractionPredictionInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TextExtractionPredictionInstance.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.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.key); + return writer; + }; + + /** + * Encodes the specified TextExtractionPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITextExtractionPredictionInstance} message TextExtractionPredictionInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TextExtractionPredictionInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TextExtractionPredictionInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionInstance} TextExtractionPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TextExtractionPredictionInstance.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionInstance(); + 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 3: + message.key = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TextExtractionPredictionInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionInstance} TextExtractionPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TextExtractionPredictionInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TextExtractionPredictionInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TextExtractionPredictionInstance.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.key != null && message.hasOwnProperty("key")) + if (!$util.isString(message.key)) + return "key: string expected"; + return null; + }; + + /** + * Creates a TextExtractionPredictionInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionInstance} TextExtractionPredictionInstance + */ + TextExtractionPredictionInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionInstance(); + if (object.content != null) + message.content = String(object.content); + if (object.mimeType != null) + message.mimeType = String(object.mimeType); + if (object.key != null) + message.key = String(object.key); + return message; + }; + + /** + * Creates a plain object from a TextExtractionPredictionInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionInstance} message TextExtractionPredictionInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TextExtractionPredictionInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.content = ""; + object.mimeType = ""; + object.key = ""; + } + if (message.content != null && message.hasOwnProperty("content")) + object.content = message.content; + if (message.mimeType != null && message.hasOwnProperty("mimeType")) + object.mimeType = message.mimeType; + if (message.key != null && message.hasOwnProperty("key")) + object.key = message.key; + return object; + }; + + /** + * Converts this TextExtractionPredictionInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionInstance + * @instance + * @returns {Object.} JSON object + */ + TextExtractionPredictionInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return TextExtractionPredictionInstance; + })(); + + schema.ImageClassificationPredictionParams = (function() { + + /** + * Properties of an ImageClassificationPredictionParams. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface IImageClassificationPredictionParams + * @property {number|null} [confidenceThreshold] ImageClassificationPredictionParams confidenceThreshold + * @property {number|null} [maxPredictions] ImageClassificationPredictionParams maxPredictions + */ + + /** + * Constructs a new ImageClassificationPredictionParams. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents an ImageClassificationPredictionParams. + * @implements IImageClassificationPredictionParams + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.IImageClassificationPredictionParams=} [properties] Properties to set + */ + function ImageClassificationPredictionParams(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]]; + } + + /** + * ImageClassificationPredictionParams confidenceThreshold. + * @member {number} confidenceThreshold + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionParams + * @instance + */ + ImageClassificationPredictionParams.prototype.confidenceThreshold = 0; + + /** + * ImageClassificationPredictionParams maxPredictions. + * @member {number} maxPredictions + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionParams + * @instance + */ + ImageClassificationPredictionParams.prototype.maxPredictions = 0; + + /** + * Creates a new ImageClassificationPredictionParams instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IImageClassificationPredictionParams=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionParams} ImageClassificationPredictionParams instance + */ + ImageClassificationPredictionParams.create = function create(properties) { + return new ImageClassificationPredictionParams(properties); + }; + + /** + * Encodes the specified ImageClassificationPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionParams.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IImageClassificationPredictionParams} message ImageClassificationPredictionParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageClassificationPredictionParams.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.maxPredictions != null && Object.hasOwnProperty.call(message, "maxPredictions")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxPredictions); + return writer; + }; + + /** + * Encodes the specified ImageClassificationPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionParams.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IImageClassificationPredictionParams} message ImageClassificationPredictionParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageClassificationPredictionParams.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ImageClassificationPredictionParams message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionParams} ImageClassificationPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageClassificationPredictionParams.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionParams(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.confidenceThreshold = reader.float(); + break; + case 2: + message.maxPredictions = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ImageClassificationPredictionParams message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionParams} ImageClassificationPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageClassificationPredictionParams.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ImageClassificationPredictionParams message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionParams + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ImageClassificationPredictionParams.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.maxPredictions != null && message.hasOwnProperty("maxPredictions")) + if (!$util.isInteger(message.maxPredictions)) + return "maxPredictions: integer expected"; + return null; + }; + + /** + * Creates an ImageClassificationPredictionParams message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionParams + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionParams} ImageClassificationPredictionParams + */ + ImageClassificationPredictionParams.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionParams) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionParams(); + if (object.confidenceThreshold != null) + message.confidenceThreshold = Number(object.confidenceThreshold); + if (object.maxPredictions != null) + message.maxPredictions = object.maxPredictions | 0; + return message; + }; + + /** + * Creates a plain object from an ImageClassificationPredictionParams message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionParams} message ImageClassificationPredictionParams + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ImageClassificationPredictionParams.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.confidenceThreshold = 0; + object.maxPredictions = 0; + } + if (message.confidenceThreshold != null && message.hasOwnProperty("confidenceThreshold")) + object.confidenceThreshold = options.json && !isFinite(message.confidenceThreshold) ? String(message.confidenceThreshold) : message.confidenceThreshold; + if (message.maxPredictions != null && message.hasOwnProperty("maxPredictions")) + object.maxPredictions = message.maxPredictions; + return object; + }; + + /** + * Converts this ImageClassificationPredictionParams to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageClassificationPredictionParams + * @instance + * @returns {Object.} JSON object + */ + ImageClassificationPredictionParams.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ImageClassificationPredictionParams; + })(); + + schema.ImageObjectDetectionPredictionParams = (function() { + + /** + * Properties of an ImageObjectDetectionPredictionParams. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface IImageObjectDetectionPredictionParams + * @property {number|null} [confidenceThreshold] ImageObjectDetectionPredictionParams confidenceThreshold + * @property {number|null} [maxPredictions] ImageObjectDetectionPredictionParams maxPredictions + */ + + /** + * Constructs a new ImageObjectDetectionPredictionParams. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents an ImageObjectDetectionPredictionParams. + * @implements IImageObjectDetectionPredictionParams + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.IImageObjectDetectionPredictionParams=} [properties] Properties to set + */ + function ImageObjectDetectionPredictionParams(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]]; + } + + /** + * ImageObjectDetectionPredictionParams confidenceThreshold. + * @member {number} confidenceThreshold + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionParams + * @instance + */ + ImageObjectDetectionPredictionParams.prototype.confidenceThreshold = 0; + + /** + * ImageObjectDetectionPredictionParams maxPredictions. + * @member {number} maxPredictions + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionParams + * @instance + */ + ImageObjectDetectionPredictionParams.prototype.maxPredictions = 0; + + /** + * Creates a new ImageObjectDetectionPredictionParams instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IImageObjectDetectionPredictionParams=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionParams} ImageObjectDetectionPredictionParams instance + */ + ImageObjectDetectionPredictionParams.create = function create(properties) { + return new ImageObjectDetectionPredictionParams(properties); + }; + + /** + * Encodes the specified ImageObjectDetectionPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionParams.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IImageObjectDetectionPredictionParams} message ImageObjectDetectionPredictionParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageObjectDetectionPredictionParams.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.maxPredictions != null && Object.hasOwnProperty.call(message, "maxPredictions")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxPredictions); + return writer; + }; + + /** + * Encodes the specified ImageObjectDetectionPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionParams.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IImageObjectDetectionPredictionParams} message ImageObjectDetectionPredictionParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageObjectDetectionPredictionParams.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ImageObjectDetectionPredictionParams message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionParams} ImageObjectDetectionPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageObjectDetectionPredictionParams.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionParams(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.confidenceThreshold = reader.float(); + break; + case 2: + message.maxPredictions = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ImageObjectDetectionPredictionParams message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionParams} ImageObjectDetectionPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageObjectDetectionPredictionParams.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ImageObjectDetectionPredictionParams message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionParams + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ImageObjectDetectionPredictionParams.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.maxPredictions != null && message.hasOwnProperty("maxPredictions")) + if (!$util.isInteger(message.maxPredictions)) + return "maxPredictions: integer expected"; + return null; + }; + + /** + * Creates an ImageObjectDetectionPredictionParams message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionParams + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionParams} ImageObjectDetectionPredictionParams + */ + ImageObjectDetectionPredictionParams.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionParams) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionParams(); + if (object.confidenceThreshold != null) + message.confidenceThreshold = Number(object.confidenceThreshold); + if (object.maxPredictions != null) + message.maxPredictions = object.maxPredictions | 0; + return message; + }; + + /** + * Creates a plain object from an ImageObjectDetectionPredictionParams message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionParams} message ImageObjectDetectionPredictionParams + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ImageObjectDetectionPredictionParams.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.confidenceThreshold = 0; + object.maxPredictions = 0; + } + if (message.confidenceThreshold != null && message.hasOwnProperty("confidenceThreshold")) + object.confidenceThreshold = options.json && !isFinite(message.confidenceThreshold) ? String(message.confidenceThreshold) : message.confidenceThreshold; + if (message.maxPredictions != null && message.hasOwnProperty("maxPredictions")) + object.maxPredictions = message.maxPredictions; + return object; + }; + + /** + * Converts this ImageObjectDetectionPredictionParams to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionParams + * @instance + * @returns {Object.} JSON object + */ + ImageObjectDetectionPredictionParams.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ImageObjectDetectionPredictionParams; + })(); + + schema.ImageSegmentationPredictionParams = (function() { + + /** + * Properties of an ImageSegmentationPredictionParams. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface IImageSegmentationPredictionParams + * @property {number|null} [confidenceThreshold] ImageSegmentationPredictionParams confidenceThreshold + */ + + /** + * Constructs a new ImageSegmentationPredictionParams. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents an ImageSegmentationPredictionParams. + * @implements IImageSegmentationPredictionParams + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.IImageSegmentationPredictionParams=} [properties] Properties to set + */ + function ImageSegmentationPredictionParams(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]]; + } + + /** + * ImageSegmentationPredictionParams confidenceThreshold. + * @member {number} confidenceThreshold + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionParams + * @instance + */ + ImageSegmentationPredictionParams.prototype.confidenceThreshold = 0; + + /** + * Creates a new ImageSegmentationPredictionParams instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IImageSegmentationPredictionParams=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionParams} ImageSegmentationPredictionParams instance + */ + ImageSegmentationPredictionParams.create = function create(properties) { + return new ImageSegmentationPredictionParams(properties); + }; + + /** + * Encodes the specified ImageSegmentationPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionParams.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IImageSegmentationPredictionParams} message ImageSegmentationPredictionParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageSegmentationPredictionParams.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); + return writer; + }; + + /** + * Encodes the specified ImageSegmentationPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionParams.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IImageSegmentationPredictionParams} message ImageSegmentationPredictionParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageSegmentationPredictionParams.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ImageSegmentationPredictionParams message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionParams} ImageSegmentationPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageSegmentationPredictionParams.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionParams(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.confidenceThreshold = reader.float(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ImageSegmentationPredictionParams message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionParams} ImageSegmentationPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageSegmentationPredictionParams.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ImageSegmentationPredictionParams message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionParams + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ImageSegmentationPredictionParams.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"; + return null; + }; + + /** + * Creates an ImageSegmentationPredictionParams message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionParams + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionParams} ImageSegmentationPredictionParams + */ + ImageSegmentationPredictionParams.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionParams) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionParams(); + if (object.confidenceThreshold != null) + message.confidenceThreshold = Number(object.confidenceThreshold); + return message; + }; + + /** + * Creates a plain object from an ImageSegmentationPredictionParams message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionParams} message ImageSegmentationPredictionParams + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ImageSegmentationPredictionParams.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.confidenceThreshold = 0; + if (message.confidenceThreshold != null && message.hasOwnProperty("confidenceThreshold")) + object.confidenceThreshold = options.json && !isFinite(message.confidenceThreshold) ? String(message.confidenceThreshold) : message.confidenceThreshold; + return object; + }; + + /** + * Converts this ImageSegmentationPredictionParams to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageSegmentationPredictionParams + * @instance + * @returns {Object.} JSON object + */ + ImageSegmentationPredictionParams.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ImageSegmentationPredictionParams; + })(); + + schema.VideoClassificationPredictionParams = (function() { + + /** + * Properties of a VideoClassificationPredictionParams. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface IVideoClassificationPredictionParams + * @property {number|null} [confidenceThreshold] VideoClassificationPredictionParams confidenceThreshold + * @property {number|null} [maxPredictions] VideoClassificationPredictionParams maxPredictions + * @property {boolean|null} [segmentClassification] VideoClassificationPredictionParams segmentClassification + * @property {boolean|null} [shotClassification] VideoClassificationPredictionParams shotClassification + * @property {boolean|null} [oneSecIntervalClassification] VideoClassificationPredictionParams oneSecIntervalClassification + */ + + /** + * Constructs a new VideoClassificationPredictionParams. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents a VideoClassificationPredictionParams. + * @implements IVideoClassificationPredictionParams + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoClassificationPredictionParams=} [properties] Properties to set + */ + function VideoClassificationPredictionParams(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]]; + } + + /** + * VideoClassificationPredictionParams confidenceThreshold. + * @member {number} confidenceThreshold + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionParams + * @instance + */ + VideoClassificationPredictionParams.prototype.confidenceThreshold = 0; + + /** + * VideoClassificationPredictionParams maxPredictions. + * @member {number} maxPredictions + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionParams + * @instance + */ + VideoClassificationPredictionParams.prototype.maxPredictions = 0; + + /** + * VideoClassificationPredictionParams segmentClassification. + * @member {boolean} segmentClassification + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionParams + * @instance + */ + VideoClassificationPredictionParams.prototype.segmentClassification = false; + + /** + * VideoClassificationPredictionParams shotClassification. + * @member {boolean} shotClassification + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionParams + * @instance + */ + VideoClassificationPredictionParams.prototype.shotClassification = false; + + /** + * VideoClassificationPredictionParams oneSecIntervalClassification. + * @member {boolean} oneSecIntervalClassification + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionParams + * @instance + */ + VideoClassificationPredictionParams.prototype.oneSecIntervalClassification = false; + + /** + * Creates a new VideoClassificationPredictionParams instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoClassificationPredictionParams=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionParams} VideoClassificationPredictionParams instance + */ + VideoClassificationPredictionParams.create = function create(properties) { + return new VideoClassificationPredictionParams(properties); + }; + + /** + * Encodes the specified VideoClassificationPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionParams.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoClassificationPredictionParams} message VideoClassificationPredictionParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoClassificationPredictionParams.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.maxPredictions != null && Object.hasOwnProperty.call(message, "maxPredictions")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxPredictions); + if (message.segmentClassification != null && Object.hasOwnProperty.call(message, "segmentClassification")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.segmentClassification); + if (message.shotClassification != null && Object.hasOwnProperty.call(message, "shotClassification")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.shotClassification); + if (message.oneSecIntervalClassification != null && Object.hasOwnProperty.call(message, "oneSecIntervalClassification")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.oneSecIntervalClassification); + return writer; + }; + + /** + * Encodes the specified VideoClassificationPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionParams.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoClassificationPredictionParams} message VideoClassificationPredictionParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoClassificationPredictionParams.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VideoClassificationPredictionParams message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionParams} VideoClassificationPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoClassificationPredictionParams.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionParams(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.confidenceThreshold = reader.float(); + break; + case 2: + message.maxPredictions = reader.int32(); + break; + case 3: + message.segmentClassification = reader.bool(); + break; + case 4: + message.shotClassification = reader.bool(); + break; + case 5: + message.oneSecIntervalClassification = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VideoClassificationPredictionParams message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionParams} VideoClassificationPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoClassificationPredictionParams.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VideoClassificationPredictionParams message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionParams + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VideoClassificationPredictionParams.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.maxPredictions != null && message.hasOwnProperty("maxPredictions")) + if (!$util.isInteger(message.maxPredictions)) + return "maxPredictions: integer expected"; + if (message.segmentClassification != null && message.hasOwnProperty("segmentClassification")) + if (typeof message.segmentClassification !== "boolean") + return "segmentClassification: boolean expected"; + if (message.shotClassification != null && message.hasOwnProperty("shotClassification")) + if (typeof message.shotClassification !== "boolean") + return "shotClassification: boolean expected"; + if (message.oneSecIntervalClassification != null && message.hasOwnProperty("oneSecIntervalClassification")) + if (typeof message.oneSecIntervalClassification !== "boolean") + return "oneSecIntervalClassification: boolean expected"; + return null; + }; + + /** + * Creates a VideoClassificationPredictionParams message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionParams + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionParams} VideoClassificationPredictionParams + */ + VideoClassificationPredictionParams.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionParams) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionParams(); + if (object.confidenceThreshold != null) + message.confidenceThreshold = Number(object.confidenceThreshold); + if (object.maxPredictions != null) + message.maxPredictions = object.maxPredictions | 0; + if (object.segmentClassification != null) + message.segmentClassification = Boolean(object.segmentClassification); + if (object.shotClassification != null) + message.shotClassification = Boolean(object.shotClassification); + if (object.oneSecIntervalClassification != null) + message.oneSecIntervalClassification = Boolean(object.oneSecIntervalClassification); + return message; + }; + + /** + * Creates a plain object from a VideoClassificationPredictionParams message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionParams} message VideoClassificationPredictionParams + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VideoClassificationPredictionParams.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.confidenceThreshold = 0; + object.maxPredictions = 0; + object.segmentClassification = false; + object.shotClassification = false; + object.oneSecIntervalClassification = false; + } + if (message.confidenceThreshold != null && message.hasOwnProperty("confidenceThreshold")) + object.confidenceThreshold = options.json && !isFinite(message.confidenceThreshold) ? String(message.confidenceThreshold) : message.confidenceThreshold; + if (message.maxPredictions != null && message.hasOwnProperty("maxPredictions")) + object.maxPredictions = message.maxPredictions; + if (message.segmentClassification != null && message.hasOwnProperty("segmentClassification")) + object.segmentClassification = message.segmentClassification; + if (message.shotClassification != null && message.hasOwnProperty("shotClassification")) + object.shotClassification = message.shotClassification; + if (message.oneSecIntervalClassification != null && message.hasOwnProperty("oneSecIntervalClassification")) + object.oneSecIntervalClassification = message.oneSecIntervalClassification; + return object; + }; + + /** + * Converts this VideoClassificationPredictionParams to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionParams + * @instance + * @returns {Object.} JSON object + */ + VideoClassificationPredictionParams.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return VideoClassificationPredictionParams; + })(); + + schema.VideoObjectTrackingPredictionParams = (function() { + + /** + * Properties of a VideoObjectTrackingPredictionParams. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface IVideoObjectTrackingPredictionParams + * @property {number|null} [confidenceThreshold] VideoObjectTrackingPredictionParams confidenceThreshold + * @property {number|null} [maxPredictions] VideoObjectTrackingPredictionParams maxPredictions + * @property {number|null} [minBoundingBoxSize] VideoObjectTrackingPredictionParams minBoundingBoxSize + */ + + /** + * Constructs a new VideoObjectTrackingPredictionParams. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents a VideoObjectTrackingPredictionParams. + * @implements IVideoObjectTrackingPredictionParams + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoObjectTrackingPredictionParams=} [properties] Properties to set + */ + function VideoObjectTrackingPredictionParams(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]]; + } + + /** + * VideoObjectTrackingPredictionParams confidenceThreshold. + * @member {number} confidenceThreshold + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionParams + * @instance + */ + VideoObjectTrackingPredictionParams.prototype.confidenceThreshold = 0; + + /** + * VideoObjectTrackingPredictionParams maxPredictions. + * @member {number} maxPredictions + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionParams + * @instance + */ + VideoObjectTrackingPredictionParams.prototype.maxPredictions = 0; + + /** + * VideoObjectTrackingPredictionParams minBoundingBoxSize. + * @member {number} minBoundingBoxSize + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionParams + * @instance + */ + VideoObjectTrackingPredictionParams.prototype.minBoundingBoxSize = 0; + + /** + * Creates a new VideoObjectTrackingPredictionParams instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoObjectTrackingPredictionParams=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionParams} VideoObjectTrackingPredictionParams instance + */ + VideoObjectTrackingPredictionParams.create = function create(properties) { + return new VideoObjectTrackingPredictionParams(properties); + }; + + /** + * Encodes the specified VideoObjectTrackingPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionParams.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoObjectTrackingPredictionParams} message VideoObjectTrackingPredictionParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoObjectTrackingPredictionParams.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.maxPredictions != null && Object.hasOwnProperty.call(message, "maxPredictions")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxPredictions); + if (message.minBoundingBoxSize != null && Object.hasOwnProperty.call(message, "minBoundingBoxSize")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.minBoundingBoxSize); + return writer; + }; + + /** + * Encodes the specified VideoObjectTrackingPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionParams.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoObjectTrackingPredictionParams} message VideoObjectTrackingPredictionParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoObjectTrackingPredictionParams.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VideoObjectTrackingPredictionParams message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionParams} VideoObjectTrackingPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoObjectTrackingPredictionParams.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionParams(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.confidenceThreshold = reader.float(); + break; + case 2: + message.maxPredictions = reader.int32(); + break; + case 3: + message.minBoundingBoxSize = reader.float(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VideoObjectTrackingPredictionParams message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionParams} VideoObjectTrackingPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoObjectTrackingPredictionParams.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VideoObjectTrackingPredictionParams message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionParams + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VideoObjectTrackingPredictionParams.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.maxPredictions != null && message.hasOwnProperty("maxPredictions")) + if (!$util.isInteger(message.maxPredictions)) + return "maxPredictions: integer expected"; + if (message.minBoundingBoxSize != null && message.hasOwnProperty("minBoundingBoxSize")) + if (typeof message.minBoundingBoxSize !== "number") + return "minBoundingBoxSize: number expected"; + return null; + }; + + /** + * Creates a VideoObjectTrackingPredictionParams message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionParams + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionParams} VideoObjectTrackingPredictionParams + */ + VideoObjectTrackingPredictionParams.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionParams) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionParams(); + if (object.confidenceThreshold != null) + message.confidenceThreshold = Number(object.confidenceThreshold); + if (object.maxPredictions != null) + message.maxPredictions = object.maxPredictions | 0; + if (object.minBoundingBoxSize != null) + message.minBoundingBoxSize = Number(object.minBoundingBoxSize); + return message; + }; + + /** + * Creates a plain object from a VideoObjectTrackingPredictionParams message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionParams} message VideoObjectTrackingPredictionParams + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VideoObjectTrackingPredictionParams.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.confidenceThreshold = 0; + object.maxPredictions = 0; + object.minBoundingBoxSize = 0; + } + if (message.confidenceThreshold != null && message.hasOwnProperty("confidenceThreshold")) + object.confidenceThreshold = options.json && !isFinite(message.confidenceThreshold) ? String(message.confidenceThreshold) : message.confidenceThreshold; + if (message.maxPredictions != null && message.hasOwnProperty("maxPredictions")) + object.maxPredictions = message.maxPredictions; + if (message.minBoundingBoxSize != null && message.hasOwnProperty("minBoundingBoxSize")) + object.minBoundingBoxSize = options.json && !isFinite(message.minBoundingBoxSize) ? String(message.minBoundingBoxSize) : message.minBoundingBoxSize; + return object; + }; + + /** + * Converts this VideoObjectTrackingPredictionParams to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionParams + * @instance + * @returns {Object.} JSON object + */ + VideoObjectTrackingPredictionParams.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return VideoObjectTrackingPredictionParams; + })(); + + schema.VideoActionRecognitionPredictionParams = (function() { + + /** + * Properties of a VideoActionRecognitionPredictionParams. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface IVideoActionRecognitionPredictionParams + * @property {number|null} [confidenceThreshold] VideoActionRecognitionPredictionParams confidenceThreshold + * @property {number|null} [maxPredictions] VideoActionRecognitionPredictionParams maxPredictions + */ + + /** + * Constructs a new VideoActionRecognitionPredictionParams. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents a VideoActionRecognitionPredictionParams. + * @implements IVideoActionRecognitionPredictionParams + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoActionRecognitionPredictionParams=} [properties] Properties to set + */ + function VideoActionRecognitionPredictionParams(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]]; + } + + /** + * VideoActionRecognitionPredictionParams confidenceThreshold. + * @member {number} confidenceThreshold + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionParams + * @instance + */ + VideoActionRecognitionPredictionParams.prototype.confidenceThreshold = 0; + + /** + * VideoActionRecognitionPredictionParams maxPredictions. + * @member {number} maxPredictions + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionParams + * @instance + */ + VideoActionRecognitionPredictionParams.prototype.maxPredictions = 0; + + /** + * Creates a new VideoActionRecognitionPredictionParams instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoActionRecognitionPredictionParams=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionParams} VideoActionRecognitionPredictionParams instance + */ + VideoActionRecognitionPredictionParams.create = function create(properties) { + return new VideoActionRecognitionPredictionParams(properties); + }; + + /** + * Encodes the specified VideoActionRecognitionPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionParams.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoActionRecognitionPredictionParams} message VideoActionRecognitionPredictionParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoActionRecognitionPredictionParams.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.maxPredictions != null && Object.hasOwnProperty.call(message, "maxPredictions")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxPredictions); + return writer; + }; + + /** + * Encodes the specified VideoActionRecognitionPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionParams.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoActionRecognitionPredictionParams} message VideoActionRecognitionPredictionParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoActionRecognitionPredictionParams.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VideoActionRecognitionPredictionParams message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionParams} VideoActionRecognitionPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoActionRecognitionPredictionParams.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionParams(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.confidenceThreshold = reader.float(); + break; + case 2: + message.maxPredictions = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VideoActionRecognitionPredictionParams message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionParams} VideoActionRecognitionPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoActionRecognitionPredictionParams.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VideoActionRecognitionPredictionParams message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionParams + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VideoActionRecognitionPredictionParams.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.maxPredictions != null && message.hasOwnProperty("maxPredictions")) + if (!$util.isInteger(message.maxPredictions)) + return "maxPredictions: integer expected"; + return null; + }; + + /** + * Creates a VideoActionRecognitionPredictionParams message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionParams + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionParams} VideoActionRecognitionPredictionParams + */ + VideoActionRecognitionPredictionParams.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionParams) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionParams(); + if (object.confidenceThreshold != null) + message.confidenceThreshold = Number(object.confidenceThreshold); + if (object.maxPredictions != null) + message.maxPredictions = object.maxPredictions | 0; + return message; + }; + + /** + * Creates a plain object from a VideoActionRecognitionPredictionParams message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionParams} message VideoActionRecognitionPredictionParams + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VideoActionRecognitionPredictionParams.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.confidenceThreshold = 0; + object.maxPredictions = 0; + } + if (message.confidenceThreshold != null && message.hasOwnProperty("confidenceThreshold")) + object.confidenceThreshold = options.json && !isFinite(message.confidenceThreshold) ? String(message.confidenceThreshold) : message.confidenceThreshold; + if (message.maxPredictions != null && message.hasOwnProperty("maxPredictions")) + object.maxPredictions = message.maxPredictions; + return object; + }; + + /** + * Converts this VideoActionRecognitionPredictionParams to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoActionRecognitionPredictionParams + * @instance + * @returns {Object.} JSON object + */ + VideoActionRecognitionPredictionParams.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return VideoActionRecognitionPredictionParams; + })(); + + schema.PredictionResult = (function() { + + /** + * Properties of a PredictionResult. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface IPredictionResult + * @property {google.protobuf.IStruct|null} [instance] PredictionResult instance + * @property {string|null} [key] PredictionResult key + * @property {google.protobuf.IValue|null} [prediction] PredictionResult prediction + */ + + /** + * Constructs a new PredictionResult. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents a PredictionResult. + * @implements IPredictionResult + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.IPredictionResult=} [properties] Properties to set + */ + function PredictionResult(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]]; + } + + /** + * PredictionResult instance. + * @member {google.protobuf.IStruct|null|undefined} instance + * @memberof google.cloud.aiplatform.v1beta1.schema.PredictionResult + * @instance + */ + PredictionResult.prototype.instance = null; + + /** + * PredictionResult key. + * @member {string} key + * @memberof google.cloud.aiplatform.v1beta1.schema.PredictionResult + * @instance + */ + PredictionResult.prototype.key = ""; + + /** + * PredictionResult prediction. + * @member {google.protobuf.IValue|null|undefined} prediction + * @memberof google.cloud.aiplatform.v1beta1.schema.PredictionResult + * @instance + */ + PredictionResult.prototype.prediction = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * PredictionResult input. + * @member {"instance"|"key"|undefined} input + * @memberof google.cloud.aiplatform.v1beta1.schema.PredictionResult + * @instance + */ + Object.defineProperty(PredictionResult.prototype, "input", { + get: $util.oneOfGetter($oneOfFields = ["instance", "key"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PredictionResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.PredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IPredictionResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.PredictionResult} PredictionResult instance + */ + PredictionResult.create = function create(properties) { + return new PredictionResult(properties); + }; + + /** + * Encodes the specified PredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.PredictionResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.PredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IPredictionResult} message PredictionResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PredictionResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) + $root.google.protobuf.Struct.encode(message.instance, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.key); + if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) + $root.google.protobuf.Value.encode(message.prediction, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified PredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.PredictionResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.PredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IPredictionResult} message PredictionResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PredictionResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PredictionResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.PredictionResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.PredictionResult} PredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PredictionResult.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.PredictionResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.instance = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 2: + message.key = reader.string(); + break; + case 3: + message.prediction = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PredictionResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.PredictionResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.PredictionResult} PredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PredictionResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PredictionResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.PredictionResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PredictionResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.instance != null && message.hasOwnProperty("instance")) { + properties.input = 1; + { + var error = $root.google.protobuf.Struct.verify(message.instance); + if (error) + return "instance." + error; + } + } + if (message.key != null && message.hasOwnProperty("key")) { + if (properties.input === 1) + return "input: multiple values"; + properties.input = 1; + if (!$util.isString(message.key)) + return "key: string expected"; + } + if (message.prediction != null && message.hasOwnProperty("prediction")) { + var error = $root.google.protobuf.Value.verify(message.prediction); + if (error) + return "prediction." + error; + } + return null; + }; + + /** + * Creates a PredictionResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.PredictionResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.PredictionResult} PredictionResult + */ + PredictionResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.PredictionResult) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.PredictionResult(); + if (object.instance != null) { + if (typeof object.instance !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.PredictionResult.instance: object expected"); + message.instance = $root.google.protobuf.Struct.fromObject(object.instance); + } + if (object.key != null) + message.key = String(object.key); + if (object.prediction != null) { + if (typeof object.prediction !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.PredictionResult.prediction: object expected"); + message.prediction = $root.google.protobuf.Value.fromObject(object.prediction); + } + return message; + }; + + /** + * Creates a plain object from a PredictionResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.PredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.PredictionResult} message PredictionResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PredictionResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.prediction = null; + if (message.instance != null && message.hasOwnProperty("instance")) { + object.instance = $root.google.protobuf.Struct.toObject(message.instance, options); + if (options.oneofs) + object.input = "instance"; + } + if (message.key != null && message.hasOwnProperty("key")) { + object.key = message.key; + if (options.oneofs) + object.input = "key"; + } + if (message.prediction != null && message.hasOwnProperty("prediction")) + object.prediction = $root.google.protobuf.Value.toObject(message.prediction, options); + return object; + }; + + /** + * Converts this PredictionResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.PredictionResult + * @instance + * @returns {Object.} JSON object + */ + PredictionResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return PredictionResult; + })(); + + schema.TextSentimentPredictionResult = (function() { + + /** + * Properties of a TextSentimentPredictionResult. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface ITextSentimentPredictionResult + * @property {google.cloud.aiplatform.v1beta1.schema.ITextSentimentPredictionInstance|null} [instance] TextSentimentPredictionResult instance + * @property {google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.IPrediction|null} [prediction] TextSentimentPredictionResult prediction + */ + + /** + * Constructs a new TextSentimentPredictionResult. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents a TextSentimentPredictionResult. + * @implements ITextSentimentPredictionResult + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.ITextSentimentPredictionResult=} [properties] Properties to set + */ + function TextSentimentPredictionResult(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]]; + } + + /** + * TextSentimentPredictionResult instance. + * @member {google.cloud.aiplatform.v1beta1.schema.ITextSentimentPredictionInstance|null|undefined} instance + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult + * @instance + */ + TextSentimentPredictionResult.prototype.instance = null; + + /** + * TextSentimentPredictionResult prediction. + * @member {google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.IPrediction|null|undefined} prediction + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult + * @instance + */ + TextSentimentPredictionResult.prototype.prediction = null; + + /** + * Creates a new TextSentimentPredictionResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITextSentimentPredictionResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult} TextSentimentPredictionResult instance + */ + TextSentimentPredictionResult.create = function create(properties) { + return new TextSentimentPredictionResult(properties); + }; + + /** + * Encodes the specified TextSentimentPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITextSentimentPredictionResult} message TextSentimentPredictionResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TextSentimentPredictionResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) + $root.google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionInstance.encode(message.instance, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) + $root.google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.Prediction.encode(message.prediction, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified TextSentimentPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITextSentimentPredictionResult} message TextSentimentPredictionResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TextSentimentPredictionResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TextSentimentPredictionResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult} TextSentimentPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TextSentimentPredictionResult.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.instance = $root.google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionInstance.decode(reader, reader.uint32()); + break; + case 2: + message.prediction = $root.google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.Prediction.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TextSentimentPredictionResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult} TextSentimentPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TextSentimentPredictionResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TextSentimentPredictionResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TextSentimentPredictionResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.instance != null && message.hasOwnProperty("instance")) { + var error = $root.google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionInstance.verify(message.instance); + if (error) + return "instance." + error; + } + if (message.prediction != null && message.hasOwnProperty("prediction")) { + var error = $root.google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.Prediction.verify(message.prediction); + if (error) + return "prediction." + error; + } + return null; + }; + + /** + * Creates a TextSentimentPredictionResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult} TextSentimentPredictionResult + */ + TextSentimentPredictionResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult(); + if (object.instance != null) { + if (typeof object.instance !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.instance: object expected"); + message.instance = $root.google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionInstance.fromObject(object.instance); + } + if (object.prediction != null) { + if (typeof object.prediction !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.prediction: object expected"); + message.prediction = $root.google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.Prediction.fromObject(object.prediction); + } + return message; + }; + + /** + * Creates a plain object from a TextSentimentPredictionResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult} message TextSentimentPredictionResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TextSentimentPredictionResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.instance = null; + object.prediction = null; + } + if (message.instance != null && message.hasOwnProperty("instance")) + object.instance = $root.google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionInstance.toObject(message.instance, options); + if (message.prediction != null && message.hasOwnProperty("prediction")) + object.prediction = $root.google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.Prediction.toObject(message.prediction, options); + return object; + }; + + /** + * Converts this TextSentimentPredictionResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult + * @instance + * @returns {Object.} JSON object + */ + TextSentimentPredictionResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + TextSentimentPredictionResult.Prediction = (function() { + + /** + * Properties of a Prediction. + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult + * @interface IPrediction + * @property {number|null} [sentiment] Prediction sentiment + */ + + /** + * Constructs a new Prediction. + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult + * @classdesc Represents a Prediction. + * @implements IPrediction + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.IPrediction=} [properties] Properties to set + */ + function Prediction(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]]; + } + + /** + * Prediction sentiment. + * @member {number} sentiment + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.Prediction + * @instance + */ + Prediction.prototype.sentiment = 0; + + /** + * Creates a new Prediction instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.Prediction + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.IPrediction=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.Prediction} Prediction instance + */ + Prediction.create = function create(properties) { + return new Prediction(properties); + }; + + /** + * Encodes the specified Prediction message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.Prediction.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.Prediction + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.IPrediction} message Prediction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Prediction.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 Prediction message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.Prediction.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.Prediction + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.IPrediction} message Prediction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Prediction.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Prediction message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.Prediction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.Prediction} Prediction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Prediction.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.Prediction(); + 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 Prediction message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.Prediction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.Prediction} Prediction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Prediction.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Prediction message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.Prediction + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Prediction.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 Prediction message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.Prediction + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.Prediction} Prediction + */ + Prediction.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.Prediction) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.Prediction(); + if (object.sentiment != null) + message.sentiment = object.sentiment | 0; + return message; + }; + + /** + * Creates a plain object from a Prediction message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.Prediction + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.Prediction} message Prediction + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Prediction.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 Prediction to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentPredictionResult.Prediction + * @instance + * @returns {Object.} JSON object + */ + Prediction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Prediction; + })(); + + return TextSentimentPredictionResult; + })(); + + schema.ClassificationPredictionResult = (function() { + + /** + * Properties of a ClassificationPredictionResult. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface IClassificationPredictionResult + * @property {Array.|null} [ids] ClassificationPredictionResult ids + * @property {Array.|null} [displayNames] ClassificationPredictionResult displayNames + * @property {Array.|null} [confidences] ClassificationPredictionResult confidences + */ + + /** + * Constructs a new ClassificationPredictionResult. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents a ClassificationPredictionResult. + * @implements IClassificationPredictionResult + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.IClassificationPredictionResult=} [properties] Properties to set + */ + function ClassificationPredictionResult(properties) { + this.ids = []; + this.displayNames = []; + this.confidences = []; + 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]]; + } + + /** + * ClassificationPredictionResult ids. + * @member {Array.} ids + * @memberof google.cloud.aiplatform.v1beta1.schema.ClassificationPredictionResult + * @instance + */ + ClassificationPredictionResult.prototype.ids = $util.emptyArray; + + /** + * ClassificationPredictionResult displayNames. + * @member {Array.} displayNames + * @memberof google.cloud.aiplatform.v1beta1.schema.ClassificationPredictionResult + * @instance + */ + ClassificationPredictionResult.prototype.displayNames = $util.emptyArray; + + /** + * ClassificationPredictionResult confidences. + * @member {Array.} confidences + * @memberof google.cloud.aiplatform.v1beta1.schema.ClassificationPredictionResult + * @instance + */ + ClassificationPredictionResult.prototype.confidences = $util.emptyArray; + + /** + * Creates a new ClassificationPredictionResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.ClassificationPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IClassificationPredictionResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.ClassificationPredictionResult} ClassificationPredictionResult instance + */ + ClassificationPredictionResult.create = function create(properties) { + return new ClassificationPredictionResult(properties); + }; + + /** + * Encodes the specified ClassificationPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ClassificationPredictionResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.ClassificationPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IClassificationPredictionResult} message ClassificationPredictionResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ClassificationPredictionResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.ids != null && message.ids.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.ids.length; ++i) + writer.int64(message.ids[i]); + writer.ldelim(); + } + if (message.displayNames != null && message.displayNames.length) + for (var i = 0; i < message.displayNames.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayNames[i]); + if (message.confidences != null && message.confidences.length) { + writer.uint32(/* id 3, wireType 2 =*/26).fork(); + for (var i = 0; i < message.confidences.length; ++i) + writer.float(message.confidences[i]); + writer.ldelim(); + } + return writer; + }; + + /** + * Encodes the specified ClassificationPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ClassificationPredictionResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.ClassificationPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IClassificationPredictionResult} message ClassificationPredictionResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ClassificationPredictionResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ClassificationPredictionResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.ClassificationPredictionResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.ClassificationPredictionResult} ClassificationPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ClassificationPredictionResult.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.ClassificationPredictionResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.ids && message.ids.length)) + message.ids = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.ids.push(reader.int64()); + } else + message.ids.push(reader.int64()); + break; + case 2: + if (!(message.displayNames && message.displayNames.length)) + message.displayNames = []; + message.displayNames.push(reader.string()); + break; + case 3: + if (!(message.confidences && message.confidences.length)) + message.confidences = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.confidences.push(reader.float()); + } else + message.confidences.push(reader.float()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ClassificationPredictionResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.ClassificationPredictionResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.ClassificationPredictionResult} ClassificationPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ClassificationPredictionResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ClassificationPredictionResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.ClassificationPredictionResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ClassificationPredictionResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.ids != null && message.hasOwnProperty("ids")) { + if (!Array.isArray(message.ids)) + return "ids: array expected"; + for (var i = 0; i < message.ids.length; ++i) + if (!$util.isInteger(message.ids[i]) && !(message.ids[i] && $util.isInteger(message.ids[i].low) && $util.isInteger(message.ids[i].high))) + return "ids: integer|Long[] expected"; + } + if (message.displayNames != null && message.hasOwnProperty("displayNames")) { + if (!Array.isArray(message.displayNames)) + return "displayNames: array expected"; + for (var i = 0; i < message.displayNames.length; ++i) + if (!$util.isString(message.displayNames[i])) + return "displayNames: string[] expected"; + } + if (message.confidences != null && message.hasOwnProperty("confidences")) { + if (!Array.isArray(message.confidences)) + return "confidences: array expected"; + for (var i = 0; i < message.confidences.length; ++i) + if (typeof message.confidences[i] !== "number") + return "confidences: number[] expected"; + } + return null; + }; + + /** + * Creates a ClassificationPredictionResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.ClassificationPredictionResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.ClassificationPredictionResult} ClassificationPredictionResult + */ + ClassificationPredictionResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.ClassificationPredictionResult) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.ClassificationPredictionResult(); + if (object.ids) { + if (!Array.isArray(object.ids)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.ClassificationPredictionResult.ids: array expected"); + message.ids = []; + for (var i = 0; i < object.ids.length; ++i) + if ($util.Long) + (message.ids[i] = $util.Long.fromValue(object.ids[i])).unsigned = false; + else if (typeof object.ids[i] === "string") + message.ids[i] = parseInt(object.ids[i], 10); + else if (typeof object.ids[i] === "number") + message.ids[i] = object.ids[i]; + else if (typeof object.ids[i] === "object") + message.ids[i] = new $util.LongBits(object.ids[i].low >>> 0, object.ids[i].high >>> 0).toNumber(); + } + if (object.displayNames) { + if (!Array.isArray(object.displayNames)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.ClassificationPredictionResult.displayNames: array expected"); + message.displayNames = []; + for (var i = 0; i < object.displayNames.length; ++i) + message.displayNames[i] = String(object.displayNames[i]); + } + if (object.confidences) { + if (!Array.isArray(object.confidences)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.ClassificationPredictionResult.confidences: array expected"); + message.confidences = []; + for (var i = 0; i < object.confidences.length; ++i) + message.confidences[i] = Number(object.confidences[i]); + } + return message; + }; + + /** + * Creates a plain object from a ClassificationPredictionResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.ClassificationPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ClassificationPredictionResult} message ClassificationPredictionResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ClassificationPredictionResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.ids = []; + object.displayNames = []; + object.confidences = []; + } + if (message.ids && message.ids.length) { + object.ids = []; + for (var j = 0; j < message.ids.length; ++j) + if (typeof message.ids[j] === "number") + object.ids[j] = options.longs === String ? String(message.ids[j]) : message.ids[j]; + else + object.ids[j] = options.longs === String ? $util.Long.prototype.toString.call(message.ids[j]) : options.longs === Number ? new $util.LongBits(message.ids[j].low >>> 0, message.ids[j].high >>> 0).toNumber() : message.ids[j]; + } + if (message.displayNames && message.displayNames.length) { + object.displayNames = []; + for (var j = 0; j < message.displayNames.length; ++j) + object.displayNames[j] = message.displayNames[j]; + } + if (message.confidences && message.confidences.length) { + object.confidences = []; + for (var j = 0; j < message.confidences.length; ++j) + object.confidences[j] = options.json && !isFinite(message.confidences[j]) ? String(message.confidences[j]) : message.confidences[j]; + } + return object; + }; + + /** + * Converts this ClassificationPredictionResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.ClassificationPredictionResult + * @instance + * @returns {Object.} JSON object + */ + ClassificationPredictionResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ClassificationPredictionResult; + })(); + + schema.ImageObjectDetectionPredictionResult = (function() { + + /** + * Properties of an ImageObjectDetectionPredictionResult. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface IImageObjectDetectionPredictionResult + * @property {Array.|null} [ids] ImageObjectDetectionPredictionResult ids + * @property {Array.|null} [displayNames] ImageObjectDetectionPredictionResult displayNames + * @property {Array.|null} [confidences] ImageObjectDetectionPredictionResult confidences + * @property {Array.|null} [bboxes] ImageObjectDetectionPredictionResult bboxes + */ + + /** + * Constructs a new ImageObjectDetectionPredictionResult. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents an ImageObjectDetectionPredictionResult. + * @implements IImageObjectDetectionPredictionResult + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.IImageObjectDetectionPredictionResult=} [properties] Properties to set + */ + function ImageObjectDetectionPredictionResult(properties) { + this.ids = []; + this.displayNames = []; + this.confidences = []; + this.bboxes = []; + 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]]; + } + + /** + * ImageObjectDetectionPredictionResult ids. + * @member {Array.} ids + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionResult + * @instance + */ + ImageObjectDetectionPredictionResult.prototype.ids = $util.emptyArray; + + /** + * ImageObjectDetectionPredictionResult displayNames. + * @member {Array.} displayNames + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionResult + * @instance + */ + ImageObjectDetectionPredictionResult.prototype.displayNames = $util.emptyArray; + + /** + * ImageObjectDetectionPredictionResult confidences. + * @member {Array.} confidences + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionResult + * @instance + */ + ImageObjectDetectionPredictionResult.prototype.confidences = $util.emptyArray; + + /** + * ImageObjectDetectionPredictionResult bboxes. + * @member {Array.} bboxes + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionResult + * @instance + */ + ImageObjectDetectionPredictionResult.prototype.bboxes = $util.emptyArray; + + /** + * Creates a new ImageObjectDetectionPredictionResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IImageObjectDetectionPredictionResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionResult} ImageObjectDetectionPredictionResult instance + */ + ImageObjectDetectionPredictionResult.create = function create(properties) { + return new ImageObjectDetectionPredictionResult(properties); + }; + + /** + * Encodes the specified ImageObjectDetectionPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IImageObjectDetectionPredictionResult} message ImageObjectDetectionPredictionResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageObjectDetectionPredictionResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.ids != null && message.ids.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.ids.length; ++i) + writer.int64(message.ids[i]); + writer.ldelim(); + } + if (message.displayNames != null && message.displayNames.length) + for (var i = 0; i < message.displayNames.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayNames[i]); + if (message.confidences != null && message.confidences.length) { + writer.uint32(/* id 3, wireType 2 =*/26).fork(); + for (var i = 0; i < message.confidences.length; ++i) + writer.float(message.confidences[i]); + writer.ldelim(); + } + if (message.bboxes != null && message.bboxes.length) + for (var i = 0; i < message.bboxes.length; ++i) + $root.google.protobuf.ListValue.encode(message.bboxes[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ImageObjectDetectionPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IImageObjectDetectionPredictionResult} message ImageObjectDetectionPredictionResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageObjectDetectionPredictionResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ImageObjectDetectionPredictionResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionResult} ImageObjectDetectionPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageObjectDetectionPredictionResult.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.ids && message.ids.length)) + message.ids = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.ids.push(reader.int64()); + } else + message.ids.push(reader.int64()); + break; + case 2: + if (!(message.displayNames && message.displayNames.length)) + message.displayNames = []; + message.displayNames.push(reader.string()); + break; + case 3: + if (!(message.confidences && message.confidences.length)) + message.confidences = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.confidences.push(reader.float()); + } else + message.confidences.push(reader.float()); + break; + case 4: + if (!(message.bboxes && message.bboxes.length)) + message.bboxes = []; + message.bboxes.push($root.google.protobuf.ListValue.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ImageObjectDetectionPredictionResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionResult} ImageObjectDetectionPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageObjectDetectionPredictionResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ImageObjectDetectionPredictionResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ImageObjectDetectionPredictionResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.ids != null && message.hasOwnProperty("ids")) { + if (!Array.isArray(message.ids)) + return "ids: array expected"; + for (var i = 0; i < message.ids.length; ++i) + if (!$util.isInteger(message.ids[i]) && !(message.ids[i] && $util.isInteger(message.ids[i].low) && $util.isInteger(message.ids[i].high))) + return "ids: integer|Long[] expected"; + } + if (message.displayNames != null && message.hasOwnProperty("displayNames")) { + if (!Array.isArray(message.displayNames)) + return "displayNames: array expected"; + for (var i = 0; i < message.displayNames.length; ++i) + if (!$util.isString(message.displayNames[i])) + return "displayNames: string[] expected"; + } + if (message.confidences != null && message.hasOwnProperty("confidences")) { + if (!Array.isArray(message.confidences)) + return "confidences: array expected"; + for (var i = 0; i < message.confidences.length; ++i) + if (typeof message.confidences[i] !== "number") + return "confidences: number[] expected"; + } + if (message.bboxes != null && message.hasOwnProperty("bboxes")) { + if (!Array.isArray(message.bboxes)) + return "bboxes: array expected"; + for (var i = 0; i < message.bboxes.length; ++i) { + var error = $root.google.protobuf.ListValue.verify(message.bboxes[i]); + if (error) + return "bboxes." + error; + } + } + return null; + }; + + /** + * Creates an ImageObjectDetectionPredictionResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionResult} ImageObjectDetectionPredictionResult + */ + ImageObjectDetectionPredictionResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionResult) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionResult(); + if (object.ids) { + if (!Array.isArray(object.ids)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionResult.ids: array expected"); + message.ids = []; + for (var i = 0; i < object.ids.length; ++i) + if ($util.Long) + (message.ids[i] = $util.Long.fromValue(object.ids[i])).unsigned = false; + else if (typeof object.ids[i] === "string") + message.ids[i] = parseInt(object.ids[i], 10); + else if (typeof object.ids[i] === "number") + message.ids[i] = object.ids[i]; + else if (typeof object.ids[i] === "object") + message.ids[i] = new $util.LongBits(object.ids[i].low >>> 0, object.ids[i].high >>> 0).toNumber(); + } + if (object.displayNames) { + if (!Array.isArray(object.displayNames)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionResult.displayNames: array expected"); + message.displayNames = []; + for (var i = 0; i < object.displayNames.length; ++i) + message.displayNames[i] = String(object.displayNames[i]); + } + if (object.confidences) { + if (!Array.isArray(object.confidences)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionResult.confidences: array expected"); + message.confidences = []; + for (var i = 0; i < object.confidences.length; ++i) + message.confidences[i] = Number(object.confidences[i]); + } + if (object.bboxes) { + if (!Array.isArray(object.bboxes)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionResult.bboxes: array expected"); + message.bboxes = []; + for (var i = 0; i < object.bboxes.length; ++i) { + if (typeof object.bboxes[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionResult.bboxes: object expected"); + message.bboxes[i] = $root.google.protobuf.ListValue.fromObject(object.bboxes[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an ImageObjectDetectionPredictionResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionResult} message ImageObjectDetectionPredictionResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ImageObjectDetectionPredictionResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.ids = []; + object.displayNames = []; + object.confidences = []; + object.bboxes = []; + } + if (message.ids && message.ids.length) { + object.ids = []; + for (var j = 0; j < message.ids.length; ++j) + if (typeof message.ids[j] === "number") + object.ids[j] = options.longs === String ? String(message.ids[j]) : message.ids[j]; + else + object.ids[j] = options.longs === String ? $util.Long.prototype.toString.call(message.ids[j]) : options.longs === Number ? new $util.LongBits(message.ids[j].low >>> 0, message.ids[j].high >>> 0).toNumber() : message.ids[j]; + } + if (message.displayNames && message.displayNames.length) { + object.displayNames = []; + for (var j = 0; j < message.displayNames.length; ++j) + object.displayNames[j] = message.displayNames[j]; + } + if (message.confidences && message.confidences.length) { + object.confidences = []; + for (var j = 0; j < message.confidences.length; ++j) + object.confidences[j] = options.json && !isFinite(message.confidences[j]) ? String(message.confidences[j]) : message.confidences[j]; + } + if (message.bboxes && message.bboxes.length) { + object.bboxes = []; + for (var j = 0; j < message.bboxes.length; ++j) + object.bboxes[j] = $root.google.protobuf.ListValue.toObject(message.bboxes[j], options); + } + return object; + }; + + /** + * Converts this ImageObjectDetectionPredictionResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.ImageObjectDetectionPredictionResult + * @instance + * @returns {Object.} JSON object + */ + ImageObjectDetectionPredictionResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ImageObjectDetectionPredictionResult; + })(); + + schema.VideoClassificationPredictionResult = (function() { + + /** + * Properties of a VideoClassificationPredictionResult. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface IVideoClassificationPredictionResult + * @property {string|null} [id] VideoClassificationPredictionResult id + * @property {string|null} [displayName] VideoClassificationPredictionResult displayName + * @property {string|null} [type] VideoClassificationPredictionResult type + * @property {google.protobuf.IDuration|null} [timeSegmentStart] VideoClassificationPredictionResult timeSegmentStart + * @property {google.protobuf.IDuration|null} [timeSegmentEnd] VideoClassificationPredictionResult timeSegmentEnd + * @property {google.protobuf.IFloatValue|null} [confidence] VideoClassificationPredictionResult confidence + */ + + /** + * Constructs a new VideoClassificationPredictionResult. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents a VideoClassificationPredictionResult. + * @implements IVideoClassificationPredictionResult + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoClassificationPredictionResult=} [properties] Properties to set + */ + function VideoClassificationPredictionResult(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]]; + } + + /** + * VideoClassificationPredictionResult id. + * @member {string} id + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionResult + * @instance + */ + VideoClassificationPredictionResult.prototype.id = ""; + + /** + * VideoClassificationPredictionResult displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionResult + * @instance + */ + VideoClassificationPredictionResult.prototype.displayName = ""; + + /** + * VideoClassificationPredictionResult type. + * @member {string} type + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionResult + * @instance + */ + VideoClassificationPredictionResult.prototype.type = ""; + + /** + * VideoClassificationPredictionResult timeSegmentStart. + * @member {google.protobuf.IDuration|null|undefined} timeSegmentStart + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionResult + * @instance + */ + VideoClassificationPredictionResult.prototype.timeSegmentStart = null; + + /** + * VideoClassificationPredictionResult timeSegmentEnd. + * @member {google.protobuf.IDuration|null|undefined} timeSegmentEnd + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionResult + * @instance + */ + VideoClassificationPredictionResult.prototype.timeSegmentEnd = null; + + /** + * VideoClassificationPredictionResult confidence. + * @member {google.protobuf.IFloatValue|null|undefined} confidence + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionResult + * @instance + */ + VideoClassificationPredictionResult.prototype.confidence = null; + + /** + * Creates a new VideoClassificationPredictionResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoClassificationPredictionResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionResult} VideoClassificationPredictionResult instance + */ + VideoClassificationPredictionResult.create = function create(properties) { + return new VideoClassificationPredictionResult(properties); + }; + + /** + * Encodes the specified VideoClassificationPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoClassificationPredictionResult} message VideoClassificationPredictionResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoClassificationPredictionResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.type); + if (message.timeSegmentStart != null && Object.hasOwnProperty.call(message, "timeSegmentStart")) + $root.google.protobuf.Duration.encode(message.timeSegmentStart, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.timeSegmentEnd != null && Object.hasOwnProperty.call(message, "timeSegmentEnd")) + $root.google.protobuf.Duration.encode(message.timeSegmentEnd, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) + $root.google.protobuf.FloatValue.encode(message.confidence, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified VideoClassificationPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoClassificationPredictionResult} message VideoClassificationPredictionResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoClassificationPredictionResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VideoClassificationPredictionResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionResult} VideoClassificationPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoClassificationPredictionResult.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + message.displayName = reader.string(); + break; + case 3: + message.type = reader.string(); + break; + case 4: + message.timeSegmentStart = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 5: + message.timeSegmentEnd = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 6: + message.confidence = $root.google.protobuf.FloatValue.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VideoClassificationPredictionResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionResult} VideoClassificationPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoClassificationPredictionResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VideoClassificationPredictionResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VideoClassificationPredictionResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.timeSegmentStart != null && message.hasOwnProperty("timeSegmentStart")) { + var error = $root.google.protobuf.Duration.verify(message.timeSegmentStart); + if (error) + return "timeSegmentStart." + error; + } + if (message.timeSegmentEnd != null && message.hasOwnProperty("timeSegmentEnd")) { + var error = $root.google.protobuf.Duration.verify(message.timeSegmentEnd); + if (error) + return "timeSegmentEnd." + error; + } + if (message.confidence != null && message.hasOwnProperty("confidence")) { + var error = $root.google.protobuf.FloatValue.verify(message.confidence); + if (error) + return "confidence." + error; + } + return null; + }; + + /** + * Creates a VideoClassificationPredictionResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionResult} VideoClassificationPredictionResult + */ + VideoClassificationPredictionResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionResult) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionResult(); + if (object.id != null) + message.id = String(object.id); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.type != null) + message.type = String(object.type); + if (object.timeSegmentStart != null) { + if (typeof object.timeSegmentStart !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionResult.timeSegmentStart: object expected"); + message.timeSegmentStart = $root.google.protobuf.Duration.fromObject(object.timeSegmentStart); + } + if (object.timeSegmentEnd != null) { + if (typeof object.timeSegmentEnd !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionResult.timeSegmentEnd: object expected"); + message.timeSegmentEnd = $root.google.protobuf.Duration.fromObject(object.timeSegmentEnd); + } + if (object.confidence != null) { + if (typeof object.confidence !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionResult.confidence: object expected"); + message.confidence = $root.google.protobuf.FloatValue.fromObject(object.confidence); + } + return message; + }; + + /** + * Creates a plain object from a VideoClassificationPredictionResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionResult} message VideoClassificationPredictionResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VideoClassificationPredictionResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.id = ""; + object.displayName = ""; + object.type = ""; + object.timeSegmentStart = null; + object.timeSegmentEnd = null; + object.confidence = null; + } + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.timeSegmentStart != null && message.hasOwnProperty("timeSegmentStart")) + object.timeSegmentStart = $root.google.protobuf.Duration.toObject(message.timeSegmentStart, options); + if (message.timeSegmentEnd != null && message.hasOwnProperty("timeSegmentEnd")) + object.timeSegmentEnd = $root.google.protobuf.Duration.toObject(message.timeSegmentEnd, options); + if (message.confidence != null && message.hasOwnProperty("confidence")) + object.confidence = $root.google.protobuf.FloatValue.toObject(message.confidence, options); + return object; + }; + + /** + * Converts this VideoClassificationPredictionResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoClassificationPredictionResult + * @instance + * @returns {Object.} JSON object + */ + VideoClassificationPredictionResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return VideoClassificationPredictionResult; + })(); + + schema.VideoObjectTrackingPredictionResult = (function() { + + /** + * Properties of a VideoObjectTrackingPredictionResult. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface IVideoObjectTrackingPredictionResult + * @property {string|null} [id] VideoObjectTrackingPredictionResult id + * @property {string|null} [displayName] VideoObjectTrackingPredictionResult displayName + * @property {google.protobuf.IDuration|null} [timeSegmentStart] VideoObjectTrackingPredictionResult timeSegmentStart + * @property {google.protobuf.IDuration|null} [timeSegmentEnd] VideoObjectTrackingPredictionResult timeSegmentEnd + * @property {google.protobuf.IFloatValue|null} [confidence] VideoObjectTrackingPredictionResult confidence + * @property {Array.|null} [frames] VideoObjectTrackingPredictionResult frames + */ + + /** + * Constructs a new VideoObjectTrackingPredictionResult. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents a VideoObjectTrackingPredictionResult. + * @implements IVideoObjectTrackingPredictionResult + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoObjectTrackingPredictionResult=} [properties] Properties to set + */ + function VideoObjectTrackingPredictionResult(properties) { + this.frames = []; + 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]]; + } + + /** + * VideoObjectTrackingPredictionResult id. + * @member {string} id + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult + * @instance + */ + VideoObjectTrackingPredictionResult.prototype.id = ""; + + /** + * VideoObjectTrackingPredictionResult displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult + * @instance + */ + VideoObjectTrackingPredictionResult.prototype.displayName = ""; + + /** + * VideoObjectTrackingPredictionResult timeSegmentStart. + * @member {google.protobuf.IDuration|null|undefined} timeSegmentStart + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult + * @instance + */ + VideoObjectTrackingPredictionResult.prototype.timeSegmentStart = null; + + /** + * VideoObjectTrackingPredictionResult timeSegmentEnd. + * @member {google.protobuf.IDuration|null|undefined} timeSegmentEnd + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult + * @instance + */ + VideoObjectTrackingPredictionResult.prototype.timeSegmentEnd = null; + + /** + * VideoObjectTrackingPredictionResult confidence. + * @member {google.protobuf.IFloatValue|null|undefined} confidence + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult + * @instance + */ + VideoObjectTrackingPredictionResult.prototype.confidence = null; + + /** + * VideoObjectTrackingPredictionResult frames. + * @member {Array.} frames + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult + * @instance + */ + VideoObjectTrackingPredictionResult.prototype.frames = $util.emptyArray; + + /** + * Creates a new VideoObjectTrackingPredictionResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoObjectTrackingPredictionResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult} VideoObjectTrackingPredictionResult instance + */ + VideoObjectTrackingPredictionResult.create = function create(properties) { + return new VideoObjectTrackingPredictionResult(properties); + }; + + /** + * Encodes the specified VideoObjectTrackingPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoObjectTrackingPredictionResult} message VideoObjectTrackingPredictionResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoObjectTrackingPredictionResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.timeSegmentStart != null && Object.hasOwnProperty.call(message, "timeSegmentStart")) + $root.google.protobuf.Duration.encode(message.timeSegmentStart, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.timeSegmentEnd != null && Object.hasOwnProperty.call(message, "timeSegmentEnd")) + $root.google.protobuf.Duration.encode(message.timeSegmentEnd, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) + $root.google.protobuf.FloatValue.encode(message.confidence, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.frames != null && message.frames.length) + for (var i = 0; i < message.frames.length; ++i) + $root.google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame.encode(message.frames[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified VideoObjectTrackingPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVideoObjectTrackingPredictionResult} message VideoObjectTrackingPredictionResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoObjectTrackingPredictionResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VideoObjectTrackingPredictionResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult} VideoObjectTrackingPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoObjectTrackingPredictionResult.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + message.displayName = reader.string(); + break; + case 3: + message.timeSegmentStart = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 4: + message.timeSegmentEnd = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 5: + message.confidence = $root.google.protobuf.FloatValue.decode(reader, reader.uint32()); + break; + case 6: + if (!(message.frames && message.frames.length)) + message.frames = []; + message.frames.push($root.google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VideoObjectTrackingPredictionResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult} VideoObjectTrackingPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoObjectTrackingPredictionResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VideoObjectTrackingPredictionResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VideoObjectTrackingPredictionResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.timeSegmentStart != null && message.hasOwnProperty("timeSegmentStart")) { + var error = $root.google.protobuf.Duration.verify(message.timeSegmentStart); + if (error) + return "timeSegmentStart." + error; + } + if (message.timeSegmentEnd != null && message.hasOwnProperty("timeSegmentEnd")) { + var error = $root.google.protobuf.Duration.verify(message.timeSegmentEnd); + if (error) + return "timeSegmentEnd." + error; + } + if (message.confidence != null && message.hasOwnProperty("confidence")) { + var error = $root.google.protobuf.FloatValue.verify(message.confidence); + if (error) + return "confidence." + error; + } + if (message.frames != null && message.hasOwnProperty("frames")) { + if (!Array.isArray(message.frames)) + return "frames: array expected"; + for (var i = 0; i < message.frames.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame.verify(message.frames[i]); + if (error) + return "frames." + error; + } + } + return null; + }; + + /** + * Creates a VideoObjectTrackingPredictionResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult} VideoObjectTrackingPredictionResult + */ + VideoObjectTrackingPredictionResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult(); + if (object.id != null) + message.id = String(object.id); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.timeSegmentStart != null) { + if (typeof object.timeSegmentStart !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.timeSegmentStart: object expected"); + message.timeSegmentStart = $root.google.protobuf.Duration.fromObject(object.timeSegmentStart); + } + if (object.timeSegmentEnd != null) { + if (typeof object.timeSegmentEnd !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.timeSegmentEnd: object expected"); + message.timeSegmentEnd = $root.google.protobuf.Duration.fromObject(object.timeSegmentEnd); + } + if (object.confidence != null) { + if (typeof object.confidence !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.confidence: object expected"); + message.confidence = $root.google.protobuf.FloatValue.fromObject(object.confidence); + } + if (object.frames) { + if (!Array.isArray(object.frames)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.frames: array expected"); + message.frames = []; + for (var i = 0; i < object.frames.length; ++i) { + if (typeof object.frames[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.frames: object expected"); + message.frames[i] = $root.google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame.fromObject(object.frames[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a VideoObjectTrackingPredictionResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult} message VideoObjectTrackingPredictionResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VideoObjectTrackingPredictionResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.frames = []; + if (options.defaults) { + object.id = ""; + object.displayName = ""; + object.timeSegmentStart = null; + object.timeSegmentEnd = null; + object.confidence = null; + } + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.timeSegmentStart != null && message.hasOwnProperty("timeSegmentStart")) + object.timeSegmentStart = $root.google.protobuf.Duration.toObject(message.timeSegmentStart, options); + if (message.timeSegmentEnd != null && message.hasOwnProperty("timeSegmentEnd")) + object.timeSegmentEnd = $root.google.protobuf.Duration.toObject(message.timeSegmentEnd, options); + if (message.confidence != null && message.hasOwnProperty("confidence")) + object.confidence = $root.google.protobuf.FloatValue.toObject(message.confidence, options); + if (message.frames && message.frames.length) { + object.frames = []; + for (var j = 0; j < message.frames.length; ++j) + object.frames[j] = $root.google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame.toObject(message.frames[j], options); + } + return object; + }; + + /** + * Converts this VideoObjectTrackingPredictionResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult + * @instance + * @returns {Object.} JSON object + */ + VideoObjectTrackingPredictionResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + VideoObjectTrackingPredictionResult.Frame = (function() { + + /** + * Properties of a Frame. + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult + * @interface IFrame + * @property {google.protobuf.IDuration|null} [timeOffset] Frame timeOffset + * @property {google.protobuf.IFloatValue|null} [xMin] Frame xMin + * @property {google.protobuf.IFloatValue|null} [xMax] Frame xMax + * @property {google.protobuf.IFloatValue|null} [yMin] Frame yMin + * @property {google.protobuf.IFloatValue|null} [yMax] Frame yMax + */ + + /** + * Constructs a new Frame. + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult + * @classdesc Represents a Frame. + * @implements IFrame + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.IFrame=} [properties] Properties to set + */ + function Frame(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]]; + } + + /** + * Frame timeOffset. + * @member {google.protobuf.IDuration|null|undefined} timeOffset + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame + * @instance + */ + Frame.prototype.timeOffset = null; + + /** + * Frame xMin. + * @member {google.protobuf.IFloatValue|null|undefined} xMin + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame + * @instance + */ + Frame.prototype.xMin = null; + + /** + * Frame xMax. + * @member {google.protobuf.IFloatValue|null|undefined} xMax + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame + * @instance + */ + Frame.prototype.xMax = null; + + /** + * Frame yMin. + * @member {google.protobuf.IFloatValue|null|undefined} yMin + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame + * @instance + */ + Frame.prototype.yMin = null; + + /** + * Frame yMax. + * @member {google.protobuf.IFloatValue|null|undefined} yMax + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame + * @instance + */ + Frame.prototype.yMax = null; + + /** + * Creates a new Frame instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.IFrame=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame} Frame instance + */ + Frame.create = function create(properties) { + return new Frame(properties); + }; + + /** + * Encodes the specified Frame message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.IFrame} message Frame message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Frame.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.timeOffset != null && Object.hasOwnProperty.call(message, "timeOffset")) + $root.google.protobuf.Duration.encode(message.timeOffset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.xMin != null && Object.hasOwnProperty.call(message, "xMin")) + $root.google.protobuf.FloatValue.encode(message.xMin, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.xMax != null && Object.hasOwnProperty.call(message, "xMax")) + $root.google.protobuf.FloatValue.encode(message.xMax, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.yMin != null && Object.hasOwnProperty.call(message, "yMin")) + $root.google.protobuf.FloatValue.encode(message.yMin, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.yMax != null && Object.hasOwnProperty.call(message, "yMax")) + $root.google.protobuf.FloatValue.encode(message.yMax, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Frame message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.IFrame} message Frame message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Frame.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Frame message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame} Frame + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Frame.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.timeOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 2: + message.xMin = $root.google.protobuf.FloatValue.decode(reader, reader.uint32()); + break; + case 3: + message.xMax = $root.google.protobuf.FloatValue.decode(reader, reader.uint32()); + break; + case 4: + message.yMin = $root.google.protobuf.FloatValue.decode(reader, reader.uint32()); + break; + case 5: + message.yMax = $root.google.protobuf.FloatValue.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Frame message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame} Frame + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Frame.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Frame message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Frame.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.timeOffset != null && message.hasOwnProperty("timeOffset")) { + var error = $root.google.protobuf.Duration.verify(message.timeOffset); + if (error) + return "timeOffset." + error; + } + if (message.xMin != null && message.hasOwnProperty("xMin")) { + var error = $root.google.protobuf.FloatValue.verify(message.xMin); + if (error) + return "xMin." + error; + } + if (message.xMax != null && message.hasOwnProperty("xMax")) { + var error = $root.google.protobuf.FloatValue.verify(message.xMax); + if (error) + return "xMax." + error; + } + if (message.yMin != null && message.hasOwnProperty("yMin")) { + var error = $root.google.protobuf.FloatValue.verify(message.yMin); + if (error) + return "yMin." + error; + } + if (message.yMax != null && message.hasOwnProperty("yMax")) { + var error = $root.google.protobuf.FloatValue.verify(message.yMax); + if (error) + return "yMax." + error; + } + return null; + }; + + /** + * Creates a Frame message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame} Frame + */ + Frame.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame(); + if (object.timeOffset != null) { + if (typeof object.timeOffset !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame.timeOffset: object expected"); + message.timeOffset = $root.google.protobuf.Duration.fromObject(object.timeOffset); + } + if (object.xMin != null) { + if (typeof object.xMin !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame.xMin: object expected"); + message.xMin = $root.google.protobuf.FloatValue.fromObject(object.xMin); + } + if (object.xMax != null) { + if (typeof object.xMax !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame.xMax: object expected"); + message.xMax = $root.google.protobuf.FloatValue.fromObject(object.xMax); + } + if (object.yMin != null) { + if (typeof object.yMin !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame.yMin: object expected"); + message.yMin = $root.google.protobuf.FloatValue.fromObject(object.yMin); + } + if (object.yMax != null) { + if (typeof object.yMax !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame.yMax: object expected"); + message.yMax = $root.google.protobuf.FloatValue.fromObject(object.yMax); + } + return message; + }; + + /** + * Creates a plain object from a Frame message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame} message Frame + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Frame.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.timeOffset = null; + object.xMin = null; + object.xMax = null; + object.yMin = null; + object.yMax = null; + } + if (message.timeOffset != null && message.hasOwnProperty("timeOffset")) + object.timeOffset = $root.google.protobuf.Duration.toObject(message.timeOffset, options); + if (message.xMin != null && message.hasOwnProperty("xMin")) + object.xMin = $root.google.protobuf.FloatValue.toObject(message.xMin, options); + if (message.xMax != null && message.hasOwnProperty("xMax")) + object.xMax = $root.google.protobuf.FloatValue.toObject(message.xMax, options); + if (message.yMin != null && message.hasOwnProperty("yMin")) + object.yMin = $root.google.protobuf.FloatValue.toObject(message.yMin, options); + if (message.yMax != null && message.hasOwnProperty("yMax")) + object.yMax = $root.google.protobuf.FloatValue.toObject(message.yMax, options); + return object; + }; + + /** + * Converts this Frame to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.VideoObjectTrackingPredictionResult.Frame + * @instance + * @returns {Object.} JSON object + */ + Frame.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Frame; + })(); + + return VideoObjectTrackingPredictionResult; + })(); + + schema.TextExtractionPredictionResult = (function() { + + /** + * Properties of a TextExtractionPredictionResult. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface ITextExtractionPredictionResult + * @property {Array.|null} [ids] TextExtractionPredictionResult ids + * @property {Array.|null} [displayNames] TextExtractionPredictionResult displayNames + * @property {Array.|null} [textSegmentStartOffsets] TextExtractionPredictionResult textSegmentStartOffsets + * @property {Array.|null} [textSegmentEndOffsets] TextExtractionPredictionResult textSegmentEndOffsets + * @property {Array.|null} [confidences] TextExtractionPredictionResult confidences + */ + + /** + * Constructs a new TextExtractionPredictionResult. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents a TextExtractionPredictionResult. + * @implements ITextExtractionPredictionResult + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.ITextExtractionPredictionResult=} [properties] Properties to set + */ + function TextExtractionPredictionResult(properties) { + this.ids = []; + this.displayNames = []; + this.textSegmentStartOffsets = []; + this.textSegmentEndOffsets = []; + this.confidences = []; + 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]]; + } + + /** + * TextExtractionPredictionResult ids. + * @member {Array.} ids + * @memberof google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionResult + * @instance + */ + TextExtractionPredictionResult.prototype.ids = $util.emptyArray; + + /** + * TextExtractionPredictionResult displayNames. + * @member {Array.} displayNames + * @memberof google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionResult + * @instance + */ + TextExtractionPredictionResult.prototype.displayNames = $util.emptyArray; + + /** + * TextExtractionPredictionResult textSegmentStartOffsets. + * @member {Array.} textSegmentStartOffsets + * @memberof google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionResult + * @instance + */ + TextExtractionPredictionResult.prototype.textSegmentStartOffsets = $util.emptyArray; + + /** + * TextExtractionPredictionResult textSegmentEndOffsets. + * @member {Array.} textSegmentEndOffsets + * @memberof google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionResult + * @instance + */ + TextExtractionPredictionResult.prototype.textSegmentEndOffsets = $util.emptyArray; + + /** + * TextExtractionPredictionResult confidences. + * @member {Array.} confidences + * @memberof google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionResult + * @instance + */ + TextExtractionPredictionResult.prototype.confidences = $util.emptyArray; + + /** + * Creates a new TextExtractionPredictionResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITextExtractionPredictionResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionResult} TextExtractionPredictionResult instance + */ + TextExtractionPredictionResult.create = function create(properties) { + return new TextExtractionPredictionResult(properties); + }; + + /** + * Encodes the specified TextExtractionPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITextExtractionPredictionResult} message TextExtractionPredictionResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TextExtractionPredictionResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.ids != null && message.ids.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.ids.length; ++i) + writer.int64(message.ids[i]); + writer.ldelim(); + } + if (message.displayNames != null && message.displayNames.length) + for (var i = 0; i < message.displayNames.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayNames[i]); + if (message.textSegmentStartOffsets != null && message.textSegmentStartOffsets.length) { + writer.uint32(/* id 3, wireType 2 =*/26).fork(); + for (var i = 0; i < message.textSegmentStartOffsets.length; ++i) + writer.int64(message.textSegmentStartOffsets[i]); + writer.ldelim(); + } + if (message.textSegmentEndOffsets != null && message.textSegmentEndOffsets.length) { + writer.uint32(/* id 4, wireType 2 =*/34).fork(); + for (var i = 0; i < message.textSegmentEndOffsets.length; ++i) + writer.int64(message.textSegmentEndOffsets[i]); + writer.ldelim(); + } + if (message.confidences != null && message.confidences.length) { + writer.uint32(/* id 5, wireType 2 =*/42).fork(); + for (var i = 0; i < message.confidences.length; ++i) + writer.float(message.confidences[i]); + writer.ldelim(); + } + return writer; + }; + + /** + * Encodes the specified TextExtractionPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITextExtractionPredictionResult} message TextExtractionPredictionResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TextExtractionPredictionResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TextExtractionPredictionResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionResult} TextExtractionPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TextExtractionPredictionResult.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.ids && message.ids.length)) + message.ids = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.ids.push(reader.int64()); + } else + message.ids.push(reader.int64()); + break; + case 2: + if (!(message.displayNames && message.displayNames.length)) + message.displayNames = []; + message.displayNames.push(reader.string()); + break; + case 3: + if (!(message.textSegmentStartOffsets && message.textSegmentStartOffsets.length)) + message.textSegmentStartOffsets = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.textSegmentStartOffsets.push(reader.int64()); + } else + message.textSegmentStartOffsets.push(reader.int64()); + break; + case 4: + if (!(message.textSegmentEndOffsets && message.textSegmentEndOffsets.length)) + message.textSegmentEndOffsets = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.textSegmentEndOffsets.push(reader.int64()); + } else + message.textSegmentEndOffsets.push(reader.int64()); + break; + case 5: + if (!(message.confidences && message.confidences.length)) + message.confidences = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.confidences.push(reader.float()); + } else + message.confidences.push(reader.float()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TextExtractionPredictionResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionResult} TextExtractionPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TextExtractionPredictionResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TextExtractionPredictionResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TextExtractionPredictionResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.ids != null && message.hasOwnProperty("ids")) { + if (!Array.isArray(message.ids)) + return "ids: array expected"; + for (var i = 0; i < message.ids.length; ++i) + if (!$util.isInteger(message.ids[i]) && !(message.ids[i] && $util.isInteger(message.ids[i].low) && $util.isInteger(message.ids[i].high))) + return "ids: integer|Long[] expected"; + } + if (message.displayNames != null && message.hasOwnProperty("displayNames")) { + if (!Array.isArray(message.displayNames)) + return "displayNames: array expected"; + for (var i = 0; i < message.displayNames.length; ++i) + if (!$util.isString(message.displayNames[i])) + return "displayNames: string[] expected"; + } + if (message.textSegmentStartOffsets != null && message.hasOwnProperty("textSegmentStartOffsets")) { + if (!Array.isArray(message.textSegmentStartOffsets)) + return "textSegmentStartOffsets: array expected"; + for (var i = 0; i < message.textSegmentStartOffsets.length; ++i) + if (!$util.isInteger(message.textSegmentStartOffsets[i]) && !(message.textSegmentStartOffsets[i] && $util.isInteger(message.textSegmentStartOffsets[i].low) && $util.isInteger(message.textSegmentStartOffsets[i].high))) + return "textSegmentStartOffsets: integer|Long[] expected"; + } + if (message.textSegmentEndOffsets != null && message.hasOwnProperty("textSegmentEndOffsets")) { + if (!Array.isArray(message.textSegmentEndOffsets)) + return "textSegmentEndOffsets: array expected"; + for (var i = 0; i < message.textSegmentEndOffsets.length; ++i) + if (!$util.isInteger(message.textSegmentEndOffsets[i]) && !(message.textSegmentEndOffsets[i] && $util.isInteger(message.textSegmentEndOffsets[i].low) && $util.isInteger(message.textSegmentEndOffsets[i].high))) + return "textSegmentEndOffsets: integer|Long[] expected"; + } + if (message.confidences != null && message.hasOwnProperty("confidences")) { + if (!Array.isArray(message.confidences)) + return "confidences: array expected"; + for (var i = 0; i < message.confidences.length; ++i) + if (typeof message.confidences[i] !== "number") + return "confidences: number[] expected"; + } + return null; + }; + + /** + * Creates a TextExtractionPredictionResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionResult} TextExtractionPredictionResult + */ + TextExtractionPredictionResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionResult) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionResult(); + if (object.ids) { + if (!Array.isArray(object.ids)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionResult.ids: array expected"); + message.ids = []; + for (var i = 0; i < object.ids.length; ++i) + if ($util.Long) + (message.ids[i] = $util.Long.fromValue(object.ids[i])).unsigned = false; + else if (typeof object.ids[i] === "string") + message.ids[i] = parseInt(object.ids[i], 10); + else if (typeof object.ids[i] === "number") + message.ids[i] = object.ids[i]; + else if (typeof object.ids[i] === "object") + message.ids[i] = new $util.LongBits(object.ids[i].low >>> 0, object.ids[i].high >>> 0).toNumber(); + } + if (object.displayNames) { + if (!Array.isArray(object.displayNames)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionResult.displayNames: array expected"); + message.displayNames = []; + for (var i = 0; i < object.displayNames.length; ++i) + message.displayNames[i] = String(object.displayNames[i]); + } + if (object.textSegmentStartOffsets) { + if (!Array.isArray(object.textSegmentStartOffsets)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionResult.textSegmentStartOffsets: array expected"); + message.textSegmentStartOffsets = []; + for (var i = 0; i < object.textSegmentStartOffsets.length; ++i) + if ($util.Long) + (message.textSegmentStartOffsets[i] = $util.Long.fromValue(object.textSegmentStartOffsets[i])).unsigned = false; + else if (typeof object.textSegmentStartOffsets[i] === "string") + message.textSegmentStartOffsets[i] = parseInt(object.textSegmentStartOffsets[i], 10); + else if (typeof object.textSegmentStartOffsets[i] === "number") + message.textSegmentStartOffsets[i] = object.textSegmentStartOffsets[i]; + else if (typeof object.textSegmentStartOffsets[i] === "object") + message.textSegmentStartOffsets[i] = new $util.LongBits(object.textSegmentStartOffsets[i].low >>> 0, object.textSegmentStartOffsets[i].high >>> 0).toNumber(); + } + if (object.textSegmentEndOffsets) { + if (!Array.isArray(object.textSegmentEndOffsets)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionResult.textSegmentEndOffsets: array expected"); + message.textSegmentEndOffsets = []; + for (var i = 0; i < object.textSegmentEndOffsets.length; ++i) + if ($util.Long) + (message.textSegmentEndOffsets[i] = $util.Long.fromValue(object.textSegmentEndOffsets[i])).unsigned = false; + else if (typeof object.textSegmentEndOffsets[i] === "string") + message.textSegmentEndOffsets[i] = parseInt(object.textSegmentEndOffsets[i], 10); + else if (typeof object.textSegmentEndOffsets[i] === "number") + message.textSegmentEndOffsets[i] = object.textSegmentEndOffsets[i]; + else if (typeof object.textSegmentEndOffsets[i] === "object") + message.textSegmentEndOffsets[i] = new $util.LongBits(object.textSegmentEndOffsets[i].low >>> 0, object.textSegmentEndOffsets[i].high >>> 0).toNumber(); + } + if (object.confidences) { + if (!Array.isArray(object.confidences)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionResult.confidences: array expected"); + message.confidences = []; + for (var i = 0; i < object.confidences.length; ++i) + message.confidences[i] = Number(object.confidences[i]); + } + return message; + }; + + /** + * Creates a plain object from a TextExtractionPredictionResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionResult} message TextExtractionPredictionResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TextExtractionPredictionResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.ids = []; + object.displayNames = []; + object.textSegmentStartOffsets = []; + object.textSegmentEndOffsets = []; + object.confidences = []; + } + if (message.ids && message.ids.length) { + object.ids = []; + for (var j = 0; j < message.ids.length; ++j) + if (typeof message.ids[j] === "number") + object.ids[j] = options.longs === String ? String(message.ids[j]) : message.ids[j]; + else + object.ids[j] = options.longs === String ? $util.Long.prototype.toString.call(message.ids[j]) : options.longs === Number ? new $util.LongBits(message.ids[j].low >>> 0, message.ids[j].high >>> 0).toNumber() : message.ids[j]; + } + if (message.displayNames && message.displayNames.length) { + object.displayNames = []; + for (var j = 0; j < message.displayNames.length; ++j) + object.displayNames[j] = message.displayNames[j]; + } + if (message.textSegmentStartOffsets && message.textSegmentStartOffsets.length) { + object.textSegmentStartOffsets = []; + for (var j = 0; j < message.textSegmentStartOffsets.length; ++j) + if (typeof message.textSegmentStartOffsets[j] === "number") + object.textSegmentStartOffsets[j] = options.longs === String ? String(message.textSegmentStartOffsets[j]) : message.textSegmentStartOffsets[j]; + else + object.textSegmentStartOffsets[j] = options.longs === String ? $util.Long.prototype.toString.call(message.textSegmentStartOffsets[j]) : options.longs === Number ? new $util.LongBits(message.textSegmentStartOffsets[j].low >>> 0, message.textSegmentStartOffsets[j].high >>> 0).toNumber() : message.textSegmentStartOffsets[j]; + } + if (message.textSegmentEndOffsets && message.textSegmentEndOffsets.length) { + object.textSegmentEndOffsets = []; + for (var j = 0; j < message.textSegmentEndOffsets.length; ++j) + if (typeof message.textSegmentEndOffsets[j] === "number") + object.textSegmentEndOffsets[j] = options.longs === String ? String(message.textSegmentEndOffsets[j]) : message.textSegmentEndOffsets[j]; + else + object.textSegmentEndOffsets[j] = options.longs === String ? $util.Long.prototype.toString.call(message.textSegmentEndOffsets[j]) : options.longs === Number ? new $util.LongBits(message.textSegmentEndOffsets[j].low >>> 0, message.textSegmentEndOffsets[j].high >>> 0).toNumber() : message.textSegmentEndOffsets[j]; + } + if (message.confidences && message.confidences.length) { + object.confidences = []; + for (var j = 0; j < message.confidences.length; ++j) + object.confidences[j] = options.json && !isFinite(message.confidences[j]) ? String(message.confidences[j]) : message.confidences[j]; + } + return object; + }; + + /** + * Converts this TextExtractionPredictionResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.TextExtractionPredictionResult + * @instance + * @returns {Object.} JSON object + */ + TextExtractionPredictionResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return TextExtractionPredictionResult; + })(); + + schema.predict = (function() { + + /** + * Namespace predict. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @namespace + */ + var predict = {}; + + predict.instance = (function() { + + /** + * Namespace instance. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict + * @namespace + */ + var instance = {}; + + instance.ImageClassificationPredictionInstance = (function() { + + /** + * Properties of an ImageClassificationPredictionInstance. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance + * @interface IImageClassificationPredictionInstance + * @property {string|null} [content] ImageClassificationPredictionInstance content + * @property {string|null} [mimeType] ImageClassificationPredictionInstance mimeType + */ + + /** + * Constructs a new ImageClassificationPredictionInstance. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance + * @classdesc Represents an ImageClassificationPredictionInstance. + * @implements IImageClassificationPredictionInstance + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.IImageClassificationPredictionInstance=} [properties] Properties to set + */ + function ImageClassificationPredictionInstance(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]]; + } + + /** + * ImageClassificationPredictionInstance content. + * @member {string} content + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageClassificationPredictionInstance + * @instance + */ + ImageClassificationPredictionInstance.prototype.content = ""; + + /** + * ImageClassificationPredictionInstance mimeType. + * @member {string} mimeType + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageClassificationPredictionInstance + * @instance + */ + ImageClassificationPredictionInstance.prototype.mimeType = ""; + + /** + * Creates a new ImageClassificationPredictionInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageClassificationPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.IImageClassificationPredictionInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageClassificationPredictionInstance} ImageClassificationPredictionInstance instance + */ + ImageClassificationPredictionInstance.create = function create(properties) { + return new ImageClassificationPredictionInstance(properties); + }; + + /** + * Encodes the specified ImageClassificationPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageClassificationPredictionInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageClassificationPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.IImageClassificationPredictionInstance} message ImageClassificationPredictionInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageClassificationPredictionInstance.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); + return writer; + }; + + /** + * Encodes the specified ImageClassificationPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageClassificationPredictionInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageClassificationPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.IImageClassificationPredictionInstance} message ImageClassificationPredictionInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageClassificationPredictionInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ImageClassificationPredictionInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageClassificationPredictionInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageClassificationPredictionInstance} ImageClassificationPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageClassificationPredictionInstance.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageClassificationPredictionInstance(); + 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; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ImageClassificationPredictionInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageClassificationPredictionInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageClassificationPredictionInstance} ImageClassificationPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageClassificationPredictionInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ImageClassificationPredictionInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageClassificationPredictionInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ImageClassificationPredictionInstance.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"; + return null; + }; + + /** + * Creates an ImageClassificationPredictionInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageClassificationPredictionInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageClassificationPredictionInstance} ImageClassificationPredictionInstance + */ + ImageClassificationPredictionInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageClassificationPredictionInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageClassificationPredictionInstance(); + if (object.content != null) + message.content = String(object.content); + if (object.mimeType != null) + message.mimeType = String(object.mimeType); + return message; + }; + + /** + * Creates a plain object from an ImageClassificationPredictionInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageClassificationPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageClassificationPredictionInstance} message ImageClassificationPredictionInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ImageClassificationPredictionInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.content = ""; + object.mimeType = ""; + } + if (message.content != null && message.hasOwnProperty("content")) + object.content = message.content; + if (message.mimeType != null && message.hasOwnProperty("mimeType")) + object.mimeType = message.mimeType; + return object; + }; + + /** + * Converts this ImageClassificationPredictionInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageClassificationPredictionInstance + * @instance + * @returns {Object.} JSON object + */ + ImageClassificationPredictionInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ImageClassificationPredictionInstance; + })(); + + instance.ImageObjectDetectionPredictionInstance = (function() { + + /** + * Properties of an ImageObjectDetectionPredictionInstance. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance + * @interface IImageObjectDetectionPredictionInstance + * @property {string|null} [content] ImageObjectDetectionPredictionInstance content + * @property {string|null} [mimeType] ImageObjectDetectionPredictionInstance mimeType + */ + + /** + * Constructs a new ImageObjectDetectionPredictionInstance. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance + * @classdesc Represents an ImageObjectDetectionPredictionInstance. + * @implements IImageObjectDetectionPredictionInstance + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.IImageObjectDetectionPredictionInstance=} [properties] Properties to set + */ + function ImageObjectDetectionPredictionInstance(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]]; + } + + /** + * ImageObjectDetectionPredictionInstance content. + * @member {string} content + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageObjectDetectionPredictionInstance + * @instance + */ + ImageObjectDetectionPredictionInstance.prototype.content = ""; + + /** + * ImageObjectDetectionPredictionInstance mimeType. + * @member {string} mimeType + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageObjectDetectionPredictionInstance + * @instance + */ + ImageObjectDetectionPredictionInstance.prototype.mimeType = ""; + + /** + * Creates a new ImageObjectDetectionPredictionInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageObjectDetectionPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.IImageObjectDetectionPredictionInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageObjectDetectionPredictionInstance} ImageObjectDetectionPredictionInstance instance + */ + ImageObjectDetectionPredictionInstance.create = function create(properties) { + return new ImageObjectDetectionPredictionInstance(properties); + }; + + /** + * Encodes the specified ImageObjectDetectionPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageObjectDetectionPredictionInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageObjectDetectionPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.IImageObjectDetectionPredictionInstance} message ImageObjectDetectionPredictionInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageObjectDetectionPredictionInstance.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); + return writer; + }; + + /** + * Encodes the specified ImageObjectDetectionPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageObjectDetectionPredictionInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageObjectDetectionPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.IImageObjectDetectionPredictionInstance} message ImageObjectDetectionPredictionInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageObjectDetectionPredictionInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ImageObjectDetectionPredictionInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageObjectDetectionPredictionInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageObjectDetectionPredictionInstance} ImageObjectDetectionPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageObjectDetectionPredictionInstance.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageObjectDetectionPredictionInstance(); + 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; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ImageObjectDetectionPredictionInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageObjectDetectionPredictionInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageObjectDetectionPredictionInstance} ImageObjectDetectionPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageObjectDetectionPredictionInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ImageObjectDetectionPredictionInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageObjectDetectionPredictionInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ImageObjectDetectionPredictionInstance.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"; + return null; + }; + + /** + * Creates an ImageObjectDetectionPredictionInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageObjectDetectionPredictionInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageObjectDetectionPredictionInstance} ImageObjectDetectionPredictionInstance + */ + ImageObjectDetectionPredictionInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageObjectDetectionPredictionInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageObjectDetectionPredictionInstance(); + if (object.content != null) + message.content = String(object.content); + if (object.mimeType != null) + message.mimeType = String(object.mimeType); + return message; + }; + + /** + * Creates a plain object from an ImageObjectDetectionPredictionInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageObjectDetectionPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageObjectDetectionPredictionInstance} message ImageObjectDetectionPredictionInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ImageObjectDetectionPredictionInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.content = ""; + object.mimeType = ""; + } + if (message.content != null && message.hasOwnProperty("content")) + object.content = message.content; + if (message.mimeType != null && message.hasOwnProperty("mimeType")) + object.mimeType = message.mimeType; + return object; + }; + + /** + * Converts this ImageObjectDetectionPredictionInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageObjectDetectionPredictionInstance + * @instance + * @returns {Object.} JSON object + */ + ImageObjectDetectionPredictionInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ImageObjectDetectionPredictionInstance; + })(); + + instance.ImageSegmentationPredictionInstance = (function() { + + /** + * Properties of an ImageSegmentationPredictionInstance. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance + * @interface IImageSegmentationPredictionInstance + * @property {string|null} [content] ImageSegmentationPredictionInstance content + * @property {string|null} [mimeType] ImageSegmentationPredictionInstance mimeType + */ + + /** + * Constructs a new ImageSegmentationPredictionInstance. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance + * @classdesc Represents an ImageSegmentationPredictionInstance. + * @implements IImageSegmentationPredictionInstance + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.IImageSegmentationPredictionInstance=} [properties] Properties to set + */ + function ImageSegmentationPredictionInstance(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]]; + } + + /** + * ImageSegmentationPredictionInstance content. + * @member {string} content + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageSegmentationPredictionInstance + * @instance + */ + ImageSegmentationPredictionInstance.prototype.content = ""; + + /** + * ImageSegmentationPredictionInstance mimeType. + * @member {string} mimeType + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageSegmentationPredictionInstance + * @instance + */ + ImageSegmentationPredictionInstance.prototype.mimeType = ""; + + /** + * Creates a new ImageSegmentationPredictionInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageSegmentationPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.IImageSegmentationPredictionInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageSegmentationPredictionInstance} ImageSegmentationPredictionInstance instance + */ + ImageSegmentationPredictionInstance.create = function create(properties) { + return new ImageSegmentationPredictionInstance(properties); + }; + + /** + * Encodes the specified ImageSegmentationPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageSegmentationPredictionInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageSegmentationPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.IImageSegmentationPredictionInstance} message ImageSegmentationPredictionInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageSegmentationPredictionInstance.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); + return writer; + }; + + /** + * Encodes the specified ImageSegmentationPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageSegmentationPredictionInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageSegmentationPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.IImageSegmentationPredictionInstance} message ImageSegmentationPredictionInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageSegmentationPredictionInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ImageSegmentationPredictionInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageSegmentationPredictionInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageSegmentationPredictionInstance} ImageSegmentationPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageSegmentationPredictionInstance.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageSegmentationPredictionInstance(); + 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; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ImageSegmentationPredictionInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageSegmentationPredictionInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageSegmentationPredictionInstance} ImageSegmentationPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageSegmentationPredictionInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ImageSegmentationPredictionInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageSegmentationPredictionInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ImageSegmentationPredictionInstance.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"; + return null; + }; + + /** + * Creates an ImageSegmentationPredictionInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageSegmentationPredictionInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageSegmentationPredictionInstance} ImageSegmentationPredictionInstance + */ + ImageSegmentationPredictionInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageSegmentationPredictionInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageSegmentationPredictionInstance(); + if (object.content != null) + message.content = String(object.content); + if (object.mimeType != null) + message.mimeType = String(object.mimeType); + return message; + }; + + /** + * Creates a plain object from an ImageSegmentationPredictionInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageSegmentationPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageSegmentationPredictionInstance} message ImageSegmentationPredictionInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ImageSegmentationPredictionInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.content = ""; + object.mimeType = ""; + } + if (message.content != null && message.hasOwnProperty("content")) + object.content = message.content; + if (message.mimeType != null && message.hasOwnProperty("mimeType")) + object.mimeType = message.mimeType; + return object; + }; + + /** + * Converts this ImageSegmentationPredictionInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.ImageSegmentationPredictionInstance + * @instance + * @returns {Object.} JSON object + */ + ImageSegmentationPredictionInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ImageSegmentationPredictionInstance; + })(); + + instance.TextClassificationPredictionInstance = (function() { + + /** + * Properties of a TextClassificationPredictionInstance. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance + * @interface ITextClassificationPredictionInstance + * @property {string|null} [content] TextClassificationPredictionInstance content + * @property {string|null} [mimeType] TextClassificationPredictionInstance mimeType + */ + + /** + * Constructs a new TextClassificationPredictionInstance. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance + * @classdesc Represents a TextClassificationPredictionInstance. + * @implements ITextClassificationPredictionInstance + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.ITextClassificationPredictionInstance=} [properties] Properties to set + */ + function TextClassificationPredictionInstance(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]]; + } + + /** + * TextClassificationPredictionInstance content. + * @member {string} content + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.TextClassificationPredictionInstance + * @instance + */ + TextClassificationPredictionInstance.prototype.content = ""; + + /** + * TextClassificationPredictionInstance mimeType. + * @member {string} mimeType + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.TextClassificationPredictionInstance + * @instance + */ + TextClassificationPredictionInstance.prototype.mimeType = ""; + + /** + * Creates a new TextClassificationPredictionInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.TextClassificationPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.ITextClassificationPredictionInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.instance.TextClassificationPredictionInstance} TextClassificationPredictionInstance instance + */ + TextClassificationPredictionInstance.create = function create(properties) { + return new TextClassificationPredictionInstance(properties); + }; + + /** + * Encodes the specified TextClassificationPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.instance.TextClassificationPredictionInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.TextClassificationPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.ITextClassificationPredictionInstance} message TextClassificationPredictionInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TextClassificationPredictionInstance.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); + return writer; + }; + + /** + * Encodes the specified TextClassificationPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.instance.TextClassificationPredictionInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.TextClassificationPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.ITextClassificationPredictionInstance} message TextClassificationPredictionInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TextClassificationPredictionInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TextClassificationPredictionInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.TextClassificationPredictionInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.instance.TextClassificationPredictionInstance} TextClassificationPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TextClassificationPredictionInstance.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.instance.TextClassificationPredictionInstance(); + 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; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TextClassificationPredictionInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.TextClassificationPredictionInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.instance.TextClassificationPredictionInstance} TextClassificationPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TextClassificationPredictionInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TextClassificationPredictionInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.TextClassificationPredictionInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TextClassificationPredictionInstance.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"; + return null; + }; + + /** + * Creates a TextClassificationPredictionInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.TextClassificationPredictionInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.instance.TextClassificationPredictionInstance} TextClassificationPredictionInstance + */ + TextClassificationPredictionInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.predict.instance.TextClassificationPredictionInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.instance.TextClassificationPredictionInstance(); + if (object.content != null) + message.content = String(object.content); + if (object.mimeType != null) + message.mimeType = String(object.mimeType); + return message; + }; + + /** + * Creates a plain object from a TextClassificationPredictionInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.TextClassificationPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.TextClassificationPredictionInstance} message TextClassificationPredictionInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TextClassificationPredictionInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.content = ""; + object.mimeType = ""; + } + if (message.content != null && message.hasOwnProperty("content")) + object.content = message.content; + if (message.mimeType != null && message.hasOwnProperty("mimeType")) + object.mimeType = message.mimeType; + return object; + }; + + /** + * Converts this TextClassificationPredictionInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.TextClassificationPredictionInstance + * @instance + * @returns {Object.} JSON object + */ + TextClassificationPredictionInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return TextClassificationPredictionInstance; + })(); + + instance.TextExtractionPredictionInstance = (function() { + + /** + * Properties of a TextExtractionPredictionInstance. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance + * @interface ITextExtractionPredictionInstance + * @property {string|null} [content] TextExtractionPredictionInstance content + * @property {string|null} [mimeType] TextExtractionPredictionInstance mimeType + * @property {string|null} [key] TextExtractionPredictionInstance key + */ + + /** + * Constructs a new TextExtractionPredictionInstance. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance + * @classdesc Represents a TextExtractionPredictionInstance. + * @implements ITextExtractionPredictionInstance + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.ITextExtractionPredictionInstance=} [properties] Properties to set + */ + function TextExtractionPredictionInstance(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]]; + } + + /** + * TextExtractionPredictionInstance content. + * @member {string} content + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.TextExtractionPredictionInstance + * @instance + */ + TextExtractionPredictionInstance.prototype.content = ""; + + /** + * TextExtractionPredictionInstance mimeType. + * @member {string} mimeType + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.TextExtractionPredictionInstance + * @instance + */ + TextExtractionPredictionInstance.prototype.mimeType = ""; + + /** + * TextExtractionPredictionInstance key. + * @member {string} key + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.TextExtractionPredictionInstance + * @instance + */ + TextExtractionPredictionInstance.prototype.key = ""; + + /** + * Creates a new TextExtractionPredictionInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.TextExtractionPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.ITextExtractionPredictionInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.instance.TextExtractionPredictionInstance} TextExtractionPredictionInstance instance + */ + TextExtractionPredictionInstance.create = function create(properties) { + return new TextExtractionPredictionInstance(properties); + }; + + /** + * Encodes the specified TextExtractionPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.instance.TextExtractionPredictionInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.TextExtractionPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.ITextExtractionPredictionInstance} message TextExtractionPredictionInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TextExtractionPredictionInstance.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.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.key); + return writer; + }; + + /** + * Encodes the specified TextExtractionPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.instance.TextExtractionPredictionInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.TextExtractionPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.ITextExtractionPredictionInstance} message TextExtractionPredictionInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TextExtractionPredictionInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TextExtractionPredictionInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.TextExtractionPredictionInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.instance.TextExtractionPredictionInstance} TextExtractionPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TextExtractionPredictionInstance.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.instance.TextExtractionPredictionInstance(); + 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 3: + message.key = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TextExtractionPredictionInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.TextExtractionPredictionInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.instance.TextExtractionPredictionInstance} TextExtractionPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TextExtractionPredictionInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TextExtractionPredictionInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.TextExtractionPredictionInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TextExtractionPredictionInstance.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.key != null && message.hasOwnProperty("key")) + if (!$util.isString(message.key)) + return "key: string expected"; + return null; + }; + + /** + * Creates a TextExtractionPredictionInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.TextExtractionPredictionInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.instance.TextExtractionPredictionInstance} TextExtractionPredictionInstance + */ + TextExtractionPredictionInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.predict.instance.TextExtractionPredictionInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.instance.TextExtractionPredictionInstance(); + if (object.content != null) + message.content = String(object.content); + if (object.mimeType != null) + message.mimeType = String(object.mimeType); + if (object.key != null) + message.key = String(object.key); + return message; + }; + + /** + * Creates a plain object from a TextExtractionPredictionInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.TextExtractionPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.TextExtractionPredictionInstance} message TextExtractionPredictionInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TextExtractionPredictionInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.content = ""; + object.mimeType = ""; + object.key = ""; + } + if (message.content != null && message.hasOwnProperty("content")) + object.content = message.content; + if (message.mimeType != null && message.hasOwnProperty("mimeType")) + object.mimeType = message.mimeType; + if (message.key != null && message.hasOwnProperty("key")) + object.key = message.key; + return object; + }; + + /** + * Converts this TextExtractionPredictionInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.TextExtractionPredictionInstance + * @instance + * @returns {Object.} JSON object + */ + TextExtractionPredictionInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return TextExtractionPredictionInstance; + })(); + + instance.TextSentimentPredictionInstance = (function() { + + /** + * Properties of a TextSentimentPredictionInstance. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance + * @interface ITextSentimentPredictionInstance + * @property {string|null} [content] TextSentimentPredictionInstance content + * @property {string|null} [mimeType] TextSentimentPredictionInstance mimeType + */ + + /** + * Constructs a new TextSentimentPredictionInstance. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance + * @classdesc Represents a TextSentimentPredictionInstance. + * @implements ITextSentimentPredictionInstance + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.ITextSentimentPredictionInstance=} [properties] Properties to set + */ + function TextSentimentPredictionInstance(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]]; + } + + /** + * TextSentimentPredictionInstance content. + * @member {string} content + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.TextSentimentPredictionInstance + * @instance + */ + TextSentimentPredictionInstance.prototype.content = ""; + + /** + * TextSentimentPredictionInstance mimeType. + * @member {string} mimeType + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.TextSentimentPredictionInstance + * @instance + */ + TextSentimentPredictionInstance.prototype.mimeType = ""; + + /** + * Creates a new TextSentimentPredictionInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.TextSentimentPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.ITextSentimentPredictionInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.instance.TextSentimentPredictionInstance} TextSentimentPredictionInstance instance + */ + TextSentimentPredictionInstance.create = function create(properties) { + return new TextSentimentPredictionInstance(properties); + }; + + /** + * Encodes the specified TextSentimentPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.instance.TextSentimentPredictionInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.TextSentimentPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.ITextSentimentPredictionInstance} message TextSentimentPredictionInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TextSentimentPredictionInstance.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); + return writer; + }; + + /** + * Encodes the specified TextSentimentPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.instance.TextSentimentPredictionInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.TextSentimentPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.ITextSentimentPredictionInstance} message TextSentimentPredictionInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TextSentimentPredictionInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TextSentimentPredictionInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.TextSentimentPredictionInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.instance.TextSentimentPredictionInstance} TextSentimentPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TextSentimentPredictionInstance.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.instance.TextSentimentPredictionInstance(); + 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; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TextSentimentPredictionInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.TextSentimentPredictionInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.instance.TextSentimentPredictionInstance} TextSentimentPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TextSentimentPredictionInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TextSentimentPredictionInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.TextSentimentPredictionInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TextSentimentPredictionInstance.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"; + return null; + }; + + /** + * Creates a TextSentimentPredictionInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.TextSentimentPredictionInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.instance.TextSentimentPredictionInstance} TextSentimentPredictionInstance + */ + TextSentimentPredictionInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.predict.instance.TextSentimentPredictionInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.instance.TextSentimentPredictionInstance(); + if (object.content != null) + message.content = String(object.content); + if (object.mimeType != null) + message.mimeType = String(object.mimeType); + return message; + }; + + /** + * Creates a plain object from a TextSentimentPredictionInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.TextSentimentPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.TextSentimentPredictionInstance} message TextSentimentPredictionInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TextSentimentPredictionInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.content = ""; + object.mimeType = ""; + } + if (message.content != null && message.hasOwnProperty("content")) + object.content = message.content; + if (message.mimeType != null && message.hasOwnProperty("mimeType")) + object.mimeType = message.mimeType; + return object; + }; + + /** + * Converts this TextSentimentPredictionInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.TextSentimentPredictionInstance + * @instance + * @returns {Object.} JSON object + */ + TextSentimentPredictionInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return TextSentimentPredictionInstance; + })(); + + instance.VideoActionRecognitionPredictionInstance = (function() { + + /** + * Properties of a VideoActionRecognitionPredictionInstance. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance + * @interface IVideoActionRecognitionPredictionInstance + * @property {string|null} [content] VideoActionRecognitionPredictionInstance content + * @property {string|null} [mimeType] VideoActionRecognitionPredictionInstance mimeType + * @property {string|null} [timeSegmentStart] VideoActionRecognitionPredictionInstance timeSegmentStart + * @property {string|null} [timeSegmentEnd] VideoActionRecognitionPredictionInstance timeSegmentEnd + */ + + /** + * Constructs a new VideoActionRecognitionPredictionInstance. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance + * @classdesc Represents a VideoActionRecognitionPredictionInstance. + * @implements IVideoActionRecognitionPredictionInstance + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.IVideoActionRecognitionPredictionInstance=} [properties] Properties to set + */ + function VideoActionRecognitionPredictionInstance(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]]; + } + + /** + * VideoActionRecognitionPredictionInstance content. + * @member {string} content + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoActionRecognitionPredictionInstance + * @instance + */ + VideoActionRecognitionPredictionInstance.prototype.content = ""; + + /** + * VideoActionRecognitionPredictionInstance mimeType. + * @member {string} mimeType + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoActionRecognitionPredictionInstance + * @instance + */ + VideoActionRecognitionPredictionInstance.prototype.mimeType = ""; + + /** + * VideoActionRecognitionPredictionInstance timeSegmentStart. + * @member {string} timeSegmentStart + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoActionRecognitionPredictionInstance + * @instance + */ + VideoActionRecognitionPredictionInstance.prototype.timeSegmentStart = ""; + + /** + * VideoActionRecognitionPredictionInstance timeSegmentEnd. + * @member {string} timeSegmentEnd + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoActionRecognitionPredictionInstance + * @instance + */ + VideoActionRecognitionPredictionInstance.prototype.timeSegmentEnd = ""; + + /** + * Creates a new VideoActionRecognitionPredictionInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoActionRecognitionPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.IVideoActionRecognitionPredictionInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoActionRecognitionPredictionInstance} VideoActionRecognitionPredictionInstance instance + */ + VideoActionRecognitionPredictionInstance.create = function create(properties) { + return new VideoActionRecognitionPredictionInstance(properties); + }; + + /** + * Encodes the specified VideoActionRecognitionPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoActionRecognitionPredictionInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoActionRecognitionPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.IVideoActionRecognitionPredictionInstance} message VideoActionRecognitionPredictionInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoActionRecognitionPredictionInstance.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.timeSegmentStart != null && Object.hasOwnProperty.call(message, "timeSegmentStart")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.timeSegmentStart); + if (message.timeSegmentEnd != null && Object.hasOwnProperty.call(message, "timeSegmentEnd")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.timeSegmentEnd); + return writer; + }; + + /** + * Encodes the specified VideoActionRecognitionPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoActionRecognitionPredictionInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoActionRecognitionPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.IVideoActionRecognitionPredictionInstance} message VideoActionRecognitionPredictionInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoActionRecognitionPredictionInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VideoActionRecognitionPredictionInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoActionRecognitionPredictionInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoActionRecognitionPredictionInstance} VideoActionRecognitionPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoActionRecognitionPredictionInstance.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoActionRecognitionPredictionInstance(); + 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 3: + message.timeSegmentStart = reader.string(); + break; + case 4: + message.timeSegmentEnd = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VideoActionRecognitionPredictionInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoActionRecognitionPredictionInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoActionRecognitionPredictionInstance} VideoActionRecognitionPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoActionRecognitionPredictionInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VideoActionRecognitionPredictionInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoActionRecognitionPredictionInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VideoActionRecognitionPredictionInstance.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.timeSegmentStart != null && message.hasOwnProperty("timeSegmentStart")) + if (!$util.isString(message.timeSegmentStart)) + return "timeSegmentStart: string expected"; + if (message.timeSegmentEnd != null && message.hasOwnProperty("timeSegmentEnd")) + if (!$util.isString(message.timeSegmentEnd)) + return "timeSegmentEnd: string expected"; + return null; + }; + + /** + * Creates a VideoActionRecognitionPredictionInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoActionRecognitionPredictionInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoActionRecognitionPredictionInstance} VideoActionRecognitionPredictionInstance + */ + VideoActionRecognitionPredictionInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoActionRecognitionPredictionInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoActionRecognitionPredictionInstance(); + if (object.content != null) + message.content = String(object.content); + if (object.mimeType != null) + message.mimeType = String(object.mimeType); + if (object.timeSegmentStart != null) + message.timeSegmentStart = String(object.timeSegmentStart); + if (object.timeSegmentEnd != null) + message.timeSegmentEnd = String(object.timeSegmentEnd); + return message; + }; + + /** + * Creates a plain object from a VideoActionRecognitionPredictionInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoActionRecognitionPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoActionRecognitionPredictionInstance} message VideoActionRecognitionPredictionInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VideoActionRecognitionPredictionInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.content = ""; + object.mimeType = ""; + object.timeSegmentStart = ""; + object.timeSegmentEnd = ""; + } + if (message.content != null && message.hasOwnProperty("content")) + object.content = message.content; + if (message.mimeType != null && message.hasOwnProperty("mimeType")) + object.mimeType = message.mimeType; + if (message.timeSegmentStart != null && message.hasOwnProperty("timeSegmentStart")) + object.timeSegmentStart = message.timeSegmentStart; + if (message.timeSegmentEnd != null && message.hasOwnProperty("timeSegmentEnd")) + object.timeSegmentEnd = message.timeSegmentEnd; + return object; + }; + + /** + * Converts this VideoActionRecognitionPredictionInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoActionRecognitionPredictionInstance + * @instance + * @returns {Object.} JSON object + */ + VideoActionRecognitionPredictionInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return VideoActionRecognitionPredictionInstance; + })(); + + instance.VideoClassificationPredictionInstance = (function() { + + /** + * Properties of a VideoClassificationPredictionInstance. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance + * @interface IVideoClassificationPredictionInstance + * @property {string|null} [content] VideoClassificationPredictionInstance content + * @property {string|null} [mimeType] VideoClassificationPredictionInstance mimeType + * @property {string|null} [timeSegmentStart] VideoClassificationPredictionInstance timeSegmentStart + * @property {string|null} [timeSegmentEnd] VideoClassificationPredictionInstance timeSegmentEnd + */ + + /** + * Constructs a new VideoClassificationPredictionInstance. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance + * @classdesc Represents a VideoClassificationPredictionInstance. + * @implements IVideoClassificationPredictionInstance + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.IVideoClassificationPredictionInstance=} [properties] Properties to set + */ + function VideoClassificationPredictionInstance(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]]; + } + + /** + * VideoClassificationPredictionInstance content. + * @member {string} content + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoClassificationPredictionInstance + * @instance + */ + VideoClassificationPredictionInstance.prototype.content = ""; + + /** + * VideoClassificationPredictionInstance mimeType. + * @member {string} mimeType + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoClassificationPredictionInstance + * @instance + */ + VideoClassificationPredictionInstance.prototype.mimeType = ""; + + /** + * VideoClassificationPredictionInstance timeSegmentStart. + * @member {string} timeSegmentStart + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoClassificationPredictionInstance + * @instance + */ + VideoClassificationPredictionInstance.prototype.timeSegmentStart = ""; + + /** + * VideoClassificationPredictionInstance timeSegmentEnd. + * @member {string} timeSegmentEnd + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoClassificationPredictionInstance + * @instance + */ + VideoClassificationPredictionInstance.prototype.timeSegmentEnd = ""; + + /** + * Creates a new VideoClassificationPredictionInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoClassificationPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.IVideoClassificationPredictionInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoClassificationPredictionInstance} VideoClassificationPredictionInstance instance + */ + VideoClassificationPredictionInstance.create = function create(properties) { + return new VideoClassificationPredictionInstance(properties); + }; + + /** + * Encodes the specified VideoClassificationPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoClassificationPredictionInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoClassificationPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.IVideoClassificationPredictionInstance} message VideoClassificationPredictionInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoClassificationPredictionInstance.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.timeSegmentStart != null && Object.hasOwnProperty.call(message, "timeSegmentStart")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.timeSegmentStart); + if (message.timeSegmentEnd != null && Object.hasOwnProperty.call(message, "timeSegmentEnd")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.timeSegmentEnd); + return writer; + }; + + /** + * Encodes the specified VideoClassificationPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoClassificationPredictionInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoClassificationPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.IVideoClassificationPredictionInstance} message VideoClassificationPredictionInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoClassificationPredictionInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VideoClassificationPredictionInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoClassificationPredictionInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoClassificationPredictionInstance} VideoClassificationPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoClassificationPredictionInstance.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoClassificationPredictionInstance(); + 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 3: + message.timeSegmentStart = reader.string(); + break; + case 4: + message.timeSegmentEnd = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VideoClassificationPredictionInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoClassificationPredictionInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoClassificationPredictionInstance} VideoClassificationPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoClassificationPredictionInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VideoClassificationPredictionInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoClassificationPredictionInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VideoClassificationPredictionInstance.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.timeSegmentStart != null && message.hasOwnProperty("timeSegmentStart")) + if (!$util.isString(message.timeSegmentStart)) + return "timeSegmentStart: string expected"; + if (message.timeSegmentEnd != null && message.hasOwnProperty("timeSegmentEnd")) + if (!$util.isString(message.timeSegmentEnd)) + return "timeSegmentEnd: string expected"; + return null; + }; + + /** + * Creates a VideoClassificationPredictionInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoClassificationPredictionInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoClassificationPredictionInstance} VideoClassificationPredictionInstance + */ + VideoClassificationPredictionInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoClassificationPredictionInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoClassificationPredictionInstance(); + if (object.content != null) + message.content = String(object.content); + if (object.mimeType != null) + message.mimeType = String(object.mimeType); + if (object.timeSegmentStart != null) + message.timeSegmentStart = String(object.timeSegmentStart); + if (object.timeSegmentEnd != null) + message.timeSegmentEnd = String(object.timeSegmentEnd); + return message; + }; + + /** + * Creates a plain object from a VideoClassificationPredictionInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoClassificationPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoClassificationPredictionInstance} message VideoClassificationPredictionInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VideoClassificationPredictionInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.content = ""; + object.mimeType = ""; + object.timeSegmentStart = ""; + object.timeSegmentEnd = ""; + } + if (message.content != null && message.hasOwnProperty("content")) + object.content = message.content; + if (message.mimeType != null && message.hasOwnProperty("mimeType")) + object.mimeType = message.mimeType; + if (message.timeSegmentStart != null && message.hasOwnProperty("timeSegmentStart")) + object.timeSegmentStart = message.timeSegmentStart; + if (message.timeSegmentEnd != null && message.hasOwnProperty("timeSegmentEnd")) + object.timeSegmentEnd = message.timeSegmentEnd; + return object; + }; + + /** + * Converts this VideoClassificationPredictionInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoClassificationPredictionInstance + * @instance + * @returns {Object.} JSON object + */ + VideoClassificationPredictionInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return VideoClassificationPredictionInstance; + })(); + + instance.VideoObjectTrackingPredictionInstance = (function() { + + /** + * Properties of a VideoObjectTrackingPredictionInstance. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance + * @interface IVideoObjectTrackingPredictionInstance + * @property {string|null} [content] VideoObjectTrackingPredictionInstance content + * @property {string|null} [mimeType] VideoObjectTrackingPredictionInstance mimeType + * @property {string|null} [timeSegmentStart] VideoObjectTrackingPredictionInstance timeSegmentStart + * @property {string|null} [timeSegmentEnd] VideoObjectTrackingPredictionInstance timeSegmentEnd + */ + + /** + * Constructs a new VideoObjectTrackingPredictionInstance. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance + * @classdesc Represents a VideoObjectTrackingPredictionInstance. + * @implements IVideoObjectTrackingPredictionInstance + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.IVideoObjectTrackingPredictionInstance=} [properties] Properties to set + */ + function VideoObjectTrackingPredictionInstance(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]]; + } + + /** + * VideoObjectTrackingPredictionInstance content. + * @member {string} content + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoObjectTrackingPredictionInstance + * @instance + */ + VideoObjectTrackingPredictionInstance.prototype.content = ""; + + /** + * VideoObjectTrackingPredictionInstance mimeType. + * @member {string} mimeType + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoObjectTrackingPredictionInstance + * @instance + */ + VideoObjectTrackingPredictionInstance.prototype.mimeType = ""; + + /** + * VideoObjectTrackingPredictionInstance timeSegmentStart. + * @member {string} timeSegmentStart + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoObjectTrackingPredictionInstance + * @instance + */ + VideoObjectTrackingPredictionInstance.prototype.timeSegmentStart = ""; + + /** + * VideoObjectTrackingPredictionInstance timeSegmentEnd. + * @member {string} timeSegmentEnd + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoObjectTrackingPredictionInstance + * @instance + */ + VideoObjectTrackingPredictionInstance.prototype.timeSegmentEnd = ""; + + /** + * Creates a new VideoObjectTrackingPredictionInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoObjectTrackingPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.IVideoObjectTrackingPredictionInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoObjectTrackingPredictionInstance} VideoObjectTrackingPredictionInstance instance + */ + VideoObjectTrackingPredictionInstance.create = function create(properties) { + return new VideoObjectTrackingPredictionInstance(properties); + }; + + /** + * Encodes the specified VideoObjectTrackingPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoObjectTrackingPredictionInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoObjectTrackingPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.IVideoObjectTrackingPredictionInstance} message VideoObjectTrackingPredictionInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoObjectTrackingPredictionInstance.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.timeSegmentStart != null && Object.hasOwnProperty.call(message, "timeSegmentStart")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.timeSegmentStart); + if (message.timeSegmentEnd != null && Object.hasOwnProperty.call(message, "timeSegmentEnd")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.timeSegmentEnd); + return writer; + }; + + /** + * Encodes the specified VideoObjectTrackingPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoObjectTrackingPredictionInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoObjectTrackingPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.IVideoObjectTrackingPredictionInstance} message VideoObjectTrackingPredictionInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoObjectTrackingPredictionInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VideoObjectTrackingPredictionInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoObjectTrackingPredictionInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoObjectTrackingPredictionInstance} VideoObjectTrackingPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoObjectTrackingPredictionInstance.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoObjectTrackingPredictionInstance(); + 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 3: + message.timeSegmentStart = reader.string(); + break; + case 4: + message.timeSegmentEnd = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VideoObjectTrackingPredictionInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoObjectTrackingPredictionInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoObjectTrackingPredictionInstance} VideoObjectTrackingPredictionInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoObjectTrackingPredictionInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VideoObjectTrackingPredictionInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoObjectTrackingPredictionInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VideoObjectTrackingPredictionInstance.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.timeSegmentStart != null && message.hasOwnProperty("timeSegmentStart")) + if (!$util.isString(message.timeSegmentStart)) + return "timeSegmentStart: string expected"; + if (message.timeSegmentEnd != null && message.hasOwnProperty("timeSegmentEnd")) + if (!$util.isString(message.timeSegmentEnd)) + return "timeSegmentEnd: string expected"; + return null; + }; + + /** + * Creates a VideoObjectTrackingPredictionInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoObjectTrackingPredictionInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoObjectTrackingPredictionInstance} VideoObjectTrackingPredictionInstance + */ + VideoObjectTrackingPredictionInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoObjectTrackingPredictionInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoObjectTrackingPredictionInstance(); + if (object.content != null) + message.content = String(object.content); + if (object.mimeType != null) + message.mimeType = String(object.mimeType); + if (object.timeSegmentStart != null) + message.timeSegmentStart = String(object.timeSegmentStart); + if (object.timeSegmentEnd != null) + message.timeSegmentEnd = String(object.timeSegmentEnd); + return message; + }; + + /** + * Creates a plain object from a VideoObjectTrackingPredictionInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoObjectTrackingPredictionInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoObjectTrackingPredictionInstance} message VideoObjectTrackingPredictionInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VideoObjectTrackingPredictionInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.content = ""; + object.mimeType = ""; + object.timeSegmentStart = ""; + object.timeSegmentEnd = ""; + } + if (message.content != null && message.hasOwnProperty("content")) + object.content = message.content; + if (message.mimeType != null && message.hasOwnProperty("mimeType")) + object.mimeType = message.mimeType; + if (message.timeSegmentStart != null && message.hasOwnProperty("timeSegmentStart")) + object.timeSegmentStart = message.timeSegmentStart; + if (message.timeSegmentEnd != null && message.hasOwnProperty("timeSegmentEnd")) + object.timeSegmentEnd = message.timeSegmentEnd; + return object; + }; + + /** + * Converts this VideoObjectTrackingPredictionInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.instance.VideoObjectTrackingPredictionInstance + * @instance + * @returns {Object.} JSON object + */ + VideoObjectTrackingPredictionInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return VideoObjectTrackingPredictionInstance; + })(); + + return instance; + })(); + + predict.params = (function() { + + /** + * Namespace params. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict + * @namespace + */ + var params = {}; + + params.ImageClassificationPredictionParams = (function() { + + /** + * Properties of an ImageClassificationPredictionParams. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params + * @interface IImageClassificationPredictionParams + * @property {number|null} [confidenceThreshold] ImageClassificationPredictionParams confidenceThreshold + * @property {number|null} [maxPredictions] ImageClassificationPredictionParams maxPredictions + */ + + /** + * Constructs a new ImageClassificationPredictionParams. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params + * @classdesc Represents an ImageClassificationPredictionParams. + * @implements IImageClassificationPredictionParams + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.predict.params.IImageClassificationPredictionParams=} [properties] Properties to set + */ + function ImageClassificationPredictionParams(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]]; + } + + /** + * ImageClassificationPredictionParams confidenceThreshold. + * @member {number} confidenceThreshold + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.ImageClassificationPredictionParams + * @instance + */ + ImageClassificationPredictionParams.prototype.confidenceThreshold = 0; + + /** + * ImageClassificationPredictionParams maxPredictions. + * @member {number} maxPredictions + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.ImageClassificationPredictionParams + * @instance + */ + ImageClassificationPredictionParams.prototype.maxPredictions = 0; + + /** + * Creates a new ImageClassificationPredictionParams instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.ImageClassificationPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.params.IImageClassificationPredictionParams=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.params.ImageClassificationPredictionParams} ImageClassificationPredictionParams instance + */ + ImageClassificationPredictionParams.create = function create(properties) { + return new ImageClassificationPredictionParams(properties); + }; + + /** + * Encodes the specified ImageClassificationPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.params.ImageClassificationPredictionParams.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.ImageClassificationPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.params.IImageClassificationPredictionParams} message ImageClassificationPredictionParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageClassificationPredictionParams.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.maxPredictions != null && Object.hasOwnProperty.call(message, "maxPredictions")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxPredictions); + return writer; + }; + + /** + * Encodes the specified ImageClassificationPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.params.ImageClassificationPredictionParams.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.ImageClassificationPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.params.IImageClassificationPredictionParams} message ImageClassificationPredictionParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageClassificationPredictionParams.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ImageClassificationPredictionParams message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.ImageClassificationPredictionParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.params.ImageClassificationPredictionParams} ImageClassificationPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageClassificationPredictionParams.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.params.ImageClassificationPredictionParams(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.confidenceThreshold = reader.float(); + break; + case 2: + message.maxPredictions = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ImageClassificationPredictionParams message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.ImageClassificationPredictionParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.params.ImageClassificationPredictionParams} ImageClassificationPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageClassificationPredictionParams.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ImageClassificationPredictionParams message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.ImageClassificationPredictionParams + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ImageClassificationPredictionParams.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.maxPredictions != null && message.hasOwnProperty("maxPredictions")) + if (!$util.isInteger(message.maxPredictions)) + return "maxPredictions: integer expected"; + return null; + }; + + /** + * Creates an ImageClassificationPredictionParams message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.ImageClassificationPredictionParams + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.params.ImageClassificationPredictionParams} ImageClassificationPredictionParams + */ + ImageClassificationPredictionParams.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.predict.params.ImageClassificationPredictionParams) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.params.ImageClassificationPredictionParams(); + if (object.confidenceThreshold != null) + message.confidenceThreshold = Number(object.confidenceThreshold); + if (object.maxPredictions != null) + message.maxPredictions = object.maxPredictions | 0; + return message; + }; + + /** + * Creates a plain object from an ImageClassificationPredictionParams message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.ImageClassificationPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.params.ImageClassificationPredictionParams} message ImageClassificationPredictionParams + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ImageClassificationPredictionParams.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.confidenceThreshold = 0; + object.maxPredictions = 0; + } + if (message.confidenceThreshold != null && message.hasOwnProperty("confidenceThreshold")) + object.confidenceThreshold = options.json && !isFinite(message.confidenceThreshold) ? String(message.confidenceThreshold) : message.confidenceThreshold; + if (message.maxPredictions != null && message.hasOwnProperty("maxPredictions")) + object.maxPredictions = message.maxPredictions; + return object; + }; + + /** + * Converts this ImageClassificationPredictionParams to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.ImageClassificationPredictionParams + * @instance + * @returns {Object.} JSON object + */ + ImageClassificationPredictionParams.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ImageClassificationPredictionParams; + })(); + + params.ImageObjectDetectionPredictionParams = (function() { + + /** + * Properties of an ImageObjectDetectionPredictionParams. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params + * @interface IImageObjectDetectionPredictionParams + * @property {number|null} [confidenceThreshold] ImageObjectDetectionPredictionParams confidenceThreshold + * @property {number|null} [maxPredictions] ImageObjectDetectionPredictionParams maxPredictions + */ + + /** + * Constructs a new ImageObjectDetectionPredictionParams. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params + * @classdesc Represents an ImageObjectDetectionPredictionParams. + * @implements IImageObjectDetectionPredictionParams + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.predict.params.IImageObjectDetectionPredictionParams=} [properties] Properties to set + */ + function ImageObjectDetectionPredictionParams(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]]; + } + + /** + * ImageObjectDetectionPredictionParams confidenceThreshold. + * @member {number} confidenceThreshold + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.ImageObjectDetectionPredictionParams + * @instance + */ + ImageObjectDetectionPredictionParams.prototype.confidenceThreshold = 0; + + /** + * ImageObjectDetectionPredictionParams maxPredictions. + * @member {number} maxPredictions + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.ImageObjectDetectionPredictionParams + * @instance + */ + ImageObjectDetectionPredictionParams.prototype.maxPredictions = 0; + + /** + * Creates a new ImageObjectDetectionPredictionParams instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.ImageObjectDetectionPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.params.IImageObjectDetectionPredictionParams=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.params.ImageObjectDetectionPredictionParams} ImageObjectDetectionPredictionParams instance + */ + ImageObjectDetectionPredictionParams.create = function create(properties) { + return new ImageObjectDetectionPredictionParams(properties); + }; + + /** + * Encodes the specified ImageObjectDetectionPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.params.ImageObjectDetectionPredictionParams.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.ImageObjectDetectionPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.params.IImageObjectDetectionPredictionParams} message ImageObjectDetectionPredictionParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageObjectDetectionPredictionParams.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.maxPredictions != null && Object.hasOwnProperty.call(message, "maxPredictions")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxPredictions); + return writer; + }; + + /** + * Encodes the specified ImageObjectDetectionPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.params.ImageObjectDetectionPredictionParams.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.ImageObjectDetectionPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.params.IImageObjectDetectionPredictionParams} message ImageObjectDetectionPredictionParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageObjectDetectionPredictionParams.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ImageObjectDetectionPredictionParams message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.ImageObjectDetectionPredictionParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.params.ImageObjectDetectionPredictionParams} ImageObjectDetectionPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageObjectDetectionPredictionParams.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.params.ImageObjectDetectionPredictionParams(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.confidenceThreshold = reader.float(); + break; + case 2: + message.maxPredictions = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ImageObjectDetectionPredictionParams message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.ImageObjectDetectionPredictionParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.params.ImageObjectDetectionPredictionParams} ImageObjectDetectionPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageObjectDetectionPredictionParams.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ImageObjectDetectionPredictionParams message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.ImageObjectDetectionPredictionParams + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ImageObjectDetectionPredictionParams.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.maxPredictions != null && message.hasOwnProperty("maxPredictions")) + if (!$util.isInteger(message.maxPredictions)) + return "maxPredictions: integer expected"; + return null; + }; + + /** + * Creates an ImageObjectDetectionPredictionParams message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.ImageObjectDetectionPredictionParams + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.params.ImageObjectDetectionPredictionParams} ImageObjectDetectionPredictionParams + */ + ImageObjectDetectionPredictionParams.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.predict.params.ImageObjectDetectionPredictionParams) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.params.ImageObjectDetectionPredictionParams(); + if (object.confidenceThreshold != null) + message.confidenceThreshold = Number(object.confidenceThreshold); + if (object.maxPredictions != null) + message.maxPredictions = object.maxPredictions | 0; + return message; + }; + + /** + * Creates a plain object from an ImageObjectDetectionPredictionParams message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.ImageObjectDetectionPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.params.ImageObjectDetectionPredictionParams} message ImageObjectDetectionPredictionParams + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ImageObjectDetectionPredictionParams.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.confidenceThreshold = 0; + object.maxPredictions = 0; + } + if (message.confidenceThreshold != null && message.hasOwnProperty("confidenceThreshold")) + object.confidenceThreshold = options.json && !isFinite(message.confidenceThreshold) ? String(message.confidenceThreshold) : message.confidenceThreshold; + if (message.maxPredictions != null && message.hasOwnProperty("maxPredictions")) + object.maxPredictions = message.maxPredictions; + return object; + }; + + /** + * Converts this ImageObjectDetectionPredictionParams to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.ImageObjectDetectionPredictionParams + * @instance + * @returns {Object.} JSON object + */ + ImageObjectDetectionPredictionParams.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ImageObjectDetectionPredictionParams; + })(); + + params.ImageSegmentationPredictionParams = (function() { + + /** + * Properties of an ImageSegmentationPredictionParams. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params + * @interface IImageSegmentationPredictionParams + * @property {number|null} [confidenceThreshold] ImageSegmentationPredictionParams confidenceThreshold + */ + + /** + * Constructs a new ImageSegmentationPredictionParams. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params + * @classdesc Represents an ImageSegmentationPredictionParams. + * @implements IImageSegmentationPredictionParams + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.predict.params.IImageSegmentationPredictionParams=} [properties] Properties to set + */ + function ImageSegmentationPredictionParams(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]]; + } + + /** + * ImageSegmentationPredictionParams confidenceThreshold. + * @member {number} confidenceThreshold + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.ImageSegmentationPredictionParams + * @instance + */ + ImageSegmentationPredictionParams.prototype.confidenceThreshold = 0; + + /** + * Creates a new ImageSegmentationPredictionParams instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.ImageSegmentationPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.params.IImageSegmentationPredictionParams=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.params.ImageSegmentationPredictionParams} ImageSegmentationPredictionParams instance + */ + ImageSegmentationPredictionParams.create = function create(properties) { + return new ImageSegmentationPredictionParams(properties); + }; + + /** + * Encodes the specified ImageSegmentationPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.params.ImageSegmentationPredictionParams.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.ImageSegmentationPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.params.IImageSegmentationPredictionParams} message ImageSegmentationPredictionParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageSegmentationPredictionParams.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); + return writer; + }; + + /** + * Encodes the specified ImageSegmentationPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.params.ImageSegmentationPredictionParams.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.ImageSegmentationPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.params.IImageSegmentationPredictionParams} message ImageSegmentationPredictionParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageSegmentationPredictionParams.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ImageSegmentationPredictionParams message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.ImageSegmentationPredictionParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.params.ImageSegmentationPredictionParams} ImageSegmentationPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageSegmentationPredictionParams.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.params.ImageSegmentationPredictionParams(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.confidenceThreshold = reader.float(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ImageSegmentationPredictionParams message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.ImageSegmentationPredictionParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.params.ImageSegmentationPredictionParams} ImageSegmentationPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageSegmentationPredictionParams.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ImageSegmentationPredictionParams message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.ImageSegmentationPredictionParams + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ImageSegmentationPredictionParams.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"; + return null; + }; + + /** + * Creates an ImageSegmentationPredictionParams message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.ImageSegmentationPredictionParams + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.params.ImageSegmentationPredictionParams} ImageSegmentationPredictionParams + */ + ImageSegmentationPredictionParams.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.predict.params.ImageSegmentationPredictionParams) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.params.ImageSegmentationPredictionParams(); + if (object.confidenceThreshold != null) + message.confidenceThreshold = Number(object.confidenceThreshold); + return message; + }; + + /** + * Creates a plain object from an ImageSegmentationPredictionParams message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.ImageSegmentationPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.params.ImageSegmentationPredictionParams} message ImageSegmentationPredictionParams + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ImageSegmentationPredictionParams.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.confidenceThreshold = 0; + if (message.confidenceThreshold != null && message.hasOwnProperty("confidenceThreshold")) + object.confidenceThreshold = options.json && !isFinite(message.confidenceThreshold) ? String(message.confidenceThreshold) : message.confidenceThreshold; + return object; + }; + + /** + * Converts this ImageSegmentationPredictionParams to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.ImageSegmentationPredictionParams + * @instance + * @returns {Object.} JSON object + */ + ImageSegmentationPredictionParams.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ImageSegmentationPredictionParams; + })(); + + params.VideoActionRecognitionPredictionParams = (function() { + + /** + * Properties of a VideoActionRecognitionPredictionParams. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params + * @interface IVideoActionRecognitionPredictionParams + * @property {number|null} [confidenceThreshold] VideoActionRecognitionPredictionParams confidenceThreshold + * @property {number|null} [maxPredictions] VideoActionRecognitionPredictionParams maxPredictions + */ + + /** + * Constructs a new VideoActionRecognitionPredictionParams. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params + * @classdesc Represents a VideoActionRecognitionPredictionParams. + * @implements IVideoActionRecognitionPredictionParams + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.predict.params.IVideoActionRecognitionPredictionParams=} [properties] Properties to set + */ + function VideoActionRecognitionPredictionParams(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]]; + } + + /** + * VideoActionRecognitionPredictionParams confidenceThreshold. + * @member {number} confidenceThreshold + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.VideoActionRecognitionPredictionParams + * @instance + */ + VideoActionRecognitionPredictionParams.prototype.confidenceThreshold = 0; + + /** + * VideoActionRecognitionPredictionParams maxPredictions. + * @member {number} maxPredictions + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.VideoActionRecognitionPredictionParams + * @instance + */ + VideoActionRecognitionPredictionParams.prototype.maxPredictions = 0; + + /** + * Creates a new VideoActionRecognitionPredictionParams instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.VideoActionRecognitionPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.params.IVideoActionRecognitionPredictionParams=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.params.VideoActionRecognitionPredictionParams} VideoActionRecognitionPredictionParams instance + */ + VideoActionRecognitionPredictionParams.create = function create(properties) { + return new VideoActionRecognitionPredictionParams(properties); + }; + + /** + * Encodes the specified VideoActionRecognitionPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.params.VideoActionRecognitionPredictionParams.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.VideoActionRecognitionPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.params.IVideoActionRecognitionPredictionParams} message VideoActionRecognitionPredictionParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoActionRecognitionPredictionParams.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.maxPredictions != null && Object.hasOwnProperty.call(message, "maxPredictions")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxPredictions); + return writer; + }; + + /** + * Encodes the specified VideoActionRecognitionPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.params.VideoActionRecognitionPredictionParams.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.VideoActionRecognitionPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.params.IVideoActionRecognitionPredictionParams} message VideoActionRecognitionPredictionParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoActionRecognitionPredictionParams.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VideoActionRecognitionPredictionParams message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.VideoActionRecognitionPredictionParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.params.VideoActionRecognitionPredictionParams} VideoActionRecognitionPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoActionRecognitionPredictionParams.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.params.VideoActionRecognitionPredictionParams(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.confidenceThreshold = reader.float(); + break; + case 2: + message.maxPredictions = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VideoActionRecognitionPredictionParams message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.VideoActionRecognitionPredictionParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.params.VideoActionRecognitionPredictionParams} VideoActionRecognitionPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoActionRecognitionPredictionParams.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VideoActionRecognitionPredictionParams message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.VideoActionRecognitionPredictionParams + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VideoActionRecognitionPredictionParams.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.maxPredictions != null && message.hasOwnProperty("maxPredictions")) + if (!$util.isInteger(message.maxPredictions)) + return "maxPredictions: integer expected"; + return null; + }; + + /** + * Creates a VideoActionRecognitionPredictionParams message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.VideoActionRecognitionPredictionParams + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.params.VideoActionRecognitionPredictionParams} VideoActionRecognitionPredictionParams + */ + VideoActionRecognitionPredictionParams.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.predict.params.VideoActionRecognitionPredictionParams) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.params.VideoActionRecognitionPredictionParams(); + if (object.confidenceThreshold != null) + message.confidenceThreshold = Number(object.confidenceThreshold); + if (object.maxPredictions != null) + message.maxPredictions = object.maxPredictions | 0; + return message; + }; + + /** + * Creates a plain object from a VideoActionRecognitionPredictionParams message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.VideoActionRecognitionPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.params.VideoActionRecognitionPredictionParams} message VideoActionRecognitionPredictionParams + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VideoActionRecognitionPredictionParams.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.confidenceThreshold = 0; + object.maxPredictions = 0; + } + if (message.confidenceThreshold != null && message.hasOwnProperty("confidenceThreshold")) + object.confidenceThreshold = options.json && !isFinite(message.confidenceThreshold) ? String(message.confidenceThreshold) : message.confidenceThreshold; + if (message.maxPredictions != null && message.hasOwnProperty("maxPredictions")) + object.maxPredictions = message.maxPredictions; + return object; + }; + + /** + * Converts this VideoActionRecognitionPredictionParams to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.VideoActionRecognitionPredictionParams + * @instance + * @returns {Object.} JSON object + */ + VideoActionRecognitionPredictionParams.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return VideoActionRecognitionPredictionParams; + })(); + + params.VideoClassificationPredictionParams = (function() { + + /** + * Properties of a VideoClassificationPredictionParams. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params + * @interface IVideoClassificationPredictionParams + * @property {number|null} [confidenceThreshold] VideoClassificationPredictionParams confidenceThreshold + * @property {number|null} [maxPredictions] VideoClassificationPredictionParams maxPredictions + * @property {boolean|null} [segmentClassification] VideoClassificationPredictionParams segmentClassification + * @property {boolean|null} [shotClassification] VideoClassificationPredictionParams shotClassification + * @property {boolean|null} [oneSecIntervalClassification] VideoClassificationPredictionParams oneSecIntervalClassification + */ + + /** + * Constructs a new VideoClassificationPredictionParams. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params + * @classdesc Represents a VideoClassificationPredictionParams. + * @implements IVideoClassificationPredictionParams + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.predict.params.IVideoClassificationPredictionParams=} [properties] Properties to set + */ + function VideoClassificationPredictionParams(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]]; + } + + /** + * VideoClassificationPredictionParams confidenceThreshold. + * @member {number} confidenceThreshold + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.VideoClassificationPredictionParams + * @instance + */ + VideoClassificationPredictionParams.prototype.confidenceThreshold = 0; + + /** + * VideoClassificationPredictionParams maxPredictions. + * @member {number} maxPredictions + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.VideoClassificationPredictionParams + * @instance + */ + VideoClassificationPredictionParams.prototype.maxPredictions = 0; + + /** + * VideoClassificationPredictionParams segmentClassification. + * @member {boolean} segmentClassification + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.VideoClassificationPredictionParams + * @instance + */ + VideoClassificationPredictionParams.prototype.segmentClassification = false; + + /** + * VideoClassificationPredictionParams shotClassification. + * @member {boolean} shotClassification + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.VideoClassificationPredictionParams + * @instance + */ + VideoClassificationPredictionParams.prototype.shotClassification = false; + + /** + * VideoClassificationPredictionParams oneSecIntervalClassification. + * @member {boolean} oneSecIntervalClassification + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.VideoClassificationPredictionParams + * @instance + */ + VideoClassificationPredictionParams.prototype.oneSecIntervalClassification = false; + + /** + * Creates a new VideoClassificationPredictionParams instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.VideoClassificationPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.params.IVideoClassificationPredictionParams=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.params.VideoClassificationPredictionParams} VideoClassificationPredictionParams instance + */ + VideoClassificationPredictionParams.create = function create(properties) { + return new VideoClassificationPredictionParams(properties); + }; + + /** + * Encodes the specified VideoClassificationPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.params.VideoClassificationPredictionParams.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.VideoClassificationPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.params.IVideoClassificationPredictionParams} message VideoClassificationPredictionParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoClassificationPredictionParams.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.maxPredictions != null && Object.hasOwnProperty.call(message, "maxPredictions")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxPredictions); + if (message.segmentClassification != null && Object.hasOwnProperty.call(message, "segmentClassification")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.segmentClassification); + if (message.shotClassification != null && Object.hasOwnProperty.call(message, "shotClassification")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.shotClassification); + if (message.oneSecIntervalClassification != null && Object.hasOwnProperty.call(message, "oneSecIntervalClassification")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.oneSecIntervalClassification); + return writer; + }; + + /** + * Encodes the specified VideoClassificationPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.params.VideoClassificationPredictionParams.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.VideoClassificationPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.params.IVideoClassificationPredictionParams} message VideoClassificationPredictionParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoClassificationPredictionParams.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VideoClassificationPredictionParams message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.VideoClassificationPredictionParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.params.VideoClassificationPredictionParams} VideoClassificationPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoClassificationPredictionParams.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.params.VideoClassificationPredictionParams(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.confidenceThreshold = reader.float(); + break; + case 2: + message.maxPredictions = reader.int32(); + break; + case 3: + message.segmentClassification = reader.bool(); + break; + case 4: + message.shotClassification = reader.bool(); + break; + case 5: + message.oneSecIntervalClassification = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VideoClassificationPredictionParams message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.VideoClassificationPredictionParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.params.VideoClassificationPredictionParams} VideoClassificationPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoClassificationPredictionParams.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VideoClassificationPredictionParams message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.VideoClassificationPredictionParams + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VideoClassificationPredictionParams.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.maxPredictions != null && message.hasOwnProperty("maxPredictions")) + if (!$util.isInteger(message.maxPredictions)) + return "maxPredictions: integer expected"; + if (message.segmentClassification != null && message.hasOwnProperty("segmentClassification")) + if (typeof message.segmentClassification !== "boolean") + return "segmentClassification: boolean expected"; + if (message.shotClassification != null && message.hasOwnProperty("shotClassification")) + if (typeof message.shotClassification !== "boolean") + return "shotClassification: boolean expected"; + if (message.oneSecIntervalClassification != null && message.hasOwnProperty("oneSecIntervalClassification")) + if (typeof message.oneSecIntervalClassification !== "boolean") + return "oneSecIntervalClassification: boolean expected"; + return null; + }; + + /** + * Creates a VideoClassificationPredictionParams message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.VideoClassificationPredictionParams + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.params.VideoClassificationPredictionParams} VideoClassificationPredictionParams + */ + VideoClassificationPredictionParams.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.predict.params.VideoClassificationPredictionParams) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.params.VideoClassificationPredictionParams(); + if (object.confidenceThreshold != null) + message.confidenceThreshold = Number(object.confidenceThreshold); + if (object.maxPredictions != null) + message.maxPredictions = object.maxPredictions | 0; + if (object.segmentClassification != null) + message.segmentClassification = Boolean(object.segmentClassification); + if (object.shotClassification != null) + message.shotClassification = Boolean(object.shotClassification); + if (object.oneSecIntervalClassification != null) + message.oneSecIntervalClassification = Boolean(object.oneSecIntervalClassification); + return message; + }; + + /** + * Creates a plain object from a VideoClassificationPredictionParams message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.VideoClassificationPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.params.VideoClassificationPredictionParams} message VideoClassificationPredictionParams + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VideoClassificationPredictionParams.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.confidenceThreshold = 0; + object.maxPredictions = 0; + object.segmentClassification = false; + object.shotClassification = false; + object.oneSecIntervalClassification = false; + } + if (message.confidenceThreshold != null && message.hasOwnProperty("confidenceThreshold")) + object.confidenceThreshold = options.json && !isFinite(message.confidenceThreshold) ? String(message.confidenceThreshold) : message.confidenceThreshold; + if (message.maxPredictions != null && message.hasOwnProperty("maxPredictions")) + object.maxPredictions = message.maxPredictions; + if (message.segmentClassification != null && message.hasOwnProperty("segmentClassification")) + object.segmentClassification = message.segmentClassification; + if (message.shotClassification != null && message.hasOwnProperty("shotClassification")) + object.shotClassification = message.shotClassification; + if (message.oneSecIntervalClassification != null && message.hasOwnProperty("oneSecIntervalClassification")) + object.oneSecIntervalClassification = message.oneSecIntervalClassification; + return object; + }; + + /** + * Converts this VideoClassificationPredictionParams to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.VideoClassificationPredictionParams + * @instance + * @returns {Object.} JSON object + */ + VideoClassificationPredictionParams.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return VideoClassificationPredictionParams; + })(); + + params.VideoObjectTrackingPredictionParams = (function() { + + /** + * Properties of a VideoObjectTrackingPredictionParams. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params + * @interface IVideoObjectTrackingPredictionParams + * @property {number|null} [confidenceThreshold] VideoObjectTrackingPredictionParams confidenceThreshold + * @property {number|null} [maxPredictions] VideoObjectTrackingPredictionParams maxPredictions + * @property {number|null} [minBoundingBoxSize] VideoObjectTrackingPredictionParams minBoundingBoxSize + */ + + /** + * Constructs a new VideoObjectTrackingPredictionParams. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params + * @classdesc Represents a VideoObjectTrackingPredictionParams. + * @implements IVideoObjectTrackingPredictionParams + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.predict.params.IVideoObjectTrackingPredictionParams=} [properties] Properties to set + */ + function VideoObjectTrackingPredictionParams(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]]; + } + + /** + * VideoObjectTrackingPredictionParams confidenceThreshold. + * @member {number} confidenceThreshold + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.VideoObjectTrackingPredictionParams + * @instance + */ + VideoObjectTrackingPredictionParams.prototype.confidenceThreshold = 0; + + /** + * VideoObjectTrackingPredictionParams maxPredictions. + * @member {number} maxPredictions + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.VideoObjectTrackingPredictionParams + * @instance + */ + VideoObjectTrackingPredictionParams.prototype.maxPredictions = 0; + + /** + * VideoObjectTrackingPredictionParams minBoundingBoxSize. + * @member {number} minBoundingBoxSize + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.VideoObjectTrackingPredictionParams + * @instance + */ + VideoObjectTrackingPredictionParams.prototype.minBoundingBoxSize = 0; + + /** + * Creates a new VideoObjectTrackingPredictionParams instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.VideoObjectTrackingPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.params.IVideoObjectTrackingPredictionParams=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.params.VideoObjectTrackingPredictionParams} VideoObjectTrackingPredictionParams instance + */ + VideoObjectTrackingPredictionParams.create = function create(properties) { + return new VideoObjectTrackingPredictionParams(properties); + }; + + /** + * Encodes the specified VideoObjectTrackingPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.params.VideoObjectTrackingPredictionParams.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.VideoObjectTrackingPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.params.IVideoObjectTrackingPredictionParams} message VideoObjectTrackingPredictionParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoObjectTrackingPredictionParams.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.maxPredictions != null && Object.hasOwnProperty.call(message, "maxPredictions")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxPredictions); + if (message.minBoundingBoxSize != null && Object.hasOwnProperty.call(message, "minBoundingBoxSize")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.minBoundingBoxSize); + return writer; + }; + + /** + * Encodes the specified VideoObjectTrackingPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.params.VideoObjectTrackingPredictionParams.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.VideoObjectTrackingPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.params.IVideoObjectTrackingPredictionParams} message VideoObjectTrackingPredictionParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoObjectTrackingPredictionParams.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VideoObjectTrackingPredictionParams message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.VideoObjectTrackingPredictionParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.params.VideoObjectTrackingPredictionParams} VideoObjectTrackingPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoObjectTrackingPredictionParams.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.params.VideoObjectTrackingPredictionParams(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.confidenceThreshold = reader.float(); + break; + case 2: + message.maxPredictions = reader.int32(); + break; + case 3: + message.minBoundingBoxSize = reader.float(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VideoObjectTrackingPredictionParams message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.VideoObjectTrackingPredictionParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.params.VideoObjectTrackingPredictionParams} VideoObjectTrackingPredictionParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoObjectTrackingPredictionParams.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VideoObjectTrackingPredictionParams message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.VideoObjectTrackingPredictionParams + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VideoObjectTrackingPredictionParams.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.maxPredictions != null && message.hasOwnProperty("maxPredictions")) + if (!$util.isInteger(message.maxPredictions)) + return "maxPredictions: integer expected"; + if (message.minBoundingBoxSize != null && message.hasOwnProperty("minBoundingBoxSize")) + if (typeof message.minBoundingBoxSize !== "number") + return "minBoundingBoxSize: number expected"; + return null; + }; + + /** + * Creates a VideoObjectTrackingPredictionParams message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.VideoObjectTrackingPredictionParams + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.params.VideoObjectTrackingPredictionParams} VideoObjectTrackingPredictionParams + */ + VideoObjectTrackingPredictionParams.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.predict.params.VideoObjectTrackingPredictionParams) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.params.VideoObjectTrackingPredictionParams(); + if (object.confidenceThreshold != null) + message.confidenceThreshold = Number(object.confidenceThreshold); + if (object.maxPredictions != null) + message.maxPredictions = object.maxPredictions | 0; + if (object.minBoundingBoxSize != null) + message.minBoundingBoxSize = Number(object.minBoundingBoxSize); + return message; + }; + + /** + * Creates a plain object from a VideoObjectTrackingPredictionParams message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.VideoObjectTrackingPredictionParams + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.params.VideoObjectTrackingPredictionParams} message VideoObjectTrackingPredictionParams + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VideoObjectTrackingPredictionParams.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.confidenceThreshold = 0; + object.maxPredictions = 0; + object.minBoundingBoxSize = 0; + } + if (message.confidenceThreshold != null && message.hasOwnProperty("confidenceThreshold")) + object.confidenceThreshold = options.json && !isFinite(message.confidenceThreshold) ? String(message.confidenceThreshold) : message.confidenceThreshold; + if (message.maxPredictions != null && message.hasOwnProperty("maxPredictions")) + object.maxPredictions = message.maxPredictions; + if (message.minBoundingBoxSize != null && message.hasOwnProperty("minBoundingBoxSize")) + object.minBoundingBoxSize = options.json && !isFinite(message.minBoundingBoxSize) ? String(message.minBoundingBoxSize) : message.minBoundingBoxSize; + return object; + }; + + /** + * Converts this VideoObjectTrackingPredictionParams to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.params.VideoObjectTrackingPredictionParams + * @instance + * @returns {Object.} JSON object + */ + VideoObjectTrackingPredictionParams.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return VideoObjectTrackingPredictionParams; + })(); + + return params; + })(); + + predict.prediction = (function() { + + /** + * Namespace prediction. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict + * @namespace + */ + var prediction = {}; + + prediction.ClassificationPredictionResult = (function() { + + /** + * Properties of a ClassificationPredictionResult. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction + * @interface IClassificationPredictionResult + * @property {Array.|null} [ids] ClassificationPredictionResult ids + * @property {Array.|null} [displayNames] ClassificationPredictionResult displayNames + * @property {Array.|null} [confidences] ClassificationPredictionResult confidences + */ + + /** + * Constructs a new ClassificationPredictionResult. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction + * @classdesc Represents a ClassificationPredictionResult. + * @implements IClassificationPredictionResult + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.IClassificationPredictionResult=} [properties] Properties to set + */ + function ClassificationPredictionResult(properties) { + this.ids = []; + this.displayNames = []; + this.confidences = []; + 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]]; + } + + /** + * ClassificationPredictionResult ids. + * @member {Array.} ids + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.ClassificationPredictionResult + * @instance + */ + ClassificationPredictionResult.prototype.ids = $util.emptyArray; + + /** + * ClassificationPredictionResult displayNames. + * @member {Array.} displayNames + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.ClassificationPredictionResult + * @instance + */ + ClassificationPredictionResult.prototype.displayNames = $util.emptyArray; + + /** + * ClassificationPredictionResult confidences. + * @member {Array.} confidences + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.ClassificationPredictionResult + * @instance + */ + ClassificationPredictionResult.prototype.confidences = $util.emptyArray; + + /** + * Creates a new ClassificationPredictionResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.ClassificationPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.IClassificationPredictionResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.ClassificationPredictionResult} ClassificationPredictionResult instance + */ + ClassificationPredictionResult.create = function create(properties) { + return new ClassificationPredictionResult(properties); + }; + + /** + * Encodes the specified ClassificationPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.ClassificationPredictionResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.ClassificationPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.IClassificationPredictionResult} message ClassificationPredictionResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ClassificationPredictionResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.ids != null && message.ids.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.ids.length; ++i) + writer.int64(message.ids[i]); + writer.ldelim(); + } + if (message.displayNames != null && message.displayNames.length) + for (var i = 0; i < message.displayNames.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayNames[i]); + if (message.confidences != null && message.confidences.length) { + writer.uint32(/* id 3, wireType 2 =*/26).fork(); + for (var i = 0; i < message.confidences.length; ++i) + writer.float(message.confidences[i]); + writer.ldelim(); + } + return writer; + }; + + /** + * Encodes the specified ClassificationPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.ClassificationPredictionResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.ClassificationPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.IClassificationPredictionResult} message ClassificationPredictionResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ClassificationPredictionResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ClassificationPredictionResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.ClassificationPredictionResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.ClassificationPredictionResult} ClassificationPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ClassificationPredictionResult.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.ClassificationPredictionResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.ids && message.ids.length)) + message.ids = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.ids.push(reader.int64()); + } else + message.ids.push(reader.int64()); + break; + case 2: + if (!(message.displayNames && message.displayNames.length)) + message.displayNames = []; + message.displayNames.push(reader.string()); + break; + case 3: + if (!(message.confidences && message.confidences.length)) + message.confidences = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.confidences.push(reader.float()); + } else + message.confidences.push(reader.float()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ClassificationPredictionResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.ClassificationPredictionResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.ClassificationPredictionResult} ClassificationPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ClassificationPredictionResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ClassificationPredictionResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.ClassificationPredictionResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ClassificationPredictionResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.ids != null && message.hasOwnProperty("ids")) { + if (!Array.isArray(message.ids)) + return "ids: array expected"; + for (var i = 0; i < message.ids.length; ++i) + if (!$util.isInteger(message.ids[i]) && !(message.ids[i] && $util.isInteger(message.ids[i].low) && $util.isInteger(message.ids[i].high))) + return "ids: integer|Long[] expected"; + } + if (message.displayNames != null && message.hasOwnProperty("displayNames")) { + if (!Array.isArray(message.displayNames)) + return "displayNames: array expected"; + for (var i = 0; i < message.displayNames.length; ++i) + if (!$util.isString(message.displayNames[i])) + return "displayNames: string[] expected"; + } + if (message.confidences != null && message.hasOwnProperty("confidences")) { + if (!Array.isArray(message.confidences)) + return "confidences: array expected"; + for (var i = 0; i < message.confidences.length; ++i) + if (typeof message.confidences[i] !== "number") + return "confidences: number[] expected"; + } + return null; + }; + + /** + * Creates a ClassificationPredictionResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.ClassificationPredictionResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.ClassificationPredictionResult} ClassificationPredictionResult + */ + ClassificationPredictionResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.ClassificationPredictionResult) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.ClassificationPredictionResult(); + if (object.ids) { + if (!Array.isArray(object.ids)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.predict.prediction.ClassificationPredictionResult.ids: array expected"); + message.ids = []; + for (var i = 0; i < object.ids.length; ++i) + if ($util.Long) + (message.ids[i] = $util.Long.fromValue(object.ids[i])).unsigned = false; + else if (typeof object.ids[i] === "string") + message.ids[i] = parseInt(object.ids[i], 10); + else if (typeof object.ids[i] === "number") + message.ids[i] = object.ids[i]; + else if (typeof object.ids[i] === "object") + message.ids[i] = new $util.LongBits(object.ids[i].low >>> 0, object.ids[i].high >>> 0).toNumber(); + } + if (object.displayNames) { + if (!Array.isArray(object.displayNames)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.predict.prediction.ClassificationPredictionResult.displayNames: array expected"); + message.displayNames = []; + for (var i = 0; i < object.displayNames.length; ++i) + message.displayNames[i] = String(object.displayNames[i]); + } + if (object.confidences) { + if (!Array.isArray(object.confidences)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.predict.prediction.ClassificationPredictionResult.confidences: array expected"); + message.confidences = []; + for (var i = 0; i < object.confidences.length; ++i) + message.confidences[i] = Number(object.confidences[i]); + } + return message; + }; + + /** + * Creates a plain object from a ClassificationPredictionResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.ClassificationPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.ClassificationPredictionResult} message ClassificationPredictionResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ClassificationPredictionResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.ids = []; + object.displayNames = []; + object.confidences = []; + } + if (message.ids && message.ids.length) { + object.ids = []; + for (var j = 0; j < message.ids.length; ++j) + if (typeof message.ids[j] === "number") + object.ids[j] = options.longs === String ? String(message.ids[j]) : message.ids[j]; + else + object.ids[j] = options.longs === String ? $util.Long.prototype.toString.call(message.ids[j]) : options.longs === Number ? new $util.LongBits(message.ids[j].low >>> 0, message.ids[j].high >>> 0).toNumber() : message.ids[j]; + } + if (message.displayNames && message.displayNames.length) { + object.displayNames = []; + for (var j = 0; j < message.displayNames.length; ++j) + object.displayNames[j] = message.displayNames[j]; + } + if (message.confidences && message.confidences.length) { + object.confidences = []; + for (var j = 0; j < message.confidences.length; ++j) + object.confidences[j] = options.json && !isFinite(message.confidences[j]) ? String(message.confidences[j]) : message.confidences[j]; + } + return object; + }; + + /** + * Converts this ClassificationPredictionResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.ClassificationPredictionResult + * @instance + * @returns {Object.} JSON object + */ + ClassificationPredictionResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ClassificationPredictionResult; + })(); + + prediction.ImageObjectDetectionPredictionResult = (function() { + + /** + * Properties of an ImageObjectDetectionPredictionResult. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction + * @interface IImageObjectDetectionPredictionResult + * @property {Array.|null} [ids] ImageObjectDetectionPredictionResult ids + * @property {Array.|null} [displayNames] ImageObjectDetectionPredictionResult displayNames + * @property {Array.|null} [confidences] ImageObjectDetectionPredictionResult confidences + * @property {Array.|null} [bboxes] ImageObjectDetectionPredictionResult bboxes + */ + + /** + * Constructs a new ImageObjectDetectionPredictionResult. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction + * @classdesc Represents an ImageObjectDetectionPredictionResult. + * @implements IImageObjectDetectionPredictionResult + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.IImageObjectDetectionPredictionResult=} [properties] Properties to set + */ + function ImageObjectDetectionPredictionResult(properties) { + this.ids = []; + this.displayNames = []; + this.confidences = []; + this.bboxes = []; + 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]]; + } + + /** + * ImageObjectDetectionPredictionResult ids. + * @member {Array.} ids + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult + * @instance + */ + ImageObjectDetectionPredictionResult.prototype.ids = $util.emptyArray; + + /** + * ImageObjectDetectionPredictionResult displayNames. + * @member {Array.} displayNames + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult + * @instance + */ + ImageObjectDetectionPredictionResult.prototype.displayNames = $util.emptyArray; + + /** + * ImageObjectDetectionPredictionResult confidences. + * @member {Array.} confidences + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult + * @instance + */ + ImageObjectDetectionPredictionResult.prototype.confidences = $util.emptyArray; + + /** + * ImageObjectDetectionPredictionResult bboxes. + * @member {Array.} bboxes + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult + * @instance + */ + ImageObjectDetectionPredictionResult.prototype.bboxes = $util.emptyArray; + + /** + * Creates a new ImageObjectDetectionPredictionResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.IImageObjectDetectionPredictionResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult} ImageObjectDetectionPredictionResult instance + */ + ImageObjectDetectionPredictionResult.create = function create(properties) { + return new ImageObjectDetectionPredictionResult(properties); + }; + + /** + * Encodes the specified ImageObjectDetectionPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.IImageObjectDetectionPredictionResult} message ImageObjectDetectionPredictionResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageObjectDetectionPredictionResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.ids != null && message.ids.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.ids.length; ++i) + writer.int64(message.ids[i]); + writer.ldelim(); + } + if (message.displayNames != null && message.displayNames.length) + for (var i = 0; i < message.displayNames.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayNames[i]); + if (message.confidences != null && message.confidences.length) { + writer.uint32(/* id 3, wireType 2 =*/26).fork(); + for (var i = 0; i < message.confidences.length; ++i) + writer.float(message.confidences[i]); + writer.ldelim(); + } + if (message.bboxes != null && message.bboxes.length) + for (var i = 0; i < message.bboxes.length; ++i) + $root.google.protobuf.ListValue.encode(message.bboxes[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ImageObjectDetectionPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.IImageObjectDetectionPredictionResult} message ImageObjectDetectionPredictionResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageObjectDetectionPredictionResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ImageObjectDetectionPredictionResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult} ImageObjectDetectionPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageObjectDetectionPredictionResult.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.ids && message.ids.length)) + message.ids = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.ids.push(reader.int64()); + } else + message.ids.push(reader.int64()); + break; + case 2: + if (!(message.displayNames && message.displayNames.length)) + message.displayNames = []; + message.displayNames.push(reader.string()); + break; + case 3: + if (!(message.confidences && message.confidences.length)) + message.confidences = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.confidences.push(reader.float()); + } else + message.confidences.push(reader.float()); + break; + case 4: + if (!(message.bboxes && message.bboxes.length)) + message.bboxes = []; + message.bboxes.push($root.google.protobuf.ListValue.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ImageObjectDetectionPredictionResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult} ImageObjectDetectionPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageObjectDetectionPredictionResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ImageObjectDetectionPredictionResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ImageObjectDetectionPredictionResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.ids != null && message.hasOwnProperty("ids")) { + if (!Array.isArray(message.ids)) + return "ids: array expected"; + for (var i = 0; i < message.ids.length; ++i) + if (!$util.isInteger(message.ids[i]) && !(message.ids[i] && $util.isInteger(message.ids[i].low) && $util.isInteger(message.ids[i].high))) + return "ids: integer|Long[] expected"; + } + if (message.displayNames != null && message.hasOwnProperty("displayNames")) { + if (!Array.isArray(message.displayNames)) + return "displayNames: array expected"; + for (var i = 0; i < message.displayNames.length; ++i) + if (!$util.isString(message.displayNames[i])) + return "displayNames: string[] expected"; + } + if (message.confidences != null && message.hasOwnProperty("confidences")) { + if (!Array.isArray(message.confidences)) + return "confidences: array expected"; + for (var i = 0; i < message.confidences.length; ++i) + if (typeof message.confidences[i] !== "number") + return "confidences: number[] expected"; + } + if (message.bboxes != null && message.hasOwnProperty("bboxes")) { + if (!Array.isArray(message.bboxes)) + return "bboxes: array expected"; + for (var i = 0; i < message.bboxes.length; ++i) { + var error = $root.google.protobuf.ListValue.verify(message.bboxes[i]); + if (error) + return "bboxes." + error; + } + } + return null; + }; + + /** + * Creates an ImageObjectDetectionPredictionResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult} ImageObjectDetectionPredictionResult + */ + ImageObjectDetectionPredictionResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult(); + if (object.ids) { + if (!Array.isArray(object.ids)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult.ids: array expected"); + message.ids = []; + for (var i = 0; i < object.ids.length; ++i) + if ($util.Long) + (message.ids[i] = $util.Long.fromValue(object.ids[i])).unsigned = false; + else if (typeof object.ids[i] === "string") + message.ids[i] = parseInt(object.ids[i], 10); + else if (typeof object.ids[i] === "number") + message.ids[i] = object.ids[i]; + else if (typeof object.ids[i] === "object") + message.ids[i] = new $util.LongBits(object.ids[i].low >>> 0, object.ids[i].high >>> 0).toNumber(); + } + if (object.displayNames) { + if (!Array.isArray(object.displayNames)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult.displayNames: array expected"); + message.displayNames = []; + for (var i = 0; i < object.displayNames.length; ++i) + message.displayNames[i] = String(object.displayNames[i]); + } + if (object.confidences) { + if (!Array.isArray(object.confidences)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult.confidences: array expected"); + message.confidences = []; + for (var i = 0; i < object.confidences.length; ++i) + message.confidences[i] = Number(object.confidences[i]); + } + if (object.bboxes) { + if (!Array.isArray(object.bboxes)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult.bboxes: array expected"); + message.bboxes = []; + for (var i = 0; i < object.bboxes.length; ++i) { + if (typeof object.bboxes[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult.bboxes: object expected"); + message.bboxes[i] = $root.google.protobuf.ListValue.fromObject(object.bboxes[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an ImageObjectDetectionPredictionResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult} message ImageObjectDetectionPredictionResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ImageObjectDetectionPredictionResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.ids = []; + object.displayNames = []; + object.confidences = []; + object.bboxes = []; + } + if (message.ids && message.ids.length) { + object.ids = []; + for (var j = 0; j < message.ids.length; ++j) + if (typeof message.ids[j] === "number") + object.ids[j] = options.longs === String ? String(message.ids[j]) : message.ids[j]; + else + object.ids[j] = options.longs === String ? $util.Long.prototype.toString.call(message.ids[j]) : options.longs === Number ? new $util.LongBits(message.ids[j].low >>> 0, message.ids[j].high >>> 0).toNumber() : message.ids[j]; + } + if (message.displayNames && message.displayNames.length) { + object.displayNames = []; + for (var j = 0; j < message.displayNames.length; ++j) + object.displayNames[j] = message.displayNames[j]; + } + if (message.confidences && message.confidences.length) { + object.confidences = []; + for (var j = 0; j < message.confidences.length; ++j) + object.confidences[j] = options.json && !isFinite(message.confidences[j]) ? String(message.confidences[j]) : message.confidences[j]; + } + if (message.bboxes && message.bboxes.length) { + object.bboxes = []; + for (var j = 0; j < message.bboxes.length; ++j) + object.bboxes[j] = $root.google.protobuf.ListValue.toObject(message.bboxes[j], options); + } + return object; + }; + + /** + * Converts this ImageObjectDetectionPredictionResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult + * @instance + * @returns {Object.} JSON object + */ + ImageObjectDetectionPredictionResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ImageObjectDetectionPredictionResult; + })(); + + prediction.ImageSegmentationPredictionResult = (function() { + + /** + * Properties of an ImageSegmentationPredictionResult. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction + * @interface IImageSegmentationPredictionResult + * @property {Uint8Array|null} [categoryMask] ImageSegmentationPredictionResult categoryMask + * @property {Uint8Array|null} [confidenceMask] ImageSegmentationPredictionResult confidenceMask + */ + + /** + * Constructs a new ImageSegmentationPredictionResult. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction + * @classdesc Represents an ImageSegmentationPredictionResult. + * @implements IImageSegmentationPredictionResult + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.IImageSegmentationPredictionResult=} [properties] Properties to set + */ + function ImageSegmentationPredictionResult(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]]; + } + + /** + * ImageSegmentationPredictionResult categoryMask. + * @member {Uint8Array} categoryMask + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageSegmentationPredictionResult + * @instance + */ + ImageSegmentationPredictionResult.prototype.categoryMask = $util.newBuffer([]); + + /** + * ImageSegmentationPredictionResult confidenceMask. + * @member {Uint8Array} confidenceMask + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageSegmentationPredictionResult + * @instance + */ + ImageSegmentationPredictionResult.prototype.confidenceMask = $util.newBuffer([]); + + /** + * Creates a new ImageSegmentationPredictionResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageSegmentationPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.IImageSegmentationPredictionResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageSegmentationPredictionResult} ImageSegmentationPredictionResult instance + */ + ImageSegmentationPredictionResult.create = function create(properties) { + return new ImageSegmentationPredictionResult(properties); + }; + + /** + * Encodes the specified ImageSegmentationPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageSegmentationPredictionResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageSegmentationPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.IImageSegmentationPredictionResult} message ImageSegmentationPredictionResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageSegmentationPredictionResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.categoryMask != null && Object.hasOwnProperty.call(message, "categoryMask")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.categoryMask); + if (message.confidenceMask != null && Object.hasOwnProperty.call(message, "confidenceMask")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.confidenceMask); + return writer; + }; + + /** + * Encodes the specified ImageSegmentationPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageSegmentationPredictionResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageSegmentationPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.IImageSegmentationPredictionResult} message ImageSegmentationPredictionResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImageSegmentationPredictionResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ImageSegmentationPredictionResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageSegmentationPredictionResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageSegmentationPredictionResult} ImageSegmentationPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageSegmentationPredictionResult.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageSegmentationPredictionResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.categoryMask = reader.bytes(); + break; + case 2: + message.confidenceMask = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ImageSegmentationPredictionResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageSegmentationPredictionResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageSegmentationPredictionResult} ImageSegmentationPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImageSegmentationPredictionResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ImageSegmentationPredictionResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageSegmentationPredictionResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ImageSegmentationPredictionResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.categoryMask != null && message.hasOwnProperty("categoryMask")) + if (!(message.categoryMask && typeof message.categoryMask.length === "number" || $util.isString(message.categoryMask))) + return "categoryMask: buffer expected"; + if (message.confidenceMask != null && message.hasOwnProperty("confidenceMask")) + if (!(message.confidenceMask && typeof message.confidenceMask.length === "number" || $util.isString(message.confidenceMask))) + return "confidenceMask: buffer expected"; + return null; + }; + + /** + * Creates an ImageSegmentationPredictionResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageSegmentationPredictionResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageSegmentationPredictionResult} ImageSegmentationPredictionResult + */ + ImageSegmentationPredictionResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageSegmentationPredictionResult) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageSegmentationPredictionResult(); + if (object.categoryMask != null) + if (typeof object.categoryMask === "string") + $util.base64.decode(object.categoryMask, message.categoryMask = $util.newBuffer($util.base64.length(object.categoryMask)), 0); + else if (object.categoryMask.length) + message.categoryMask = object.categoryMask; + if (object.confidenceMask != null) + if (typeof object.confidenceMask === "string") + $util.base64.decode(object.confidenceMask, message.confidenceMask = $util.newBuffer($util.base64.length(object.confidenceMask)), 0); + else if (object.confidenceMask.length) + message.confidenceMask = object.confidenceMask; + return message; + }; + + /** + * Creates a plain object from an ImageSegmentationPredictionResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageSegmentationPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageSegmentationPredictionResult} message ImageSegmentationPredictionResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ImageSegmentationPredictionResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if (options.bytes === String) + object.categoryMask = ""; + else { + object.categoryMask = []; + if (options.bytes !== Array) + object.categoryMask = $util.newBuffer(object.categoryMask); + } + if (options.bytes === String) + object.confidenceMask = ""; + else { + object.confidenceMask = []; + if (options.bytes !== Array) + object.confidenceMask = $util.newBuffer(object.confidenceMask); + } + } + if (message.categoryMask != null && message.hasOwnProperty("categoryMask")) + object.categoryMask = options.bytes === String ? $util.base64.encode(message.categoryMask, 0, message.categoryMask.length) : options.bytes === Array ? Array.prototype.slice.call(message.categoryMask) : message.categoryMask; + if (message.confidenceMask != null && message.hasOwnProperty("confidenceMask")) + object.confidenceMask = options.bytes === String ? $util.base64.encode(message.confidenceMask, 0, message.confidenceMask.length) : options.bytes === Array ? Array.prototype.slice.call(message.confidenceMask) : message.confidenceMask; + return object; + }; + + /** + * Converts this ImageSegmentationPredictionResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageSegmentationPredictionResult + * @instance + * @returns {Object.} JSON object + */ + ImageSegmentationPredictionResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ImageSegmentationPredictionResult; + })(); + + prediction.TabularClassificationPredictionResult = (function() { + + /** + * Properties of a TabularClassificationPredictionResult. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction + * @interface ITabularClassificationPredictionResult + * @property {Array.|null} [classes] TabularClassificationPredictionResult classes + * @property {Array.|null} [scores] TabularClassificationPredictionResult scores + */ + + /** + * Constructs a new TabularClassificationPredictionResult. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction + * @classdesc Represents a TabularClassificationPredictionResult. + * @implements ITabularClassificationPredictionResult + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITabularClassificationPredictionResult=} [properties] Properties to set + */ + function TabularClassificationPredictionResult(properties) { + this.classes = []; + this.scores = []; + 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]]; + } + + /** + * TabularClassificationPredictionResult classes. + * @member {Array.} classes + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularClassificationPredictionResult + * @instance + */ + TabularClassificationPredictionResult.prototype.classes = $util.emptyArray; + + /** + * TabularClassificationPredictionResult scores. + * @member {Array.} scores + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularClassificationPredictionResult + * @instance + */ + TabularClassificationPredictionResult.prototype.scores = $util.emptyArray; + + /** + * Creates a new TabularClassificationPredictionResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularClassificationPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITabularClassificationPredictionResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularClassificationPredictionResult} TabularClassificationPredictionResult instance + */ + TabularClassificationPredictionResult.create = function create(properties) { + return new TabularClassificationPredictionResult(properties); + }; + + /** + * Encodes the specified TabularClassificationPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularClassificationPredictionResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularClassificationPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITabularClassificationPredictionResult} message TabularClassificationPredictionResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TabularClassificationPredictionResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.classes != null && message.classes.length) + for (var i = 0; i < message.classes.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.classes[i]); + if (message.scores != null && message.scores.length) { + writer.uint32(/* id 2, wireType 2 =*/18).fork(); + for (var i = 0; i < message.scores.length; ++i) + writer.float(message.scores[i]); + writer.ldelim(); + } + return writer; + }; + + /** + * Encodes the specified TabularClassificationPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularClassificationPredictionResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularClassificationPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITabularClassificationPredictionResult} message TabularClassificationPredictionResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TabularClassificationPredictionResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TabularClassificationPredictionResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularClassificationPredictionResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularClassificationPredictionResult} TabularClassificationPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TabularClassificationPredictionResult.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularClassificationPredictionResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.classes && message.classes.length)) + message.classes = []; + message.classes.push(reader.string()); + break; + case 2: + if (!(message.scores && message.scores.length)) + message.scores = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.scores.push(reader.float()); + } else + message.scores.push(reader.float()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TabularClassificationPredictionResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularClassificationPredictionResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularClassificationPredictionResult} TabularClassificationPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TabularClassificationPredictionResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TabularClassificationPredictionResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularClassificationPredictionResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TabularClassificationPredictionResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.classes != null && message.hasOwnProperty("classes")) { + if (!Array.isArray(message.classes)) + return "classes: array expected"; + for (var i = 0; i < message.classes.length; ++i) + if (!$util.isString(message.classes[i])) + return "classes: string[] expected"; + } + if (message.scores != null && message.hasOwnProperty("scores")) { + if (!Array.isArray(message.scores)) + return "scores: array expected"; + for (var i = 0; i < message.scores.length; ++i) + if (typeof message.scores[i] !== "number") + return "scores: number[] expected"; + } + return null; + }; + + /** + * Creates a TabularClassificationPredictionResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularClassificationPredictionResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularClassificationPredictionResult} TabularClassificationPredictionResult + */ + TabularClassificationPredictionResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularClassificationPredictionResult) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularClassificationPredictionResult(); + if (object.classes) { + if (!Array.isArray(object.classes)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularClassificationPredictionResult.classes: array expected"); + message.classes = []; + for (var i = 0; i < object.classes.length; ++i) + message.classes[i] = String(object.classes[i]); + } + if (object.scores) { + if (!Array.isArray(object.scores)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularClassificationPredictionResult.scores: array expected"); + message.scores = []; + for (var i = 0; i < object.scores.length; ++i) + message.scores[i] = Number(object.scores[i]); + } + return message; + }; + + /** + * Creates a plain object from a TabularClassificationPredictionResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularClassificationPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularClassificationPredictionResult} message TabularClassificationPredictionResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TabularClassificationPredictionResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.classes = []; + object.scores = []; + } + if (message.classes && message.classes.length) { + object.classes = []; + for (var j = 0; j < message.classes.length; ++j) + object.classes[j] = message.classes[j]; + } + if (message.scores && message.scores.length) { + object.scores = []; + for (var j = 0; j < message.scores.length; ++j) + object.scores[j] = options.json && !isFinite(message.scores[j]) ? String(message.scores[j]) : message.scores[j]; + } + return object; + }; + + /** + * Converts this TabularClassificationPredictionResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularClassificationPredictionResult + * @instance + * @returns {Object.} JSON object + */ + TabularClassificationPredictionResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return TabularClassificationPredictionResult; + })(); + + prediction.TabularRegressionPredictionResult = (function() { + + /** + * Properties of a TabularRegressionPredictionResult. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction + * @interface ITabularRegressionPredictionResult + * @property {number|null} [value] TabularRegressionPredictionResult value + * @property {number|null} [lowerBound] TabularRegressionPredictionResult lowerBound + * @property {number|null} [upperBound] TabularRegressionPredictionResult upperBound + */ + + /** + * Constructs a new TabularRegressionPredictionResult. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction + * @classdesc Represents a TabularRegressionPredictionResult. + * @implements ITabularRegressionPredictionResult + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITabularRegressionPredictionResult=} [properties] Properties to set + */ + function TabularRegressionPredictionResult(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]]; + } + + /** + * TabularRegressionPredictionResult value. + * @member {number} value + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularRegressionPredictionResult + * @instance + */ + TabularRegressionPredictionResult.prototype.value = 0; + + /** + * TabularRegressionPredictionResult lowerBound. + * @member {number} lowerBound + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularRegressionPredictionResult + * @instance + */ + TabularRegressionPredictionResult.prototype.lowerBound = 0; + + /** + * TabularRegressionPredictionResult upperBound. + * @member {number} upperBound + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularRegressionPredictionResult + * @instance + */ + TabularRegressionPredictionResult.prototype.upperBound = 0; + + /** + * Creates a new TabularRegressionPredictionResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularRegressionPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITabularRegressionPredictionResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularRegressionPredictionResult} TabularRegressionPredictionResult instance + */ + TabularRegressionPredictionResult.create = function create(properties) { + return new TabularRegressionPredictionResult(properties); + }; + + /** + * Encodes the specified TabularRegressionPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularRegressionPredictionResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularRegressionPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITabularRegressionPredictionResult} message TabularRegressionPredictionResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TabularRegressionPredictionResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.value); + if (message.lowerBound != null && Object.hasOwnProperty.call(message, "lowerBound")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.lowerBound); + if (message.upperBound != null && Object.hasOwnProperty.call(message, "upperBound")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.upperBound); + return writer; + }; + + /** + * Encodes the specified TabularRegressionPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularRegressionPredictionResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularRegressionPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITabularRegressionPredictionResult} message TabularRegressionPredictionResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TabularRegressionPredictionResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TabularRegressionPredictionResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularRegressionPredictionResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularRegressionPredictionResult} TabularRegressionPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TabularRegressionPredictionResult.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularRegressionPredictionResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.float(); + break; + case 2: + message.lowerBound = reader.float(); + break; + case 3: + message.upperBound = reader.float(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TabularRegressionPredictionResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularRegressionPredictionResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularRegressionPredictionResult} TabularRegressionPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TabularRegressionPredictionResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TabularRegressionPredictionResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularRegressionPredictionResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TabularRegressionPredictionResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value !== "number") + return "value: number expected"; + if (message.lowerBound != null && message.hasOwnProperty("lowerBound")) + if (typeof message.lowerBound !== "number") + return "lowerBound: number expected"; + if (message.upperBound != null && message.hasOwnProperty("upperBound")) + if (typeof message.upperBound !== "number") + return "upperBound: number expected"; + return null; + }; + + /** + * Creates a TabularRegressionPredictionResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularRegressionPredictionResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularRegressionPredictionResult} TabularRegressionPredictionResult + */ + TabularRegressionPredictionResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularRegressionPredictionResult) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularRegressionPredictionResult(); + if (object.value != null) + message.value = Number(object.value); + if (object.lowerBound != null) + message.lowerBound = Number(object.lowerBound); + if (object.upperBound != null) + message.upperBound = Number(object.upperBound); + return message; + }; + + /** + * Creates a plain object from a TabularRegressionPredictionResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularRegressionPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularRegressionPredictionResult} message TabularRegressionPredictionResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TabularRegressionPredictionResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.value = 0; + object.lowerBound = 0; + object.upperBound = 0; + } + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; + if (message.lowerBound != null && message.hasOwnProperty("lowerBound")) + object.lowerBound = options.json && !isFinite(message.lowerBound) ? String(message.lowerBound) : message.lowerBound; + if (message.upperBound != null && message.hasOwnProperty("upperBound")) + object.upperBound = options.json && !isFinite(message.upperBound) ? String(message.upperBound) : message.upperBound; + return object; + }; + + /** + * Converts this TabularRegressionPredictionResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularRegressionPredictionResult + * @instance + * @returns {Object.} JSON object + */ + TabularRegressionPredictionResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return TabularRegressionPredictionResult; + })(); + + prediction.TextExtractionPredictionResult = (function() { + + /** + * Properties of a TextExtractionPredictionResult. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction + * @interface ITextExtractionPredictionResult + * @property {Array.|null} [ids] TextExtractionPredictionResult ids + * @property {Array.|null} [displayNames] TextExtractionPredictionResult displayNames + * @property {Array.|null} [textSegmentStartOffsets] TextExtractionPredictionResult textSegmentStartOffsets + * @property {Array.|null} [textSegmentEndOffsets] TextExtractionPredictionResult textSegmentEndOffsets + * @property {Array.|null} [confidences] TextExtractionPredictionResult confidences + */ + + /** + * Constructs a new TextExtractionPredictionResult. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction + * @classdesc Represents a TextExtractionPredictionResult. + * @implements ITextExtractionPredictionResult + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITextExtractionPredictionResult=} [properties] Properties to set + */ + function TextExtractionPredictionResult(properties) { + this.ids = []; + this.displayNames = []; + this.textSegmentStartOffsets = []; + this.textSegmentEndOffsets = []; + this.confidences = []; + 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]]; + } + + /** + * TextExtractionPredictionResult ids. + * @member {Array.} ids + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult + * @instance + */ + TextExtractionPredictionResult.prototype.ids = $util.emptyArray; + + /** + * TextExtractionPredictionResult displayNames. + * @member {Array.} displayNames + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult + * @instance + */ + TextExtractionPredictionResult.prototype.displayNames = $util.emptyArray; + + /** + * TextExtractionPredictionResult textSegmentStartOffsets. + * @member {Array.} textSegmentStartOffsets + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult + * @instance + */ + TextExtractionPredictionResult.prototype.textSegmentStartOffsets = $util.emptyArray; + + /** + * TextExtractionPredictionResult textSegmentEndOffsets. + * @member {Array.} textSegmentEndOffsets + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult + * @instance + */ + TextExtractionPredictionResult.prototype.textSegmentEndOffsets = $util.emptyArray; + + /** + * TextExtractionPredictionResult confidences. + * @member {Array.} confidences + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult + * @instance + */ + TextExtractionPredictionResult.prototype.confidences = $util.emptyArray; + + /** + * Creates a new TextExtractionPredictionResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITextExtractionPredictionResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult} TextExtractionPredictionResult instance + */ + TextExtractionPredictionResult.create = function create(properties) { + return new TextExtractionPredictionResult(properties); + }; + + /** + * Encodes the specified TextExtractionPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITextExtractionPredictionResult} message TextExtractionPredictionResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TextExtractionPredictionResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.ids != null && message.ids.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.ids.length; ++i) + writer.int64(message.ids[i]); + writer.ldelim(); + } + if (message.displayNames != null && message.displayNames.length) + for (var i = 0; i < message.displayNames.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayNames[i]); + if (message.textSegmentStartOffsets != null && message.textSegmentStartOffsets.length) { + writer.uint32(/* id 3, wireType 2 =*/26).fork(); + for (var i = 0; i < message.textSegmentStartOffsets.length; ++i) + writer.int64(message.textSegmentStartOffsets[i]); + writer.ldelim(); + } + if (message.textSegmentEndOffsets != null && message.textSegmentEndOffsets.length) { + writer.uint32(/* id 4, wireType 2 =*/34).fork(); + for (var i = 0; i < message.textSegmentEndOffsets.length; ++i) + writer.int64(message.textSegmentEndOffsets[i]); + writer.ldelim(); + } + if (message.confidences != null && message.confidences.length) { + writer.uint32(/* id 5, wireType 2 =*/42).fork(); + for (var i = 0; i < message.confidences.length; ++i) + writer.float(message.confidences[i]); + writer.ldelim(); + } + return writer; + }; + + /** + * Encodes the specified TextExtractionPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITextExtractionPredictionResult} message TextExtractionPredictionResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TextExtractionPredictionResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TextExtractionPredictionResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult} TextExtractionPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TextExtractionPredictionResult.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.ids && message.ids.length)) + message.ids = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.ids.push(reader.int64()); + } else + message.ids.push(reader.int64()); + break; + case 2: + if (!(message.displayNames && message.displayNames.length)) + message.displayNames = []; + message.displayNames.push(reader.string()); + break; + case 3: + if (!(message.textSegmentStartOffsets && message.textSegmentStartOffsets.length)) + message.textSegmentStartOffsets = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.textSegmentStartOffsets.push(reader.int64()); + } else + message.textSegmentStartOffsets.push(reader.int64()); + break; + case 4: + if (!(message.textSegmentEndOffsets && message.textSegmentEndOffsets.length)) + message.textSegmentEndOffsets = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.textSegmentEndOffsets.push(reader.int64()); + } else + message.textSegmentEndOffsets.push(reader.int64()); + break; + case 5: + if (!(message.confidences && message.confidences.length)) + message.confidences = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.confidences.push(reader.float()); + } else + message.confidences.push(reader.float()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TextExtractionPredictionResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult} TextExtractionPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TextExtractionPredictionResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TextExtractionPredictionResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TextExtractionPredictionResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.ids != null && message.hasOwnProperty("ids")) { + if (!Array.isArray(message.ids)) + return "ids: array expected"; + for (var i = 0; i < message.ids.length; ++i) + if (!$util.isInteger(message.ids[i]) && !(message.ids[i] && $util.isInteger(message.ids[i].low) && $util.isInteger(message.ids[i].high))) + return "ids: integer|Long[] expected"; + } + if (message.displayNames != null && message.hasOwnProperty("displayNames")) { + if (!Array.isArray(message.displayNames)) + return "displayNames: array expected"; + for (var i = 0; i < message.displayNames.length; ++i) + if (!$util.isString(message.displayNames[i])) + return "displayNames: string[] expected"; + } + if (message.textSegmentStartOffsets != null && message.hasOwnProperty("textSegmentStartOffsets")) { + if (!Array.isArray(message.textSegmentStartOffsets)) + return "textSegmentStartOffsets: array expected"; + for (var i = 0; i < message.textSegmentStartOffsets.length; ++i) + if (!$util.isInteger(message.textSegmentStartOffsets[i]) && !(message.textSegmentStartOffsets[i] && $util.isInteger(message.textSegmentStartOffsets[i].low) && $util.isInteger(message.textSegmentStartOffsets[i].high))) + return "textSegmentStartOffsets: integer|Long[] expected"; + } + if (message.textSegmentEndOffsets != null && message.hasOwnProperty("textSegmentEndOffsets")) { + if (!Array.isArray(message.textSegmentEndOffsets)) + return "textSegmentEndOffsets: array expected"; + for (var i = 0; i < message.textSegmentEndOffsets.length; ++i) + if (!$util.isInteger(message.textSegmentEndOffsets[i]) && !(message.textSegmentEndOffsets[i] && $util.isInteger(message.textSegmentEndOffsets[i].low) && $util.isInteger(message.textSegmentEndOffsets[i].high))) + return "textSegmentEndOffsets: integer|Long[] expected"; + } + if (message.confidences != null && message.hasOwnProperty("confidences")) { + if (!Array.isArray(message.confidences)) + return "confidences: array expected"; + for (var i = 0; i < message.confidences.length; ++i) + if (typeof message.confidences[i] !== "number") + return "confidences: number[] expected"; + } + return null; + }; + + /** + * Creates a TextExtractionPredictionResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult} TextExtractionPredictionResult + */ + TextExtractionPredictionResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult(); + if (object.ids) { + if (!Array.isArray(object.ids)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult.ids: array expected"); + message.ids = []; + for (var i = 0; i < object.ids.length; ++i) + if ($util.Long) + (message.ids[i] = $util.Long.fromValue(object.ids[i])).unsigned = false; + else if (typeof object.ids[i] === "string") + message.ids[i] = parseInt(object.ids[i], 10); + else if (typeof object.ids[i] === "number") + message.ids[i] = object.ids[i]; + else if (typeof object.ids[i] === "object") + message.ids[i] = new $util.LongBits(object.ids[i].low >>> 0, object.ids[i].high >>> 0).toNumber(); + } + if (object.displayNames) { + if (!Array.isArray(object.displayNames)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult.displayNames: array expected"); + message.displayNames = []; + for (var i = 0; i < object.displayNames.length; ++i) + message.displayNames[i] = String(object.displayNames[i]); + } + if (object.textSegmentStartOffsets) { + if (!Array.isArray(object.textSegmentStartOffsets)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult.textSegmentStartOffsets: array expected"); + message.textSegmentStartOffsets = []; + for (var i = 0; i < object.textSegmentStartOffsets.length; ++i) + if ($util.Long) + (message.textSegmentStartOffsets[i] = $util.Long.fromValue(object.textSegmentStartOffsets[i])).unsigned = false; + else if (typeof object.textSegmentStartOffsets[i] === "string") + message.textSegmentStartOffsets[i] = parseInt(object.textSegmentStartOffsets[i], 10); + else if (typeof object.textSegmentStartOffsets[i] === "number") + message.textSegmentStartOffsets[i] = object.textSegmentStartOffsets[i]; + else if (typeof object.textSegmentStartOffsets[i] === "object") + message.textSegmentStartOffsets[i] = new $util.LongBits(object.textSegmentStartOffsets[i].low >>> 0, object.textSegmentStartOffsets[i].high >>> 0).toNumber(); + } + if (object.textSegmentEndOffsets) { + if (!Array.isArray(object.textSegmentEndOffsets)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult.textSegmentEndOffsets: array expected"); + message.textSegmentEndOffsets = []; + for (var i = 0; i < object.textSegmentEndOffsets.length; ++i) + if ($util.Long) + (message.textSegmentEndOffsets[i] = $util.Long.fromValue(object.textSegmentEndOffsets[i])).unsigned = false; + else if (typeof object.textSegmentEndOffsets[i] === "string") + message.textSegmentEndOffsets[i] = parseInt(object.textSegmentEndOffsets[i], 10); + else if (typeof object.textSegmentEndOffsets[i] === "number") + message.textSegmentEndOffsets[i] = object.textSegmentEndOffsets[i]; + else if (typeof object.textSegmentEndOffsets[i] === "object") + message.textSegmentEndOffsets[i] = new $util.LongBits(object.textSegmentEndOffsets[i].low >>> 0, object.textSegmentEndOffsets[i].high >>> 0).toNumber(); + } + if (object.confidences) { + if (!Array.isArray(object.confidences)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult.confidences: array expected"); + message.confidences = []; + for (var i = 0; i < object.confidences.length; ++i) + message.confidences[i] = Number(object.confidences[i]); + } + return message; + }; + + /** + * Creates a plain object from a TextExtractionPredictionResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult} message TextExtractionPredictionResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TextExtractionPredictionResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.ids = []; + object.displayNames = []; + object.textSegmentStartOffsets = []; + object.textSegmentEndOffsets = []; + object.confidences = []; + } + if (message.ids && message.ids.length) { + object.ids = []; + for (var j = 0; j < message.ids.length; ++j) + if (typeof message.ids[j] === "number") + object.ids[j] = options.longs === String ? String(message.ids[j]) : message.ids[j]; + else + object.ids[j] = options.longs === String ? $util.Long.prototype.toString.call(message.ids[j]) : options.longs === Number ? new $util.LongBits(message.ids[j].low >>> 0, message.ids[j].high >>> 0).toNumber() : message.ids[j]; + } + if (message.displayNames && message.displayNames.length) { + object.displayNames = []; + for (var j = 0; j < message.displayNames.length; ++j) + object.displayNames[j] = message.displayNames[j]; + } + if (message.textSegmentStartOffsets && message.textSegmentStartOffsets.length) { + object.textSegmentStartOffsets = []; + for (var j = 0; j < message.textSegmentStartOffsets.length; ++j) + if (typeof message.textSegmentStartOffsets[j] === "number") + object.textSegmentStartOffsets[j] = options.longs === String ? String(message.textSegmentStartOffsets[j]) : message.textSegmentStartOffsets[j]; + else + object.textSegmentStartOffsets[j] = options.longs === String ? $util.Long.prototype.toString.call(message.textSegmentStartOffsets[j]) : options.longs === Number ? new $util.LongBits(message.textSegmentStartOffsets[j].low >>> 0, message.textSegmentStartOffsets[j].high >>> 0).toNumber() : message.textSegmentStartOffsets[j]; + } + if (message.textSegmentEndOffsets && message.textSegmentEndOffsets.length) { + object.textSegmentEndOffsets = []; + for (var j = 0; j < message.textSegmentEndOffsets.length; ++j) + if (typeof message.textSegmentEndOffsets[j] === "number") + object.textSegmentEndOffsets[j] = options.longs === String ? String(message.textSegmentEndOffsets[j]) : message.textSegmentEndOffsets[j]; + else + object.textSegmentEndOffsets[j] = options.longs === String ? $util.Long.prototype.toString.call(message.textSegmentEndOffsets[j]) : options.longs === Number ? new $util.LongBits(message.textSegmentEndOffsets[j].low >>> 0, message.textSegmentEndOffsets[j].high >>> 0).toNumber() : message.textSegmentEndOffsets[j]; + } + if (message.confidences && message.confidences.length) { + object.confidences = []; + for (var j = 0; j < message.confidences.length; ++j) + object.confidences[j] = options.json && !isFinite(message.confidences[j]) ? String(message.confidences[j]) : message.confidences[j]; + } + return object; + }; + + /** + * Converts this TextExtractionPredictionResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult + * @instance + * @returns {Object.} JSON object + */ + TextExtractionPredictionResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return TextExtractionPredictionResult; + })(); + + prediction.TextSentimentPredictionResult = (function() { + + /** + * Properties of a TextSentimentPredictionResult. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction + * @interface ITextSentimentPredictionResult + * @property {google.cloud.aiplatform.v1beta1.schema.predict.instance.ITextSentimentPredictionInstance|null} [instance] TextSentimentPredictionResult instance + * @property {google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.IPrediction|null} [prediction] TextSentimentPredictionResult prediction + */ + + /** + * Constructs a new TextSentimentPredictionResult. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction + * @classdesc Represents a TextSentimentPredictionResult. + * @implements ITextSentimentPredictionResult + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITextSentimentPredictionResult=} [properties] Properties to set + */ + function TextSentimentPredictionResult(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]]; + } + + /** + * TextSentimentPredictionResult instance. + * @member {google.cloud.aiplatform.v1beta1.schema.predict.instance.ITextSentimentPredictionInstance|null|undefined} instance + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult + * @instance + */ + TextSentimentPredictionResult.prototype.instance = null; + + /** + * TextSentimentPredictionResult prediction. + * @member {google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.IPrediction|null|undefined} prediction + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult + * @instance + */ + TextSentimentPredictionResult.prototype.prediction = null; + + /** + * Creates a new TextSentimentPredictionResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITextSentimentPredictionResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult} TextSentimentPredictionResult instance + */ + TextSentimentPredictionResult.create = function create(properties) { + return new TextSentimentPredictionResult(properties); + }; + + /** + * Encodes the specified TextSentimentPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITextSentimentPredictionResult} message TextSentimentPredictionResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TextSentimentPredictionResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) + $root.google.cloud.aiplatform.v1beta1.schema.predict.instance.TextSentimentPredictionInstance.encode(message.instance, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) + $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.Prediction.encode(message.prediction, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified TextSentimentPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITextSentimentPredictionResult} message TextSentimentPredictionResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TextSentimentPredictionResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TextSentimentPredictionResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult} TextSentimentPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TextSentimentPredictionResult.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.instance = $root.google.cloud.aiplatform.v1beta1.schema.predict.instance.TextSentimentPredictionInstance.decode(reader, reader.uint32()); + break; + case 2: + message.prediction = $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.Prediction.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TextSentimentPredictionResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult} TextSentimentPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TextSentimentPredictionResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TextSentimentPredictionResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TextSentimentPredictionResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.instance != null && message.hasOwnProperty("instance")) { + var error = $root.google.cloud.aiplatform.v1beta1.schema.predict.instance.TextSentimentPredictionInstance.verify(message.instance); + if (error) + return "instance." + error; + } + if (message.prediction != null && message.hasOwnProperty("prediction")) { + var error = $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.Prediction.verify(message.prediction); + if (error) + return "prediction." + error; + } + return null; + }; + + /** + * Creates a TextSentimentPredictionResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult} TextSentimentPredictionResult + */ + TextSentimentPredictionResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult(); + if (object.instance != null) { + if (typeof object.instance !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.instance: object expected"); + message.instance = $root.google.cloud.aiplatform.v1beta1.schema.predict.instance.TextSentimentPredictionInstance.fromObject(object.instance); + } + if (object.prediction != null) { + if (typeof object.prediction !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.prediction: object expected"); + message.prediction = $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.Prediction.fromObject(object.prediction); + } + return message; + }; + + /** + * Creates a plain object from a TextSentimentPredictionResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult} message TextSentimentPredictionResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TextSentimentPredictionResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.instance = null; + object.prediction = null; + } + if (message.instance != null && message.hasOwnProperty("instance")) + object.instance = $root.google.cloud.aiplatform.v1beta1.schema.predict.instance.TextSentimentPredictionInstance.toObject(message.instance, options); + if (message.prediction != null && message.hasOwnProperty("prediction")) + object.prediction = $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.Prediction.toObject(message.prediction, options); + return object; + }; + + /** + * Converts this TextSentimentPredictionResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult + * @instance + * @returns {Object.} JSON object + */ + TextSentimentPredictionResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + TextSentimentPredictionResult.Prediction = (function() { + + /** + * Properties of a Prediction. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult + * @interface IPrediction + * @property {number|null} [sentiment] Prediction sentiment + */ + + /** + * Constructs a new Prediction. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult + * @classdesc Represents a Prediction. + * @implements IPrediction + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.IPrediction=} [properties] Properties to set + */ + function Prediction(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]]; + } + + /** + * Prediction sentiment. + * @member {number} sentiment + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.Prediction + * @instance + */ + Prediction.prototype.sentiment = 0; + + /** + * Creates a new Prediction instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.Prediction + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.IPrediction=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.Prediction} Prediction instance + */ + Prediction.create = function create(properties) { + return new Prediction(properties); + }; + + /** + * Encodes the specified Prediction message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.Prediction.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.Prediction + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.IPrediction} message Prediction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Prediction.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 Prediction message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.Prediction.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.Prediction + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.IPrediction} message Prediction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Prediction.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Prediction message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.Prediction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.Prediction} Prediction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Prediction.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.Prediction(); + 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 Prediction message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.Prediction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.Prediction} Prediction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Prediction.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Prediction message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.Prediction + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Prediction.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 Prediction message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.Prediction + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.Prediction} Prediction + */ + Prediction.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.Prediction) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.Prediction(); + if (object.sentiment != null) + message.sentiment = object.sentiment | 0; + return message; + }; + + /** + * Creates a plain object from a Prediction message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.Prediction + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.Prediction} message Prediction + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Prediction.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 Prediction to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult.Prediction + * @instance + * @returns {Object.} JSON object + */ + Prediction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Prediction; + })(); + + return TextSentimentPredictionResult; + })(); + + prediction.TimeSeriesForecastingPredictionResult = (function() { + + /** + * Properties of a TimeSeriesForecastingPredictionResult. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction + * @interface ITimeSeriesForecastingPredictionResult + * @property {number|null} [value] TimeSeriesForecastingPredictionResult value + * @property {number|null} [lowerBound] TimeSeriesForecastingPredictionResult lowerBound + * @property {number|null} [upperBound] TimeSeriesForecastingPredictionResult upperBound + */ + + /** + * Constructs a new TimeSeriesForecastingPredictionResult. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction + * @classdesc Represents a TimeSeriesForecastingPredictionResult. + * @implements ITimeSeriesForecastingPredictionResult + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITimeSeriesForecastingPredictionResult=} [properties] Properties to set + */ + function TimeSeriesForecastingPredictionResult(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]]; + } + + /** + * TimeSeriesForecastingPredictionResult value. + * @member {number} value + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TimeSeriesForecastingPredictionResult + * @instance + */ + TimeSeriesForecastingPredictionResult.prototype.value = 0; + + /** + * TimeSeriesForecastingPredictionResult lowerBound. + * @member {number} lowerBound + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TimeSeriesForecastingPredictionResult + * @instance + */ + TimeSeriesForecastingPredictionResult.prototype.lowerBound = 0; + + /** + * TimeSeriesForecastingPredictionResult upperBound. + * @member {number} upperBound + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TimeSeriesForecastingPredictionResult + * @instance + */ + TimeSeriesForecastingPredictionResult.prototype.upperBound = 0; + + /** + * Creates a new TimeSeriesForecastingPredictionResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TimeSeriesForecastingPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITimeSeriesForecastingPredictionResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.TimeSeriesForecastingPredictionResult} TimeSeriesForecastingPredictionResult instance + */ + TimeSeriesForecastingPredictionResult.create = function create(properties) { + return new TimeSeriesForecastingPredictionResult(properties); + }; + + /** + * Encodes the specified TimeSeriesForecastingPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.TimeSeriesForecastingPredictionResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TimeSeriesForecastingPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITimeSeriesForecastingPredictionResult} message TimeSeriesForecastingPredictionResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TimeSeriesForecastingPredictionResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.value); + if (message.lowerBound != null && Object.hasOwnProperty.call(message, "lowerBound")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.lowerBound); + if (message.upperBound != null && Object.hasOwnProperty.call(message, "upperBound")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.upperBound); + return writer; + }; + + /** + * Encodes the specified TimeSeriesForecastingPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.TimeSeriesForecastingPredictionResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TimeSeriesForecastingPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.ITimeSeriesForecastingPredictionResult} message TimeSeriesForecastingPredictionResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TimeSeriesForecastingPredictionResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TimeSeriesForecastingPredictionResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TimeSeriesForecastingPredictionResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.TimeSeriesForecastingPredictionResult} TimeSeriesForecastingPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TimeSeriesForecastingPredictionResult.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.TimeSeriesForecastingPredictionResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.float(); + break; + case 2: + message.lowerBound = reader.float(); + break; + case 3: + message.upperBound = reader.float(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TimeSeriesForecastingPredictionResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TimeSeriesForecastingPredictionResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.TimeSeriesForecastingPredictionResult} TimeSeriesForecastingPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TimeSeriesForecastingPredictionResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TimeSeriesForecastingPredictionResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TimeSeriesForecastingPredictionResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TimeSeriesForecastingPredictionResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value !== "number") + return "value: number expected"; + if (message.lowerBound != null && message.hasOwnProperty("lowerBound")) + if (typeof message.lowerBound !== "number") + return "lowerBound: number expected"; + if (message.upperBound != null && message.hasOwnProperty("upperBound")) + if (typeof message.upperBound !== "number") + return "upperBound: number expected"; + return null; + }; + + /** + * Creates a TimeSeriesForecastingPredictionResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TimeSeriesForecastingPredictionResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.TimeSeriesForecastingPredictionResult} TimeSeriesForecastingPredictionResult + */ + TimeSeriesForecastingPredictionResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.TimeSeriesForecastingPredictionResult) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.TimeSeriesForecastingPredictionResult(); + if (object.value != null) + message.value = Number(object.value); + if (object.lowerBound != null) + message.lowerBound = Number(object.lowerBound); + if (object.upperBound != null) + message.upperBound = Number(object.upperBound); + return message; + }; + + /** + * Creates a plain object from a TimeSeriesForecastingPredictionResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TimeSeriesForecastingPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.TimeSeriesForecastingPredictionResult} message TimeSeriesForecastingPredictionResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TimeSeriesForecastingPredictionResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.value = 0; + object.lowerBound = 0; + object.upperBound = 0; + } + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; + if (message.lowerBound != null && message.hasOwnProperty("lowerBound")) + object.lowerBound = options.json && !isFinite(message.lowerBound) ? String(message.lowerBound) : message.lowerBound; + if (message.upperBound != null && message.hasOwnProperty("upperBound")) + object.upperBound = options.json && !isFinite(message.upperBound) ? String(message.upperBound) : message.upperBound; + return object; + }; + + /** + * Converts this TimeSeriesForecastingPredictionResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.TimeSeriesForecastingPredictionResult + * @instance + * @returns {Object.} JSON object + */ + TimeSeriesForecastingPredictionResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return TimeSeriesForecastingPredictionResult; + })(); + + prediction.VideoActionRecognitionPredictionResult = (function() { + + /** + * Properties of a VideoActionRecognitionPredictionResult. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction + * @interface IVideoActionRecognitionPredictionResult + * @property {string|null} [id] VideoActionRecognitionPredictionResult id + * @property {string|null} [displayName] VideoActionRecognitionPredictionResult displayName + * @property {google.protobuf.IDuration|null} [timeSegmentStart] VideoActionRecognitionPredictionResult timeSegmentStart + * @property {google.protobuf.IDuration|null} [timeSegmentEnd] VideoActionRecognitionPredictionResult timeSegmentEnd + * @property {google.protobuf.IFloatValue|null} [confidence] VideoActionRecognitionPredictionResult confidence + */ + + /** + * Constructs a new VideoActionRecognitionPredictionResult. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction + * @classdesc Represents a VideoActionRecognitionPredictionResult. + * @implements IVideoActionRecognitionPredictionResult + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.IVideoActionRecognitionPredictionResult=} [properties] Properties to set + */ + function VideoActionRecognitionPredictionResult(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]]; + } + + /** + * VideoActionRecognitionPredictionResult id. + * @member {string} id + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoActionRecognitionPredictionResult + * @instance + */ + VideoActionRecognitionPredictionResult.prototype.id = ""; + + /** + * VideoActionRecognitionPredictionResult displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoActionRecognitionPredictionResult + * @instance + */ + VideoActionRecognitionPredictionResult.prototype.displayName = ""; + + /** + * VideoActionRecognitionPredictionResult timeSegmentStart. + * @member {google.protobuf.IDuration|null|undefined} timeSegmentStart + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoActionRecognitionPredictionResult + * @instance + */ + VideoActionRecognitionPredictionResult.prototype.timeSegmentStart = null; + + /** + * VideoActionRecognitionPredictionResult timeSegmentEnd. + * @member {google.protobuf.IDuration|null|undefined} timeSegmentEnd + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoActionRecognitionPredictionResult + * @instance + */ + VideoActionRecognitionPredictionResult.prototype.timeSegmentEnd = null; + + /** + * VideoActionRecognitionPredictionResult confidence. + * @member {google.protobuf.IFloatValue|null|undefined} confidence + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoActionRecognitionPredictionResult + * @instance + */ + VideoActionRecognitionPredictionResult.prototype.confidence = null; + + /** + * Creates a new VideoActionRecognitionPredictionResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoActionRecognitionPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.IVideoActionRecognitionPredictionResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoActionRecognitionPredictionResult} VideoActionRecognitionPredictionResult instance + */ + VideoActionRecognitionPredictionResult.create = function create(properties) { + return new VideoActionRecognitionPredictionResult(properties); + }; + + /** + * Encodes the specified VideoActionRecognitionPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoActionRecognitionPredictionResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoActionRecognitionPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.IVideoActionRecognitionPredictionResult} message VideoActionRecognitionPredictionResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoActionRecognitionPredictionResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.timeSegmentStart != null && Object.hasOwnProperty.call(message, "timeSegmentStart")) + $root.google.protobuf.Duration.encode(message.timeSegmentStart, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.timeSegmentEnd != null && Object.hasOwnProperty.call(message, "timeSegmentEnd")) + $root.google.protobuf.Duration.encode(message.timeSegmentEnd, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) + $root.google.protobuf.FloatValue.encode(message.confidence, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified VideoActionRecognitionPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoActionRecognitionPredictionResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoActionRecognitionPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.IVideoActionRecognitionPredictionResult} message VideoActionRecognitionPredictionResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoActionRecognitionPredictionResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VideoActionRecognitionPredictionResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoActionRecognitionPredictionResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoActionRecognitionPredictionResult} VideoActionRecognitionPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoActionRecognitionPredictionResult.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoActionRecognitionPredictionResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + message.displayName = reader.string(); + break; + case 4: + message.timeSegmentStart = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 5: + message.timeSegmentEnd = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 6: + message.confidence = $root.google.protobuf.FloatValue.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VideoActionRecognitionPredictionResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoActionRecognitionPredictionResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoActionRecognitionPredictionResult} VideoActionRecognitionPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoActionRecognitionPredictionResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VideoActionRecognitionPredictionResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoActionRecognitionPredictionResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VideoActionRecognitionPredictionResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.timeSegmentStart != null && message.hasOwnProperty("timeSegmentStart")) { + var error = $root.google.protobuf.Duration.verify(message.timeSegmentStart); + if (error) + return "timeSegmentStart." + error; + } + if (message.timeSegmentEnd != null && message.hasOwnProperty("timeSegmentEnd")) { + var error = $root.google.protobuf.Duration.verify(message.timeSegmentEnd); + if (error) + return "timeSegmentEnd." + error; + } + if (message.confidence != null && message.hasOwnProperty("confidence")) { + var error = $root.google.protobuf.FloatValue.verify(message.confidence); + if (error) + return "confidence." + error; + } + return null; + }; + + /** + * Creates a VideoActionRecognitionPredictionResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoActionRecognitionPredictionResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoActionRecognitionPredictionResult} VideoActionRecognitionPredictionResult + */ + VideoActionRecognitionPredictionResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoActionRecognitionPredictionResult) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoActionRecognitionPredictionResult(); + if (object.id != null) + message.id = String(object.id); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.timeSegmentStart != null) { + if (typeof object.timeSegmentStart !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoActionRecognitionPredictionResult.timeSegmentStart: object expected"); + message.timeSegmentStart = $root.google.protobuf.Duration.fromObject(object.timeSegmentStart); + } + if (object.timeSegmentEnd != null) { + if (typeof object.timeSegmentEnd !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoActionRecognitionPredictionResult.timeSegmentEnd: object expected"); + message.timeSegmentEnd = $root.google.protobuf.Duration.fromObject(object.timeSegmentEnd); + } + if (object.confidence != null) { + if (typeof object.confidence !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoActionRecognitionPredictionResult.confidence: object expected"); + message.confidence = $root.google.protobuf.FloatValue.fromObject(object.confidence); + } + return message; + }; + + /** + * Creates a plain object from a VideoActionRecognitionPredictionResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoActionRecognitionPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoActionRecognitionPredictionResult} message VideoActionRecognitionPredictionResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VideoActionRecognitionPredictionResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.id = ""; + object.displayName = ""; + object.timeSegmentStart = null; + object.timeSegmentEnd = null; + object.confidence = null; + } + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.timeSegmentStart != null && message.hasOwnProperty("timeSegmentStart")) + object.timeSegmentStart = $root.google.protobuf.Duration.toObject(message.timeSegmentStart, options); + if (message.timeSegmentEnd != null && message.hasOwnProperty("timeSegmentEnd")) + object.timeSegmentEnd = $root.google.protobuf.Duration.toObject(message.timeSegmentEnd, options); + if (message.confidence != null && message.hasOwnProperty("confidence")) + object.confidence = $root.google.protobuf.FloatValue.toObject(message.confidence, options); + return object; + }; + + /** + * Converts this VideoActionRecognitionPredictionResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoActionRecognitionPredictionResult + * @instance + * @returns {Object.} JSON object + */ + VideoActionRecognitionPredictionResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return VideoActionRecognitionPredictionResult; + })(); + + prediction.VideoClassificationPredictionResult = (function() { + + /** + * Properties of a VideoClassificationPredictionResult. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction + * @interface IVideoClassificationPredictionResult + * @property {string|null} [id] VideoClassificationPredictionResult id + * @property {string|null} [displayName] VideoClassificationPredictionResult displayName + * @property {string|null} [type] VideoClassificationPredictionResult type + * @property {google.protobuf.IDuration|null} [timeSegmentStart] VideoClassificationPredictionResult timeSegmentStart + * @property {google.protobuf.IDuration|null} [timeSegmentEnd] VideoClassificationPredictionResult timeSegmentEnd + * @property {google.protobuf.IFloatValue|null} [confidence] VideoClassificationPredictionResult confidence + */ + + /** + * Constructs a new VideoClassificationPredictionResult. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction + * @classdesc Represents a VideoClassificationPredictionResult. + * @implements IVideoClassificationPredictionResult + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.IVideoClassificationPredictionResult=} [properties] Properties to set + */ + function VideoClassificationPredictionResult(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]]; + } + + /** + * VideoClassificationPredictionResult id. + * @member {string} id + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoClassificationPredictionResult + * @instance + */ + VideoClassificationPredictionResult.prototype.id = ""; + + /** + * VideoClassificationPredictionResult displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoClassificationPredictionResult + * @instance + */ + VideoClassificationPredictionResult.prototype.displayName = ""; + + /** + * VideoClassificationPredictionResult type. + * @member {string} type + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoClassificationPredictionResult + * @instance + */ + VideoClassificationPredictionResult.prototype.type = ""; + + /** + * VideoClassificationPredictionResult timeSegmentStart. + * @member {google.protobuf.IDuration|null|undefined} timeSegmentStart + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoClassificationPredictionResult + * @instance + */ + VideoClassificationPredictionResult.prototype.timeSegmentStart = null; + + /** + * VideoClassificationPredictionResult timeSegmentEnd. + * @member {google.protobuf.IDuration|null|undefined} timeSegmentEnd + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoClassificationPredictionResult + * @instance + */ + VideoClassificationPredictionResult.prototype.timeSegmentEnd = null; + + /** + * VideoClassificationPredictionResult confidence. + * @member {google.protobuf.IFloatValue|null|undefined} confidence + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoClassificationPredictionResult + * @instance + */ + VideoClassificationPredictionResult.prototype.confidence = null; + + /** + * Creates a new VideoClassificationPredictionResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoClassificationPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.IVideoClassificationPredictionResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoClassificationPredictionResult} VideoClassificationPredictionResult instance + */ + VideoClassificationPredictionResult.create = function create(properties) { + return new VideoClassificationPredictionResult(properties); + }; + + /** + * Encodes the specified VideoClassificationPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoClassificationPredictionResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoClassificationPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.IVideoClassificationPredictionResult} message VideoClassificationPredictionResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoClassificationPredictionResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.type); + if (message.timeSegmentStart != null && Object.hasOwnProperty.call(message, "timeSegmentStart")) + $root.google.protobuf.Duration.encode(message.timeSegmentStart, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.timeSegmentEnd != null && Object.hasOwnProperty.call(message, "timeSegmentEnd")) + $root.google.protobuf.Duration.encode(message.timeSegmentEnd, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) + $root.google.protobuf.FloatValue.encode(message.confidence, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified VideoClassificationPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoClassificationPredictionResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoClassificationPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.IVideoClassificationPredictionResult} message VideoClassificationPredictionResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoClassificationPredictionResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VideoClassificationPredictionResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoClassificationPredictionResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoClassificationPredictionResult} VideoClassificationPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoClassificationPredictionResult.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoClassificationPredictionResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + message.displayName = reader.string(); + break; + case 3: + message.type = reader.string(); + break; + case 4: + message.timeSegmentStart = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 5: + message.timeSegmentEnd = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 6: + message.confidence = $root.google.protobuf.FloatValue.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VideoClassificationPredictionResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoClassificationPredictionResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoClassificationPredictionResult} VideoClassificationPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoClassificationPredictionResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VideoClassificationPredictionResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoClassificationPredictionResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VideoClassificationPredictionResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.timeSegmentStart != null && message.hasOwnProperty("timeSegmentStart")) { + var error = $root.google.protobuf.Duration.verify(message.timeSegmentStart); + if (error) + return "timeSegmentStart." + error; + } + if (message.timeSegmentEnd != null && message.hasOwnProperty("timeSegmentEnd")) { + var error = $root.google.protobuf.Duration.verify(message.timeSegmentEnd); + if (error) + return "timeSegmentEnd." + error; + } + if (message.confidence != null && message.hasOwnProperty("confidence")) { + var error = $root.google.protobuf.FloatValue.verify(message.confidence); + if (error) + return "confidence." + error; + } + return null; + }; + + /** + * Creates a VideoClassificationPredictionResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoClassificationPredictionResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoClassificationPredictionResult} VideoClassificationPredictionResult + */ + VideoClassificationPredictionResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoClassificationPredictionResult) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoClassificationPredictionResult(); + if (object.id != null) + message.id = String(object.id); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.type != null) + message.type = String(object.type); + if (object.timeSegmentStart != null) { + if (typeof object.timeSegmentStart !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoClassificationPredictionResult.timeSegmentStart: object expected"); + message.timeSegmentStart = $root.google.protobuf.Duration.fromObject(object.timeSegmentStart); + } + if (object.timeSegmentEnd != null) { + if (typeof object.timeSegmentEnd !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoClassificationPredictionResult.timeSegmentEnd: object expected"); + message.timeSegmentEnd = $root.google.protobuf.Duration.fromObject(object.timeSegmentEnd); + } + if (object.confidence != null) { + if (typeof object.confidence !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoClassificationPredictionResult.confidence: object expected"); + message.confidence = $root.google.protobuf.FloatValue.fromObject(object.confidence); + } + return message; + }; + + /** + * Creates a plain object from a VideoClassificationPredictionResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoClassificationPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoClassificationPredictionResult} message VideoClassificationPredictionResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VideoClassificationPredictionResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.id = ""; + object.displayName = ""; + object.type = ""; + object.timeSegmentStart = null; + object.timeSegmentEnd = null; + object.confidence = null; + } + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.timeSegmentStart != null && message.hasOwnProperty("timeSegmentStart")) + object.timeSegmentStart = $root.google.protobuf.Duration.toObject(message.timeSegmentStart, options); + if (message.timeSegmentEnd != null && message.hasOwnProperty("timeSegmentEnd")) + object.timeSegmentEnd = $root.google.protobuf.Duration.toObject(message.timeSegmentEnd, options); + if (message.confidence != null && message.hasOwnProperty("confidence")) + object.confidence = $root.google.protobuf.FloatValue.toObject(message.confidence, options); + return object; + }; + + /** + * Converts this VideoClassificationPredictionResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoClassificationPredictionResult + * @instance + * @returns {Object.} JSON object + */ + VideoClassificationPredictionResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return VideoClassificationPredictionResult; + })(); + + prediction.VideoObjectTrackingPredictionResult = (function() { + + /** + * Properties of a VideoObjectTrackingPredictionResult. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction + * @interface IVideoObjectTrackingPredictionResult + * @property {string|null} [id] VideoObjectTrackingPredictionResult id + * @property {string|null} [displayName] VideoObjectTrackingPredictionResult displayName + * @property {google.protobuf.IDuration|null} [timeSegmentStart] VideoObjectTrackingPredictionResult timeSegmentStart + * @property {google.protobuf.IDuration|null} [timeSegmentEnd] VideoObjectTrackingPredictionResult timeSegmentEnd + * @property {google.protobuf.IFloatValue|null} [confidence] VideoObjectTrackingPredictionResult confidence + * @property {Array.|null} [frames] VideoObjectTrackingPredictionResult frames + */ + + /** + * Constructs a new VideoObjectTrackingPredictionResult. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction + * @classdesc Represents a VideoObjectTrackingPredictionResult. + * @implements IVideoObjectTrackingPredictionResult + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.IVideoObjectTrackingPredictionResult=} [properties] Properties to set + */ + function VideoObjectTrackingPredictionResult(properties) { + this.frames = []; + 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]]; + } + + /** + * VideoObjectTrackingPredictionResult id. + * @member {string} id + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult + * @instance + */ + VideoObjectTrackingPredictionResult.prototype.id = ""; + + /** + * VideoObjectTrackingPredictionResult displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult + * @instance + */ + VideoObjectTrackingPredictionResult.prototype.displayName = ""; + + /** + * VideoObjectTrackingPredictionResult timeSegmentStart. + * @member {google.protobuf.IDuration|null|undefined} timeSegmentStart + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult + * @instance + */ + VideoObjectTrackingPredictionResult.prototype.timeSegmentStart = null; + + /** + * VideoObjectTrackingPredictionResult timeSegmentEnd. + * @member {google.protobuf.IDuration|null|undefined} timeSegmentEnd + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult + * @instance + */ + VideoObjectTrackingPredictionResult.prototype.timeSegmentEnd = null; + + /** + * VideoObjectTrackingPredictionResult confidence. + * @member {google.protobuf.IFloatValue|null|undefined} confidence + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult + * @instance + */ + VideoObjectTrackingPredictionResult.prototype.confidence = null; + + /** + * VideoObjectTrackingPredictionResult frames. + * @member {Array.} frames + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult + * @instance + */ + VideoObjectTrackingPredictionResult.prototype.frames = $util.emptyArray; + + /** + * Creates a new VideoObjectTrackingPredictionResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.IVideoObjectTrackingPredictionResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult} VideoObjectTrackingPredictionResult instance + */ + VideoObjectTrackingPredictionResult.create = function create(properties) { + return new VideoObjectTrackingPredictionResult(properties); + }; + + /** + * Encodes the specified VideoObjectTrackingPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.IVideoObjectTrackingPredictionResult} message VideoObjectTrackingPredictionResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoObjectTrackingPredictionResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.timeSegmentStart != null && Object.hasOwnProperty.call(message, "timeSegmentStart")) + $root.google.protobuf.Duration.encode(message.timeSegmentStart, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.timeSegmentEnd != null && Object.hasOwnProperty.call(message, "timeSegmentEnd")) + $root.google.protobuf.Duration.encode(message.timeSegmentEnd, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) + $root.google.protobuf.FloatValue.encode(message.confidence, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.frames != null && message.frames.length) + for (var i = 0; i < message.frames.length; ++i) + $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame.encode(message.frames[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified VideoObjectTrackingPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.IVideoObjectTrackingPredictionResult} message VideoObjectTrackingPredictionResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VideoObjectTrackingPredictionResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VideoObjectTrackingPredictionResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult} VideoObjectTrackingPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoObjectTrackingPredictionResult.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + message.displayName = reader.string(); + break; + case 3: + message.timeSegmentStart = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 4: + message.timeSegmentEnd = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 5: + message.confidence = $root.google.protobuf.FloatValue.decode(reader, reader.uint32()); + break; + case 6: + if (!(message.frames && message.frames.length)) + message.frames = []; + message.frames.push($root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VideoObjectTrackingPredictionResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult} VideoObjectTrackingPredictionResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VideoObjectTrackingPredictionResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VideoObjectTrackingPredictionResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VideoObjectTrackingPredictionResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.timeSegmentStart != null && message.hasOwnProperty("timeSegmentStart")) { + var error = $root.google.protobuf.Duration.verify(message.timeSegmentStart); + if (error) + return "timeSegmentStart." + error; + } + if (message.timeSegmentEnd != null && message.hasOwnProperty("timeSegmentEnd")) { + var error = $root.google.protobuf.Duration.verify(message.timeSegmentEnd); + if (error) + return "timeSegmentEnd." + error; + } + if (message.confidence != null && message.hasOwnProperty("confidence")) { + var error = $root.google.protobuf.FloatValue.verify(message.confidence); + if (error) + return "confidence." + error; + } + if (message.frames != null && message.hasOwnProperty("frames")) { + if (!Array.isArray(message.frames)) + return "frames: array expected"; + for (var i = 0; i < message.frames.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame.verify(message.frames[i]); + if (error) + return "frames." + error; + } + } + return null; + }; + + /** + * Creates a VideoObjectTrackingPredictionResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult} VideoObjectTrackingPredictionResult + */ + VideoObjectTrackingPredictionResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult(); + if (object.id != null) + message.id = String(object.id); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.timeSegmentStart != null) { + if (typeof object.timeSegmentStart !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.timeSegmentStart: object expected"); + message.timeSegmentStart = $root.google.protobuf.Duration.fromObject(object.timeSegmentStart); + } + if (object.timeSegmentEnd != null) { + if (typeof object.timeSegmentEnd !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.timeSegmentEnd: object expected"); + message.timeSegmentEnd = $root.google.protobuf.Duration.fromObject(object.timeSegmentEnd); + } + if (object.confidence != null) { + if (typeof object.confidence !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.confidence: object expected"); + message.confidence = $root.google.protobuf.FloatValue.fromObject(object.confidence); + } + if (object.frames) { + if (!Array.isArray(object.frames)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.frames: array expected"); + message.frames = []; + for (var i = 0; i < object.frames.length; ++i) { + if (typeof object.frames[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.frames: object expected"); + message.frames[i] = $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame.fromObject(object.frames[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a VideoObjectTrackingPredictionResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult} message VideoObjectTrackingPredictionResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VideoObjectTrackingPredictionResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.frames = []; + if (options.defaults) { + object.id = ""; + object.displayName = ""; + object.timeSegmentStart = null; + object.timeSegmentEnd = null; + object.confidence = null; + } + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.timeSegmentStart != null && message.hasOwnProperty("timeSegmentStart")) + object.timeSegmentStart = $root.google.protobuf.Duration.toObject(message.timeSegmentStart, options); + if (message.timeSegmentEnd != null && message.hasOwnProperty("timeSegmentEnd")) + object.timeSegmentEnd = $root.google.protobuf.Duration.toObject(message.timeSegmentEnd, options); + if (message.confidence != null && message.hasOwnProperty("confidence")) + object.confidence = $root.google.protobuf.FloatValue.toObject(message.confidence, options); + if (message.frames && message.frames.length) { + object.frames = []; + for (var j = 0; j < message.frames.length; ++j) + object.frames[j] = $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame.toObject(message.frames[j], options); + } + return object; + }; + + /** + * Converts this VideoObjectTrackingPredictionResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult + * @instance + * @returns {Object.} JSON object + */ + VideoObjectTrackingPredictionResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + VideoObjectTrackingPredictionResult.Frame = (function() { + + /** + * Properties of a Frame. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult + * @interface IFrame + * @property {google.protobuf.IDuration|null} [timeOffset] Frame timeOffset + * @property {google.protobuf.IFloatValue|null} [xMin] Frame xMin + * @property {google.protobuf.IFloatValue|null} [xMax] Frame xMax + * @property {google.protobuf.IFloatValue|null} [yMin] Frame yMin + * @property {google.protobuf.IFloatValue|null} [yMax] Frame yMax + */ + + /** + * Constructs a new Frame. + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult + * @classdesc Represents a Frame. + * @implements IFrame + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.IFrame=} [properties] Properties to set + */ + function Frame(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]]; + } + + /** + * Frame timeOffset. + * @member {google.protobuf.IDuration|null|undefined} timeOffset + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame + * @instance + */ + Frame.prototype.timeOffset = null; + + /** + * Frame xMin. + * @member {google.protobuf.IFloatValue|null|undefined} xMin + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame + * @instance + */ + Frame.prototype.xMin = null; + + /** + * Frame xMax. + * @member {google.protobuf.IFloatValue|null|undefined} xMax + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame + * @instance + */ + Frame.prototype.xMax = null; + + /** + * Frame yMin. + * @member {google.protobuf.IFloatValue|null|undefined} yMin + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame + * @instance + */ + Frame.prototype.yMin = null; + + /** + * Frame yMax. + * @member {google.protobuf.IFloatValue|null|undefined} yMax + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame + * @instance + */ + Frame.prototype.yMax = null; + + /** + * Creates a new Frame instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.IFrame=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame} Frame instance + */ + Frame.create = function create(properties) { + return new Frame(properties); + }; + + /** + * Encodes the specified Frame message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.IFrame} message Frame message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Frame.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.timeOffset != null && Object.hasOwnProperty.call(message, "timeOffset")) + $root.google.protobuf.Duration.encode(message.timeOffset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.xMin != null && Object.hasOwnProperty.call(message, "xMin")) + $root.google.protobuf.FloatValue.encode(message.xMin, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.xMax != null && Object.hasOwnProperty.call(message, "xMax")) + $root.google.protobuf.FloatValue.encode(message.xMax, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.yMin != null && Object.hasOwnProperty.call(message, "yMin")) + $root.google.protobuf.FloatValue.encode(message.yMin, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.yMax != null && Object.hasOwnProperty.call(message, "yMax")) + $root.google.protobuf.FloatValue.encode(message.yMax, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Frame message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.IFrame} message Frame message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Frame.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Frame message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame} Frame + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Frame.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.timeOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 2: + message.xMin = $root.google.protobuf.FloatValue.decode(reader, reader.uint32()); + break; + case 3: + message.xMax = $root.google.protobuf.FloatValue.decode(reader, reader.uint32()); + break; + case 4: + message.yMin = $root.google.protobuf.FloatValue.decode(reader, reader.uint32()); + break; + case 5: + message.yMax = $root.google.protobuf.FloatValue.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Frame message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame} Frame + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Frame.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Frame message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Frame.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.timeOffset != null && message.hasOwnProperty("timeOffset")) { + var error = $root.google.protobuf.Duration.verify(message.timeOffset); + if (error) + return "timeOffset." + error; + } + if (message.xMin != null && message.hasOwnProperty("xMin")) { + var error = $root.google.protobuf.FloatValue.verify(message.xMin); + if (error) + return "xMin." + error; + } + if (message.xMax != null && message.hasOwnProperty("xMax")) { + var error = $root.google.protobuf.FloatValue.verify(message.xMax); + if (error) + return "xMax." + error; + } + if (message.yMin != null && message.hasOwnProperty("yMin")) { + var error = $root.google.protobuf.FloatValue.verify(message.yMin); + if (error) + return "yMin." + error; + } + if (message.yMax != null && message.hasOwnProperty("yMax")) { + var error = $root.google.protobuf.FloatValue.verify(message.yMax); + if (error) + return "yMax." + error; + } + return null; + }; + + /** + * Creates a Frame message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame} Frame + */ + Frame.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame(); + if (object.timeOffset != null) { + if (typeof object.timeOffset !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame.timeOffset: object expected"); + message.timeOffset = $root.google.protobuf.Duration.fromObject(object.timeOffset); + } + if (object.xMin != null) { + if (typeof object.xMin !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame.xMin: object expected"); + message.xMin = $root.google.protobuf.FloatValue.fromObject(object.xMin); + } + if (object.xMax != null) { + if (typeof object.xMax !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame.xMax: object expected"); + message.xMax = $root.google.protobuf.FloatValue.fromObject(object.xMax); + } + if (object.yMin != null) { + if (typeof object.yMin !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame.yMin: object expected"); + message.yMin = $root.google.protobuf.FloatValue.fromObject(object.yMin); + } + if (object.yMax != null) { + if (typeof object.yMax !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame.yMax: object expected"); + message.yMax = $root.google.protobuf.FloatValue.fromObject(object.yMax); + } + return message; + }; + + /** + * Creates a plain object from a Frame message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame} message Frame + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Frame.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.timeOffset = null; + object.xMin = null; + object.xMax = null; + object.yMin = null; + object.yMax = null; + } + if (message.timeOffset != null && message.hasOwnProperty("timeOffset")) + object.timeOffset = $root.google.protobuf.Duration.toObject(message.timeOffset, options); + if (message.xMin != null && message.hasOwnProperty("xMin")) + object.xMin = $root.google.protobuf.FloatValue.toObject(message.xMin, options); + if (message.xMax != null && message.hasOwnProperty("xMax")) + object.xMax = $root.google.protobuf.FloatValue.toObject(message.xMax, options); + if (message.yMin != null && message.hasOwnProperty("yMin")) + object.yMin = $root.google.protobuf.FloatValue.toObject(message.yMin, options); + if (message.yMax != null && message.hasOwnProperty("yMax")) + object.yMax = $root.google.protobuf.FloatValue.toObject(message.yMax, options); + return object; + }; + + /** + * Converts this Frame to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame + * @instance + * @returns {Object.} JSON object + */ + Frame.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Frame; + })(); + + return VideoObjectTrackingPredictionResult; + })(); + + return prediction; + })(); + + return predict; + })(); + + schema.TextSentimentSavedQueryMetadata = (function() { + + /** + * Properties of a TextSentimentSavedQueryMetadata. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface ITextSentimentSavedQueryMetadata + * @property {number|null} [sentimentMax] TextSentimentSavedQueryMetadata sentimentMax + */ + + /** + * Constructs a new TextSentimentSavedQueryMetadata. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents a TextSentimentSavedQueryMetadata. + * @implements ITextSentimentSavedQueryMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.ITextSentimentSavedQueryMetadata=} [properties] Properties to set + */ + function TextSentimentSavedQueryMetadata(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]]; + } + + /** + * TextSentimentSavedQueryMetadata sentimentMax. + * @member {number} sentimentMax + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentSavedQueryMetadata + * @instance + */ + TextSentimentSavedQueryMetadata.prototype.sentimentMax = 0; + + /** + * Creates a new TextSentimentSavedQueryMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentSavedQueryMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITextSentimentSavedQueryMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.TextSentimentSavedQueryMetadata} TextSentimentSavedQueryMetadata instance + */ + TextSentimentSavedQueryMetadata.create = function create(properties) { + return new TextSentimentSavedQueryMetadata(properties); + }; + + /** + * Encodes the specified TextSentimentSavedQueryMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextSentimentSavedQueryMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentSavedQueryMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITextSentimentSavedQueryMetadata} message TextSentimentSavedQueryMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TextSentimentSavedQueryMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sentimentMax != null && Object.hasOwnProperty.call(message, "sentimentMax")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.sentimentMax); + return writer; + }; + + /** + * Encodes the specified TextSentimentSavedQueryMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.TextSentimentSavedQueryMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentSavedQueryMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.ITextSentimentSavedQueryMetadata} message TextSentimentSavedQueryMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TextSentimentSavedQueryMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TextSentimentSavedQueryMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentSavedQueryMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.TextSentimentSavedQueryMetadata} TextSentimentSavedQueryMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TextSentimentSavedQueryMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.TextSentimentSavedQueryMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sentimentMax = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TextSentimentSavedQueryMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentSavedQueryMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.TextSentimentSavedQueryMetadata} TextSentimentSavedQueryMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TextSentimentSavedQueryMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TextSentimentSavedQueryMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentSavedQueryMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TextSentimentSavedQueryMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.sentimentMax != null && message.hasOwnProperty("sentimentMax")) + if (!$util.isInteger(message.sentimentMax)) + return "sentimentMax: integer expected"; + return null; + }; + + /** + * Creates a TextSentimentSavedQueryMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentSavedQueryMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.TextSentimentSavedQueryMetadata} TextSentimentSavedQueryMetadata + */ + TextSentimentSavedQueryMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.TextSentimentSavedQueryMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.TextSentimentSavedQueryMetadata(); + if (object.sentimentMax != null) + message.sentimentMax = object.sentimentMax | 0; + return message; + }; + + /** + * Creates a plain object from a TextSentimentSavedQueryMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentSavedQueryMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.TextSentimentSavedQueryMetadata} message TextSentimentSavedQueryMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TextSentimentSavedQueryMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.sentimentMax = 0; + if (message.sentimentMax != null && message.hasOwnProperty("sentimentMax")) + object.sentimentMax = message.sentimentMax; + return object; + }; + + /** + * Converts this TextSentimentSavedQueryMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.TextSentimentSavedQueryMetadata + * @instance + * @returns {Object.} JSON object + */ + TextSentimentSavedQueryMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return TextSentimentSavedQueryMetadata; + })(); + + schema.VisualInspectionClassificationLabelSavedQueryMetadata = (function() { + + /** + * Properties of a VisualInspectionClassificationLabelSavedQueryMetadata. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface IVisualInspectionClassificationLabelSavedQueryMetadata + * @property {boolean|null} [multiLabel] VisualInspectionClassificationLabelSavedQueryMetadata multiLabel + */ + + /** + * Constructs a new VisualInspectionClassificationLabelSavedQueryMetadata. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents a VisualInspectionClassificationLabelSavedQueryMetadata. + * @implements IVisualInspectionClassificationLabelSavedQueryMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.IVisualInspectionClassificationLabelSavedQueryMetadata=} [properties] Properties to set + */ + function VisualInspectionClassificationLabelSavedQueryMetadata(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]]; + } + + /** + * VisualInspectionClassificationLabelSavedQueryMetadata multiLabel. + * @member {boolean} multiLabel + * @memberof google.cloud.aiplatform.v1beta1.schema.VisualInspectionClassificationLabelSavedQueryMetadata + * @instance + */ + VisualInspectionClassificationLabelSavedQueryMetadata.prototype.multiLabel = false; + + /** + * Creates a new VisualInspectionClassificationLabelSavedQueryMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.VisualInspectionClassificationLabelSavedQueryMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVisualInspectionClassificationLabelSavedQueryMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.VisualInspectionClassificationLabelSavedQueryMetadata} VisualInspectionClassificationLabelSavedQueryMetadata instance + */ + VisualInspectionClassificationLabelSavedQueryMetadata.create = function create(properties) { + return new VisualInspectionClassificationLabelSavedQueryMetadata(properties); + }; + + /** + * Encodes the specified VisualInspectionClassificationLabelSavedQueryMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VisualInspectionClassificationLabelSavedQueryMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.VisualInspectionClassificationLabelSavedQueryMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVisualInspectionClassificationLabelSavedQueryMetadata} message VisualInspectionClassificationLabelSavedQueryMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VisualInspectionClassificationLabelSavedQueryMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.multiLabel != null && Object.hasOwnProperty.call(message, "multiLabel")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.multiLabel); + return writer; + }; + + /** + * Encodes the specified VisualInspectionClassificationLabelSavedQueryMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VisualInspectionClassificationLabelSavedQueryMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.VisualInspectionClassificationLabelSavedQueryMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVisualInspectionClassificationLabelSavedQueryMetadata} message VisualInspectionClassificationLabelSavedQueryMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VisualInspectionClassificationLabelSavedQueryMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VisualInspectionClassificationLabelSavedQueryMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.VisualInspectionClassificationLabelSavedQueryMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.VisualInspectionClassificationLabelSavedQueryMetadata} VisualInspectionClassificationLabelSavedQueryMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VisualInspectionClassificationLabelSavedQueryMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.VisualInspectionClassificationLabelSavedQueryMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.multiLabel = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VisualInspectionClassificationLabelSavedQueryMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.VisualInspectionClassificationLabelSavedQueryMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.VisualInspectionClassificationLabelSavedQueryMetadata} VisualInspectionClassificationLabelSavedQueryMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VisualInspectionClassificationLabelSavedQueryMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VisualInspectionClassificationLabelSavedQueryMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.VisualInspectionClassificationLabelSavedQueryMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VisualInspectionClassificationLabelSavedQueryMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.multiLabel != null && message.hasOwnProperty("multiLabel")) + if (typeof message.multiLabel !== "boolean") + return "multiLabel: boolean expected"; + return null; + }; + + /** + * Creates a VisualInspectionClassificationLabelSavedQueryMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.VisualInspectionClassificationLabelSavedQueryMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.VisualInspectionClassificationLabelSavedQueryMetadata} VisualInspectionClassificationLabelSavedQueryMetadata + */ + VisualInspectionClassificationLabelSavedQueryMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.VisualInspectionClassificationLabelSavedQueryMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.VisualInspectionClassificationLabelSavedQueryMetadata(); + if (object.multiLabel != null) + message.multiLabel = Boolean(object.multiLabel); + return message; + }; + + /** + * Creates a plain object from a VisualInspectionClassificationLabelSavedQueryMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.VisualInspectionClassificationLabelSavedQueryMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.VisualInspectionClassificationLabelSavedQueryMetadata} message VisualInspectionClassificationLabelSavedQueryMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VisualInspectionClassificationLabelSavedQueryMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.multiLabel = false; + if (message.multiLabel != null && message.hasOwnProperty("multiLabel")) + object.multiLabel = message.multiLabel; + return object; + }; + + /** + * Converts this VisualInspectionClassificationLabelSavedQueryMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.VisualInspectionClassificationLabelSavedQueryMetadata + * @instance + * @returns {Object.} JSON object + */ + VisualInspectionClassificationLabelSavedQueryMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return VisualInspectionClassificationLabelSavedQueryMetadata; + })(); + + schema.VisualInspectionMaskSavedQueryMetadata = (function() { + + /** + * Properties of a VisualInspectionMaskSavedQueryMetadata. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @interface IVisualInspectionMaskSavedQueryMetadata + * @property {Array.|null} [colorMap] VisualInspectionMaskSavedQueryMetadata colorMap + */ + + /** + * Constructs a new VisualInspectionMaskSavedQueryMetadata. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @classdesc Represents a VisualInspectionMaskSavedQueryMetadata. + * @implements IVisualInspectionMaskSavedQueryMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.IVisualInspectionMaskSavedQueryMetadata=} [properties] Properties to set + */ + function VisualInspectionMaskSavedQueryMetadata(properties) { + this.colorMap = []; + 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]]; + } + + /** + * VisualInspectionMaskSavedQueryMetadata colorMap. + * @member {Array.} colorMap + * @memberof google.cloud.aiplatform.v1beta1.schema.VisualInspectionMaskSavedQueryMetadata + * @instance + */ + VisualInspectionMaskSavedQueryMetadata.prototype.colorMap = $util.emptyArray; + + /** + * Creates a new VisualInspectionMaskSavedQueryMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.VisualInspectionMaskSavedQueryMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVisualInspectionMaskSavedQueryMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.VisualInspectionMaskSavedQueryMetadata} VisualInspectionMaskSavedQueryMetadata instance + */ + VisualInspectionMaskSavedQueryMetadata.create = function create(properties) { + return new VisualInspectionMaskSavedQueryMetadata(properties); + }; + + /** + * Encodes the specified VisualInspectionMaskSavedQueryMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VisualInspectionMaskSavedQueryMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.VisualInspectionMaskSavedQueryMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVisualInspectionMaskSavedQueryMetadata} message VisualInspectionMaskSavedQueryMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VisualInspectionMaskSavedQueryMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.colorMap != null && message.colorMap.length) + for (var i = 0; i < message.colorMap.length; ++i) + $root.google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor.encode(message.colorMap[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified VisualInspectionMaskSavedQueryMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.VisualInspectionMaskSavedQueryMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.VisualInspectionMaskSavedQueryMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.IVisualInspectionMaskSavedQueryMetadata} message VisualInspectionMaskSavedQueryMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VisualInspectionMaskSavedQueryMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VisualInspectionMaskSavedQueryMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.VisualInspectionMaskSavedQueryMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.VisualInspectionMaskSavedQueryMetadata} VisualInspectionMaskSavedQueryMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VisualInspectionMaskSavedQueryMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.VisualInspectionMaskSavedQueryMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + if (!(message.colorMap && message.colorMap.length)) + message.colorMap = []; + message.colorMap.push($root.google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VisualInspectionMaskSavedQueryMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.VisualInspectionMaskSavedQueryMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.VisualInspectionMaskSavedQueryMetadata} VisualInspectionMaskSavedQueryMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VisualInspectionMaskSavedQueryMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VisualInspectionMaskSavedQueryMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.VisualInspectionMaskSavedQueryMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VisualInspectionMaskSavedQueryMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.colorMap != null && message.hasOwnProperty("colorMap")) { + if (!Array.isArray(message.colorMap)) + return "colorMap: array expected"; + for (var i = 0; i < message.colorMap.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor.verify(message.colorMap[i]); + if (error) + return "colorMap." + error; + } + } + return null; + }; + + /** + * Creates a VisualInspectionMaskSavedQueryMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.VisualInspectionMaskSavedQueryMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.VisualInspectionMaskSavedQueryMetadata} VisualInspectionMaskSavedQueryMetadata + */ + VisualInspectionMaskSavedQueryMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.VisualInspectionMaskSavedQueryMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.VisualInspectionMaskSavedQueryMetadata(); + if (object.colorMap) { + if (!Array.isArray(object.colorMap)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.VisualInspectionMaskSavedQueryMetadata.colorMap: array expected"); + message.colorMap = []; + for (var i = 0; i < object.colorMap.length; ++i) { + if (typeof object.colorMap[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.VisualInspectionMaskSavedQueryMetadata.colorMap: object expected"); + message.colorMap[i] = $root.google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor.fromObject(object.colorMap[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a VisualInspectionMaskSavedQueryMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.VisualInspectionMaskSavedQueryMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.VisualInspectionMaskSavedQueryMetadata} message VisualInspectionMaskSavedQueryMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VisualInspectionMaskSavedQueryMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.colorMap = []; + if (message.colorMap && message.colorMap.length) { + object.colorMap = []; + for (var j = 0; j < message.colorMap.length; ++j) + object.colorMap[j] = $root.google.cloud.aiplatform.v1beta1.schema.AnnotationSpecColor.toObject(message.colorMap[j], options); + } + return object; + }; + + /** + * Converts this VisualInspectionMaskSavedQueryMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.VisualInspectionMaskSavedQueryMetadata + * @instance + * @returns {Object.} JSON object + */ + VisualInspectionMaskSavedQueryMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return VisualInspectionMaskSavedQueryMetadata; + })(); + + schema.trainingjob = (function() { + + /** + * Namespace trainingjob. + * @memberof google.cloud.aiplatform.v1beta1.schema + * @namespace + */ + var trainingjob = {}; + + trainingjob.definition = (function() { + + /** + * Namespace definition. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob + * @namespace + */ + var definition = {}; + + definition.AutoMlForecasting = (function() { + + /** + * Properties of an AutoMlForecasting. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @interface IAutoMlForecasting + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlForecastingInputs|null} [inputs] AutoMlForecasting inputs + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlForecastingMetadata|null} [metadata] AutoMlForecasting metadata + */ + + /** + * Constructs a new AutoMlForecasting. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @classdesc Represents an AutoMlForecasting. + * @implements IAutoMlForecasting + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlForecasting=} [properties] Properties to set + */ + function AutoMlForecasting(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]]; + } + + /** + * AutoMlForecasting inputs. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlForecastingInputs|null|undefined} inputs + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting + * @instance + */ + AutoMlForecasting.prototype.inputs = null; + + /** + * AutoMlForecasting metadata. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlForecastingMetadata|null|undefined} metadata + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting + * @instance + */ + AutoMlForecasting.prototype.metadata = null; + + /** + * Creates a new AutoMlForecasting instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlForecasting=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting} AutoMlForecasting instance + */ + AutoMlForecasting.create = function create(properties) { + return new AutoMlForecasting(properties); + }; + + /** + * Encodes the specified AutoMlForecasting message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlForecasting} message AutoMlForecasting message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlForecasting.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.inputs != null && Object.hasOwnProperty.call(message, "inputs")) + $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata.encode(message.metadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified AutoMlForecasting message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlForecasting} message AutoMlForecasting message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlForecasting.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutoMlForecasting message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting} AutoMlForecasting + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlForecasting.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.inputs = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.decode(reader, reader.uint32()); + break; + case 2: + message.metadata = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutoMlForecasting message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting} AutoMlForecasting + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlForecasting.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutoMlForecasting message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutoMlForecasting.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.inputs != null && message.hasOwnProperty("inputs")) { + var error = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.verify(message.inputs); + if (error) + return "inputs." + error; + } + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata.verify(message.metadata); + if (error) + return "metadata." + error; + } + return null; + }; + + /** + * Creates an AutoMlForecasting message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting} AutoMlForecasting + */ + AutoMlForecasting.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting(); + if (object.inputs != null) { + if (typeof object.inputs !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting.inputs: object expected"); + message.inputs = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.fromObject(object.inputs); + } + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting.metadata: object expected"); + message.metadata = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata.fromObject(object.metadata); + } + return message; + }; + + /** + * Creates a plain object from an AutoMlForecasting message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting} message AutoMlForecasting + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutoMlForecasting.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.inputs = null; + object.metadata = null; + } + if (message.inputs != null && message.hasOwnProperty("inputs")) + object.inputs = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.toObject(message.inputs, options); + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata.toObject(message.metadata, options); + return object; + }; + + /** + * Converts this AutoMlForecasting to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting + * @instance + * @returns {Object.} JSON object + */ + AutoMlForecasting.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AutoMlForecasting; + })(); + + definition.AutoMlForecastingInputs = (function() { + + /** + * Properties of an AutoMlForecastingInputs. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @interface IAutoMlForecastingInputs + * @property {string|null} [targetColumn] AutoMlForecastingInputs targetColumn + * @property {string|null} [timeSeriesIdentifierColumn] AutoMlForecastingInputs timeSeriesIdentifierColumn + * @property {string|null} [timeColumn] AutoMlForecastingInputs timeColumn + * @property {Array.|null} [transformations] AutoMlForecastingInputs transformations + * @property {string|null} [optimizationObjective] AutoMlForecastingInputs optimizationObjective + * @property {number|Long|null} [trainBudgetMilliNodeHours] AutoMlForecastingInputs trainBudgetMilliNodeHours + * @property {string|null} [weightColumn] AutoMlForecastingInputs weightColumn + * @property {Array.|null} [staticColumns] AutoMlForecastingInputs staticColumns + * @property {Array.|null} [timeVariantPastOnlyColumns] AutoMlForecastingInputs timeVariantPastOnlyColumns + * @property {Array.|null} [timeVariantPastAndFutureColumns] AutoMlForecastingInputs timeVariantPastAndFutureColumns + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.IPeriod|null} [period] AutoMlForecastingInputs period + * @property {number|Long|null} [forecastWindowStart] AutoMlForecastingInputs forecastWindowStart + * @property {number|Long|null} [forecastWindowEnd] AutoMlForecastingInputs forecastWindowEnd + * @property {number|Long|null} [pastHorizon] AutoMlForecastingInputs pastHorizon + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig|null} [exportEvaluatedDataItemsConfig] AutoMlForecastingInputs exportEvaluatedDataItemsConfig + */ + + /** + * Constructs a new AutoMlForecastingInputs. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @classdesc Represents an AutoMlForecastingInputs. + * @implements IAutoMlForecastingInputs + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlForecastingInputs=} [properties] Properties to set + */ + function AutoMlForecastingInputs(properties) { + this.transformations = []; + this.staticColumns = []; + this.timeVariantPastOnlyColumns = []; + this.timeVariantPastAndFutureColumns = []; + 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]]; + } + + /** + * AutoMlForecastingInputs targetColumn. + * @member {string} targetColumn + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + * @instance + */ + AutoMlForecastingInputs.prototype.targetColumn = ""; + + /** + * AutoMlForecastingInputs timeSeriesIdentifierColumn. + * @member {string} timeSeriesIdentifierColumn + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + * @instance + */ + AutoMlForecastingInputs.prototype.timeSeriesIdentifierColumn = ""; + + /** + * AutoMlForecastingInputs timeColumn. + * @member {string} timeColumn + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + * @instance + */ + AutoMlForecastingInputs.prototype.timeColumn = ""; + + /** + * AutoMlForecastingInputs transformations. + * @member {Array.} transformations + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + * @instance + */ + AutoMlForecastingInputs.prototype.transformations = $util.emptyArray; + + /** + * AutoMlForecastingInputs optimizationObjective. + * @member {string} optimizationObjective + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + * @instance + */ + AutoMlForecastingInputs.prototype.optimizationObjective = ""; + + /** + * AutoMlForecastingInputs trainBudgetMilliNodeHours. + * @member {number|Long} trainBudgetMilliNodeHours + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + * @instance + */ + AutoMlForecastingInputs.prototype.trainBudgetMilliNodeHours = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * AutoMlForecastingInputs weightColumn. + * @member {string} weightColumn + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + * @instance + */ + AutoMlForecastingInputs.prototype.weightColumn = ""; + + /** + * AutoMlForecastingInputs staticColumns. + * @member {Array.} staticColumns + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + * @instance + */ + AutoMlForecastingInputs.prototype.staticColumns = $util.emptyArray; + + /** + * AutoMlForecastingInputs timeVariantPastOnlyColumns. + * @member {Array.} timeVariantPastOnlyColumns + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + * @instance + */ + AutoMlForecastingInputs.prototype.timeVariantPastOnlyColumns = $util.emptyArray; + + /** + * AutoMlForecastingInputs timeVariantPastAndFutureColumns. + * @member {Array.} timeVariantPastAndFutureColumns + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + * @instance + */ + AutoMlForecastingInputs.prototype.timeVariantPastAndFutureColumns = $util.emptyArray; + + /** + * AutoMlForecastingInputs period. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.IPeriod|null|undefined} period + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + * @instance + */ + AutoMlForecastingInputs.prototype.period = null; + + /** + * AutoMlForecastingInputs forecastWindowStart. + * @member {number|Long} forecastWindowStart + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + * @instance + */ + AutoMlForecastingInputs.prototype.forecastWindowStart = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * AutoMlForecastingInputs forecastWindowEnd. + * @member {number|Long} forecastWindowEnd + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + * @instance + */ + AutoMlForecastingInputs.prototype.forecastWindowEnd = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * AutoMlForecastingInputs pastHorizon. + * @member {number|Long} pastHorizon + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + * @instance + */ + AutoMlForecastingInputs.prototype.pastHorizon = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * AutoMlForecastingInputs exportEvaluatedDataItemsConfig. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig|null|undefined} exportEvaluatedDataItemsConfig + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + * @instance + */ + AutoMlForecastingInputs.prototype.exportEvaluatedDataItemsConfig = null; + + /** + * Creates a new AutoMlForecastingInputs instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlForecastingInputs=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs} AutoMlForecastingInputs instance + */ + AutoMlForecastingInputs.create = function create(properties) { + return new AutoMlForecastingInputs(properties); + }; + + /** + * Encodes the specified AutoMlForecastingInputs message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlForecastingInputs} message AutoMlForecastingInputs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlForecastingInputs.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.targetColumn != null && Object.hasOwnProperty.call(message, "targetColumn")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.targetColumn); + if (message.timeSeriesIdentifierColumn != null && Object.hasOwnProperty.call(message, "timeSeriesIdentifierColumn")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.timeSeriesIdentifierColumn); + if (message.timeColumn != null && Object.hasOwnProperty.call(message, "timeColumn")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.timeColumn); + if (message.transformations != null && message.transformations.length) + for (var i = 0; i < message.transformations.length; ++i) + $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.encode(message.transformations[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.optimizationObjective != null && Object.hasOwnProperty.call(message, "optimizationObjective")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.optimizationObjective); + if (message.trainBudgetMilliNodeHours != null && Object.hasOwnProperty.call(message, "trainBudgetMilliNodeHours")) + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.trainBudgetMilliNodeHours); + if (message.weightColumn != null && Object.hasOwnProperty.call(message, "weightColumn")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.weightColumn); + if (message.staticColumns != null && message.staticColumns.length) + for (var i = 0; i < message.staticColumns.length; ++i) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.staticColumns[i]); + if (message.timeVariantPastOnlyColumns != null && message.timeVariantPastOnlyColumns.length) + for (var i = 0; i < message.timeVariantPastOnlyColumns.length; ++i) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.timeVariantPastOnlyColumns[i]); + if (message.timeVariantPastAndFutureColumns != null && message.timeVariantPastAndFutureColumns.length) + for (var i = 0; i < message.timeVariantPastAndFutureColumns.length; ++i) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.timeVariantPastAndFutureColumns[i]); + if (message.period != null && Object.hasOwnProperty.call(message, "period")) + $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period.encode(message.period, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.forecastWindowStart != null && Object.hasOwnProperty.call(message, "forecastWindowStart")) + writer.uint32(/* id 12, wireType 0 =*/96).int64(message.forecastWindowStart); + if (message.forecastWindowEnd != null && Object.hasOwnProperty.call(message, "forecastWindowEnd")) + writer.uint32(/* id 13, wireType 0 =*/104).int64(message.forecastWindowEnd); + if (message.pastHorizon != null && Object.hasOwnProperty.call(message, "pastHorizon")) + writer.uint32(/* id 14, wireType 0 =*/112).int64(message.pastHorizon); + if (message.exportEvaluatedDataItemsConfig != null && Object.hasOwnProperty.call(message, "exportEvaluatedDataItemsConfig")) + $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig.encode(message.exportEvaluatedDataItemsConfig, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified AutoMlForecastingInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlForecastingInputs} message AutoMlForecastingInputs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlForecastingInputs.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutoMlForecastingInputs message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs} AutoMlForecastingInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlForecastingInputs.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.targetColumn = reader.string(); + break; + case 2: + message.timeSeriesIdentifierColumn = reader.string(); + break; + case 3: + message.timeColumn = reader.string(); + break; + case 4: + if (!(message.transformations && message.transformations.length)) + message.transformations = []; + message.transformations.push($root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.decode(reader, reader.uint32())); + break; + case 5: + message.optimizationObjective = reader.string(); + break; + case 6: + message.trainBudgetMilliNodeHours = reader.int64(); + break; + case 7: + message.weightColumn = reader.string(); + break; + case 8: + if (!(message.staticColumns && message.staticColumns.length)) + message.staticColumns = []; + message.staticColumns.push(reader.string()); + break; + case 9: + if (!(message.timeVariantPastOnlyColumns && message.timeVariantPastOnlyColumns.length)) + message.timeVariantPastOnlyColumns = []; + message.timeVariantPastOnlyColumns.push(reader.string()); + break; + case 10: + if (!(message.timeVariantPastAndFutureColumns && message.timeVariantPastAndFutureColumns.length)) + message.timeVariantPastAndFutureColumns = []; + message.timeVariantPastAndFutureColumns.push(reader.string()); + break; + case 11: + message.period = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period.decode(reader, reader.uint32()); + break; + case 12: + message.forecastWindowStart = reader.int64(); + break; + case 13: + message.forecastWindowEnd = reader.int64(); + break; + case 14: + message.pastHorizon = reader.int64(); + break; + case 15: + message.exportEvaluatedDataItemsConfig = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutoMlForecastingInputs message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs} AutoMlForecastingInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlForecastingInputs.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutoMlForecastingInputs message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutoMlForecastingInputs.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.targetColumn != null && message.hasOwnProperty("targetColumn")) + if (!$util.isString(message.targetColumn)) + return "targetColumn: string expected"; + if (message.timeSeriesIdentifierColumn != null && message.hasOwnProperty("timeSeriesIdentifierColumn")) + if (!$util.isString(message.timeSeriesIdentifierColumn)) + return "timeSeriesIdentifierColumn: string expected"; + if (message.timeColumn != null && message.hasOwnProperty("timeColumn")) + if (!$util.isString(message.timeColumn)) + return "timeColumn: string expected"; + if (message.transformations != null && message.hasOwnProperty("transformations")) { + if (!Array.isArray(message.transformations)) + return "transformations: array expected"; + for (var i = 0; i < message.transformations.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.verify(message.transformations[i]); + if (error) + return "transformations." + error; + } + } + if (message.optimizationObjective != null && message.hasOwnProperty("optimizationObjective")) + if (!$util.isString(message.optimizationObjective)) + return "optimizationObjective: string expected"; + if (message.trainBudgetMilliNodeHours != null && message.hasOwnProperty("trainBudgetMilliNodeHours")) + if (!$util.isInteger(message.trainBudgetMilliNodeHours) && !(message.trainBudgetMilliNodeHours && $util.isInteger(message.trainBudgetMilliNodeHours.low) && $util.isInteger(message.trainBudgetMilliNodeHours.high))) + return "trainBudgetMilliNodeHours: integer|Long expected"; + if (message.weightColumn != null && message.hasOwnProperty("weightColumn")) + if (!$util.isString(message.weightColumn)) + return "weightColumn: string expected"; + if (message.staticColumns != null && message.hasOwnProperty("staticColumns")) { + if (!Array.isArray(message.staticColumns)) + return "staticColumns: array expected"; + for (var i = 0; i < message.staticColumns.length; ++i) + if (!$util.isString(message.staticColumns[i])) + return "staticColumns: string[] expected"; + } + if (message.timeVariantPastOnlyColumns != null && message.hasOwnProperty("timeVariantPastOnlyColumns")) { + if (!Array.isArray(message.timeVariantPastOnlyColumns)) + return "timeVariantPastOnlyColumns: array expected"; + for (var i = 0; i < message.timeVariantPastOnlyColumns.length; ++i) + if (!$util.isString(message.timeVariantPastOnlyColumns[i])) + return "timeVariantPastOnlyColumns: string[] expected"; + } + if (message.timeVariantPastAndFutureColumns != null && message.hasOwnProperty("timeVariantPastAndFutureColumns")) { + if (!Array.isArray(message.timeVariantPastAndFutureColumns)) + return "timeVariantPastAndFutureColumns: array expected"; + for (var i = 0; i < message.timeVariantPastAndFutureColumns.length; ++i) + if (!$util.isString(message.timeVariantPastAndFutureColumns[i])) + return "timeVariantPastAndFutureColumns: string[] expected"; + } + if (message.period != null && message.hasOwnProperty("period")) { + var error = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period.verify(message.period); + if (error) + return "period." + error; + } + if (message.forecastWindowStart != null && message.hasOwnProperty("forecastWindowStart")) + if (!$util.isInteger(message.forecastWindowStart) && !(message.forecastWindowStart && $util.isInteger(message.forecastWindowStart.low) && $util.isInteger(message.forecastWindowStart.high))) + return "forecastWindowStart: integer|Long expected"; + if (message.forecastWindowEnd != null && message.hasOwnProperty("forecastWindowEnd")) + if (!$util.isInteger(message.forecastWindowEnd) && !(message.forecastWindowEnd && $util.isInteger(message.forecastWindowEnd.low) && $util.isInteger(message.forecastWindowEnd.high))) + return "forecastWindowEnd: integer|Long expected"; + if (message.pastHorizon != null && message.hasOwnProperty("pastHorizon")) + if (!$util.isInteger(message.pastHorizon) && !(message.pastHorizon && $util.isInteger(message.pastHorizon.low) && $util.isInteger(message.pastHorizon.high))) + return "pastHorizon: integer|Long expected"; + if (message.exportEvaluatedDataItemsConfig != null && message.hasOwnProperty("exportEvaluatedDataItemsConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig.verify(message.exportEvaluatedDataItemsConfig); + if (error) + return "exportEvaluatedDataItemsConfig." + error; + } + return null; + }; + + /** + * Creates an AutoMlForecastingInputs message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs} AutoMlForecastingInputs + */ + AutoMlForecastingInputs.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs(); + if (object.targetColumn != null) + message.targetColumn = String(object.targetColumn); + if (object.timeSeriesIdentifierColumn != null) + message.timeSeriesIdentifierColumn = String(object.timeSeriesIdentifierColumn); + if (object.timeColumn != null) + message.timeColumn = String(object.timeColumn); + if (object.transformations) { + if (!Array.isArray(object.transformations)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.transformations: array expected"); + message.transformations = []; + for (var i = 0; i < object.transformations.length; ++i) { + if (typeof object.transformations[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.transformations: object expected"); + message.transformations[i] = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.fromObject(object.transformations[i]); + } + } + if (object.optimizationObjective != null) + message.optimizationObjective = String(object.optimizationObjective); + if (object.trainBudgetMilliNodeHours != null) + if ($util.Long) + (message.trainBudgetMilliNodeHours = $util.Long.fromValue(object.trainBudgetMilliNodeHours)).unsigned = false; + else if (typeof object.trainBudgetMilliNodeHours === "string") + message.trainBudgetMilliNodeHours = parseInt(object.trainBudgetMilliNodeHours, 10); + else if (typeof object.trainBudgetMilliNodeHours === "number") + message.trainBudgetMilliNodeHours = object.trainBudgetMilliNodeHours; + else if (typeof object.trainBudgetMilliNodeHours === "object") + message.trainBudgetMilliNodeHours = new $util.LongBits(object.trainBudgetMilliNodeHours.low >>> 0, object.trainBudgetMilliNodeHours.high >>> 0).toNumber(); + if (object.weightColumn != null) + message.weightColumn = String(object.weightColumn); + if (object.staticColumns) { + if (!Array.isArray(object.staticColumns)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.staticColumns: array expected"); + message.staticColumns = []; + for (var i = 0; i < object.staticColumns.length; ++i) + message.staticColumns[i] = String(object.staticColumns[i]); + } + if (object.timeVariantPastOnlyColumns) { + if (!Array.isArray(object.timeVariantPastOnlyColumns)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.timeVariantPastOnlyColumns: array expected"); + message.timeVariantPastOnlyColumns = []; + for (var i = 0; i < object.timeVariantPastOnlyColumns.length; ++i) + message.timeVariantPastOnlyColumns[i] = String(object.timeVariantPastOnlyColumns[i]); + } + if (object.timeVariantPastAndFutureColumns) { + if (!Array.isArray(object.timeVariantPastAndFutureColumns)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.timeVariantPastAndFutureColumns: array expected"); + message.timeVariantPastAndFutureColumns = []; + for (var i = 0; i < object.timeVariantPastAndFutureColumns.length; ++i) + message.timeVariantPastAndFutureColumns[i] = String(object.timeVariantPastAndFutureColumns[i]); + } + if (object.period != null) { + if (typeof object.period !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.period: object expected"); + message.period = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period.fromObject(object.period); + } + if (object.forecastWindowStart != null) + if ($util.Long) + (message.forecastWindowStart = $util.Long.fromValue(object.forecastWindowStart)).unsigned = false; + else if (typeof object.forecastWindowStart === "string") + message.forecastWindowStart = parseInt(object.forecastWindowStart, 10); + else if (typeof object.forecastWindowStart === "number") + message.forecastWindowStart = object.forecastWindowStart; + else if (typeof object.forecastWindowStart === "object") + message.forecastWindowStart = new $util.LongBits(object.forecastWindowStart.low >>> 0, object.forecastWindowStart.high >>> 0).toNumber(); + if (object.forecastWindowEnd != null) + if ($util.Long) + (message.forecastWindowEnd = $util.Long.fromValue(object.forecastWindowEnd)).unsigned = false; + else if (typeof object.forecastWindowEnd === "string") + message.forecastWindowEnd = parseInt(object.forecastWindowEnd, 10); + else if (typeof object.forecastWindowEnd === "number") + message.forecastWindowEnd = object.forecastWindowEnd; + else if (typeof object.forecastWindowEnd === "object") + message.forecastWindowEnd = new $util.LongBits(object.forecastWindowEnd.low >>> 0, object.forecastWindowEnd.high >>> 0).toNumber(); + if (object.pastHorizon != null) + if ($util.Long) + (message.pastHorizon = $util.Long.fromValue(object.pastHorizon)).unsigned = false; + else if (typeof object.pastHorizon === "string") + message.pastHorizon = parseInt(object.pastHorizon, 10); + else if (typeof object.pastHorizon === "number") + message.pastHorizon = object.pastHorizon; + else if (typeof object.pastHorizon === "object") + message.pastHorizon = new $util.LongBits(object.pastHorizon.low >>> 0, object.pastHorizon.high >>> 0).toNumber(); + if (object.exportEvaluatedDataItemsConfig != null) { + if (typeof object.exportEvaluatedDataItemsConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.exportEvaluatedDataItemsConfig: object expected"); + message.exportEvaluatedDataItemsConfig = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig.fromObject(object.exportEvaluatedDataItemsConfig); + } + return message; + }; + + /** + * Creates a plain object from an AutoMlForecastingInputs message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs} message AutoMlForecastingInputs + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutoMlForecastingInputs.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.transformations = []; + object.staticColumns = []; + object.timeVariantPastOnlyColumns = []; + object.timeVariantPastAndFutureColumns = []; + } + if (options.defaults) { + object.targetColumn = ""; + object.timeSeriesIdentifierColumn = ""; + object.timeColumn = ""; + object.optimizationObjective = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.trainBudgetMilliNodeHours = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.trainBudgetMilliNodeHours = options.longs === String ? "0" : 0; + object.weightColumn = ""; + object.period = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.forecastWindowStart = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.forecastWindowStart = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.forecastWindowEnd = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.forecastWindowEnd = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.pastHorizon = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.pastHorizon = options.longs === String ? "0" : 0; + object.exportEvaluatedDataItemsConfig = null; + } + if (message.targetColumn != null && message.hasOwnProperty("targetColumn")) + object.targetColumn = message.targetColumn; + if (message.timeSeriesIdentifierColumn != null && message.hasOwnProperty("timeSeriesIdentifierColumn")) + object.timeSeriesIdentifierColumn = message.timeSeriesIdentifierColumn; + if (message.timeColumn != null && message.hasOwnProperty("timeColumn")) + object.timeColumn = message.timeColumn; + if (message.transformations && message.transformations.length) { + object.transformations = []; + for (var j = 0; j < message.transformations.length; ++j) + object.transformations[j] = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.toObject(message.transformations[j], options); + } + if (message.optimizationObjective != null && message.hasOwnProperty("optimizationObjective")) + object.optimizationObjective = message.optimizationObjective; + if (message.trainBudgetMilliNodeHours != null && message.hasOwnProperty("trainBudgetMilliNodeHours")) + if (typeof message.trainBudgetMilliNodeHours === "number") + object.trainBudgetMilliNodeHours = options.longs === String ? String(message.trainBudgetMilliNodeHours) : message.trainBudgetMilliNodeHours; + else + object.trainBudgetMilliNodeHours = options.longs === String ? $util.Long.prototype.toString.call(message.trainBudgetMilliNodeHours) : options.longs === Number ? new $util.LongBits(message.trainBudgetMilliNodeHours.low >>> 0, message.trainBudgetMilliNodeHours.high >>> 0).toNumber() : message.trainBudgetMilliNodeHours; + if (message.weightColumn != null && message.hasOwnProperty("weightColumn")) + object.weightColumn = message.weightColumn; + if (message.staticColumns && message.staticColumns.length) { + object.staticColumns = []; + for (var j = 0; j < message.staticColumns.length; ++j) + object.staticColumns[j] = message.staticColumns[j]; + } + if (message.timeVariantPastOnlyColumns && message.timeVariantPastOnlyColumns.length) { + object.timeVariantPastOnlyColumns = []; + for (var j = 0; j < message.timeVariantPastOnlyColumns.length; ++j) + object.timeVariantPastOnlyColumns[j] = message.timeVariantPastOnlyColumns[j]; + } + if (message.timeVariantPastAndFutureColumns && message.timeVariantPastAndFutureColumns.length) { + object.timeVariantPastAndFutureColumns = []; + for (var j = 0; j < message.timeVariantPastAndFutureColumns.length; ++j) + object.timeVariantPastAndFutureColumns[j] = message.timeVariantPastAndFutureColumns[j]; + } + if (message.period != null && message.hasOwnProperty("period")) + object.period = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period.toObject(message.period, options); + if (message.forecastWindowStart != null && message.hasOwnProperty("forecastWindowStart")) + if (typeof message.forecastWindowStart === "number") + object.forecastWindowStart = options.longs === String ? String(message.forecastWindowStart) : message.forecastWindowStart; + else + object.forecastWindowStart = options.longs === String ? $util.Long.prototype.toString.call(message.forecastWindowStart) : options.longs === Number ? new $util.LongBits(message.forecastWindowStart.low >>> 0, message.forecastWindowStart.high >>> 0).toNumber() : message.forecastWindowStart; + if (message.forecastWindowEnd != null && message.hasOwnProperty("forecastWindowEnd")) + if (typeof message.forecastWindowEnd === "number") + object.forecastWindowEnd = options.longs === String ? String(message.forecastWindowEnd) : message.forecastWindowEnd; + else + object.forecastWindowEnd = options.longs === String ? $util.Long.prototype.toString.call(message.forecastWindowEnd) : options.longs === Number ? new $util.LongBits(message.forecastWindowEnd.low >>> 0, message.forecastWindowEnd.high >>> 0).toNumber() : message.forecastWindowEnd; + if (message.pastHorizon != null && message.hasOwnProperty("pastHorizon")) + if (typeof message.pastHorizon === "number") + object.pastHorizon = options.longs === String ? String(message.pastHorizon) : message.pastHorizon; + else + object.pastHorizon = options.longs === String ? $util.Long.prototype.toString.call(message.pastHorizon) : options.longs === Number ? new $util.LongBits(message.pastHorizon.low >>> 0, message.pastHorizon.high >>> 0).toNumber() : message.pastHorizon; + if (message.exportEvaluatedDataItemsConfig != null && message.hasOwnProperty("exportEvaluatedDataItemsConfig")) + object.exportEvaluatedDataItemsConfig = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig.toObject(message.exportEvaluatedDataItemsConfig, options); + return object; + }; + + /** + * Converts this AutoMlForecastingInputs to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + * @instance + * @returns {Object.} JSON object + */ + AutoMlForecastingInputs.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + AutoMlForecastingInputs.Transformation = (function() { + + /** + * Properties of a Transformation. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + * @interface ITransformation + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.IAutoTransformation|null} [auto] Transformation auto + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.INumericTransformation|null} [numeric] Transformation numeric + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ICategoricalTransformation|null} [categorical] Transformation categorical + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ITimestampTransformation|null} [timestamp] Transformation timestamp + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ITextTransformation|null} [text] Transformation text + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.INumericArrayTransformation|null} [repeatedNumeric] Transformation repeatedNumeric + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ICategoricalArrayTransformation|null} [repeatedCategorical] Transformation repeatedCategorical + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ITextArrayTransformation|null} [repeatedText] Transformation repeatedText + */ + + /** + * Constructs a new Transformation. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + * @classdesc Represents a Transformation. + * @implements ITransformation + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.ITransformation=} [properties] Properties to set + */ + function Transformation(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]]; + } + + /** + * Transformation auto. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.IAutoTransformation|null|undefined} auto + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation + * @instance + */ + Transformation.prototype.auto = null; + + /** + * Transformation numeric. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.INumericTransformation|null|undefined} numeric + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation + * @instance + */ + Transformation.prototype.numeric = null; + + /** + * Transformation categorical. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ICategoricalTransformation|null|undefined} categorical + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation + * @instance + */ + Transformation.prototype.categorical = null; + + /** + * Transformation timestamp. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ITimestampTransformation|null|undefined} timestamp + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation + * @instance + */ + Transformation.prototype.timestamp = null; + + /** + * Transformation text. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ITextTransformation|null|undefined} text + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation + * @instance + */ + Transformation.prototype.text = null; + + /** + * Transformation repeatedNumeric. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.INumericArrayTransformation|null|undefined} repeatedNumeric + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation + * @instance + */ + Transformation.prototype.repeatedNumeric = null; + + /** + * Transformation repeatedCategorical. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ICategoricalArrayTransformation|null|undefined} repeatedCategorical + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation + * @instance + */ + Transformation.prototype.repeatedCategorical = null; + + /** + * Transformation repeatedText. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ITextArrayTransformation|null|undefined} repeatedText + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation + * @instance + */ + Transformation.prototype.repeatedText = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Transformation transformationDetail. + * @member {"auto"|"numeric"|"categorical"|"timestamp"|"text"|"repeatedNumeric"|"repeatedCategorical"|"repeatedText"|undefined} transformationDetail + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation + * @instance + */ + Object.defineProperty(Transformation.prototype, "transformationDetail", { + get: $util.oneOfGetter($oneOfFields = ["auto", "numeric", "categorical", "timestamp", "text", "repeatedNumeric", "repeatedCategorical", "repeatedText"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Transformation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.ITransformation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation} Transformation instance + */ + Transformation.create = function create(properties) { + return new Transformation(properties); + }; + + /** + * Encodes the specified Transformation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.ITransformation} message Transformation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Transformation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.auto != null && Object.hasOwnProperty.call(message, "auto")) + $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation.encode(message.auto, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.numeric != null && Object.hasOwnProperty.call(message, "numeric")) + $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation.encode(message.numeric, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.categorical != null && Object.hasOwnProperty.call(message, "categorical")) + $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation.encode(message.categorical, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) + $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation.encode(message.timestamp, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.text != null && Object.hasOwnProperty.call(message, "text")) + $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation.encode(message.text, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.repeatedNumeric != null && Object.hasOwnProperty.call(message, "repeatedNumeric")) + $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation.encode(message.repeatedNumeric, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.repeatedCategorical != null && Object.hasOwnProperty.call(message, "repeatedCategorical")) + $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation.encode(message.repeatedCategorical, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.repeatedText != null && Object.hasOwnProperty.call(message, "repeatedText")) + $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation.encode(message.repeatedText, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Transformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.ITransformation} message Transformation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Transformation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Transformation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation} Transformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Transformation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.auto = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation.decode(reader, reader.uint32()); + break; + case 2: + message.numeric = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation.decode(reader, reader.uint32()); + break; + case 3: + message.categorical = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation.decode(reader, reader.uint32()); + break; + case 4: + message.timestamp = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation.decode(reader, reader.uint32()); + break; + case 5: + message.text = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation.decode(reader, reader.uint32()); + break; + case 6: + message.repeatedNumeric = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation.decode(reader, reader.uint32()); + break; + case 7: + message.repeatedCategorical = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation.decode(reader, reader.uint32()); + break; + case 8: + message.repeatedText = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Transformation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation} Transformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Transformation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Transformation message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Transformation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.auto != null && message.hasOwnProperty("auto")) { + properties.transformationDetail = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation.verify(message.auto); + if (error) + return "auto." + error; + } + } + if (message.numeric != null && message.hasOwnProperty("numeric")) { + if (properties.transformationDetail === 1) + return "transformationDetail: multiple values"; + properties.transformationDetail = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation.verify(message.numeric); + if (error) + return "numeric." + error; + } + } + if (message.categorical != null && message.hasOwnProperty("categorical")) { + if (properties.transformationDetail === 1) + return "transformationDetail: multiple values"; + properties.transformationDetail = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation.verify(message.categorical); + if (error) + return "categorical." + error; + } + } + if (message.timestamp != null && message.hasOwnProperty("timestamp")) { + if (properties.transformationDetail === 1) + return "transformationDetail: multiple values"; + properties.transformationDetail = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation.verify(message.timestamp); + if (error) + return "timestamp." + error; + } + } + if (message.text != null && message.hasOwnProperty("text")) { + if (properties.transformationDetail === 1) + return "transformationDetail: multiple values"; + properties.transformationDetail = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation.verify(message.text); + if (error) + return "text." + error; + } + } + if (message.repeatedNumeric != null && message.hasOwnProperty("repeatedNumeric")) { + if (properties.transformationDetail === 1) + return "transformationDetail: multiple values"; + properties.transformationDetail = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation.verify(message.repeatedNumeric); + if (error) + return "repeatedNumeric." + error; + } + } + if (message.repeatedCategorical != null && message.hasOwnProperty("repeatedCategorical")) { + if (properties.transformationDetail === 1) + return "transformationDetail: multiple values"; + properties.transformationDetail = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation.verify(message.repeatedCategorical); + if (error) + return "repeatedCategorical." + error; + } + } + if (message.repeatedText != null && message.hasOwnProperty("repeatedText")) { + if (properties.transformationDetail === 1) + return "transformationDetail: multiple values"; + properties.transformationDetail = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation.verify(message.repeatedText); + if (error) + return "repeatedText." + error; + } + } + return null; + }; + + /** + * Creates a Transformation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation} Transformation + */ + Transformation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation(); + if (object.auto != null) { + if (typeof object.auto !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.auto: object expected"); + message.auto = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation.fromObject(object.auto); + } + if (object.numeric != null) { + if (typeof object.numeric !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.numeric: object expected"); + message.numeric = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation.fromObject(object.numeric); + } + if (object.categorical != null) { + if (typeof object.categorical !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.categorical: object expected"); + message.categorical = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation.fromObject(object.categorical); + } + if (object.timestamp != null) { + if (typeof object.timestamp !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.timestamp: object expected"); + message.timestamp = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation.fromObject(object.timestamp); + } + if (object.text != null) { + if (typeof object.text !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.text: object expected"); + message.text = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation.fromObject(object.text); + } + if (object.repeatedNumeric != null) { + if (typeof object.repeatedNumeric !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.repeatedNumeric: object expected"); + message.repeatedNumeric = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation.fromObject(object.repeatedNumeric); + } + if (object.repeatedCategorical != null) { + if (typeof object.repeatedCategorical !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.repeatedCategorical: object expected"); + message.repeatedCategorical = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation.fromObject(object.repeatedCategorical); + } + if (object.repeatedText != null) { + if (typeof object.repeatedText !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.repeatedText: object expected"); + message.repeatedText = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation.fromObject(object.repeatedText); + } + return message; + }; + + /** + * Creates a plain object from a Transformation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation} message Transformation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Transformation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.auto != null && message.hasOwnProperty("auto")) { + object.auto = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation.toObject(message.auto, options); + if (options.oneofs) + object.transformationDetail = "auto"; + } + if (message.numeric != null && message.hasOwnProperty("numeric")) { + object.numeric = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation.toObject(message.numeric, options); + if (options.oneofs) + object.transformationDetail = "numeric"; + } + if (message.categorical != null && message.hasOwnProperty("categorical")) { + object.categorical = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation.toObject(message.categorical, options); + if (options.oneofs) + object.transformationDetail = "categorical"; + } + if (message.timestamp != null && message.hasOwnProperty("timestamp")) { + object.timestamp = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation.toObject(message.timestamp, options); + if (options.oneofs) + object.transformationDetail = "timestamp"; + } + if (message.text != null && message.hasOwnProperty("text")) { + object.text = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation.toObject(message.text, options); + if (options.oneofs) + object.transformationDetail = "text"; + } + if (message.repeatedNumeric != null && message.hasOwnProperty("repeatedNumeric")) { + object.repeatedNumeric = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation.toObject(message.repeatedNumeric, options); + if (options.oneofs) + object.transformationDetail = "repeatedNumeric"; + } + if (message.repeatedCategorical != null && message.hasOwnProperty("repeatedCategorical")) { + object.repeatedCategorical = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation.toObject(message.repeatedCategorical, options); + if (options.oneofs) + object.transformationDetail = "repeatedCategorical"; + } + if (message.repeatedText != null && message.hasOwnProperty("repeatedText")) { + object.repeatedText = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation.toObject(message.repeatedText, options); + if (options.oneofs) + object.transformationDetail = "repeatedText"; + } + return object; + }; + + /** + * Converts this Transformation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation + * @instance + * @returns {Object.} JSON object + */ + Transformation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + Transformation.AutoTransformation = (function() { + + /** + * Properties of an AutoTransformation. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation + * @interface IAutoTransformation + * @property {string|null} [columnName] AutoTransformation columnName + */ + + /** + * Constructs a new AutoTransformation. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation + * @classdesc Represents an AutoTransformation. + * @implements IAutoTransformation + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.IAutoTransformation=} [properties] Properties to set + */ + function AutoTransformation(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]]; + } + + /** + * AutoTransformation columnName. + * @member {string} columnName + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation + * @instance + */ + AutoTransformation.prototype.columnName = ""; + + /** + * Creates a new AutoTransformation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.IAutoTransformation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation} AutoTransformation instance + */ + AutoTransformation.create = function create(properties) { + return new AutoTransformation(properties); + }; + + /** + * Encodes the specified AutoTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.IAutoTransformation} message AutoTransformation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoTransformation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.columnName != null && Object.hasOwnProperty.call(message, "columnName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.columnName); + return writer; + }; + + /** + * Encodes the specified AutoTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.IAutoTransformation} message AutoTransformation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoTransformation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutoTransformation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation} AutoTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoTransformation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.columnName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutoTransformation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation} AutoTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoTransformation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutoTransformation message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutoTransformation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.columnName != null && message.hasOwnProperty("columnName")) + if (!$util.isString(message.columnName)) + return "columnName: string expected"; + return null; + }; + + /** + * Creates an AutoTransformation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation} AutoTransformation + */ + AutoTransformation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation(); + if (object.columnName != null) + message.columnName = String(object.columnName); + return message; + }; + + /** + * Creates a plain object from an AutoTransformation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation} message AutoTransformation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutoTransformation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.columnName = ""; + if (message.columnName != null && message.hasOwnProperty("columnName")) + object.columnName = message.columnName; + return object; + }; + + /** + * Converts this AutoTransformation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.AutoTransformation + * @instance + * @returns {Object.} JSON object + */ + AutoTransformation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AutoTransformation; + })(); + + Transformation.NumericTransformation = (function() { + + /** + * Properties of a NumericTransformation. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation + * @interface INumericTransformation + * @property {string|null} [columnName] NumericTransformation columnName + * @property {boolean|null} [invalidValuesAllowed] NumericTransformation invalidValuesAllowed + */ + + /** + * Constructs a new NumericTransformation. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation + * @classdesc Represents a NumericTransformation. + * @implements INumericTransformation + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.INumericTransformation=} [properties] Properties to set + */ + function NumericTransformation(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]]; + } + + /** + * NumericTransformation columnName. + * @member {string} columnName + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation + * @instance + */ + NumericTransformation.prototype.columnName = ""; + + /** + * NumericTransformation invalidValuesAllowed. + * @member {boolean} invalidValuesAllowed + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation + * @instance + */ + NumericTransformation.prototype.invalidValuesAllowed = false; + + /** + * Creates a new NumericTransformation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.INumericTransformation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation} NumericTransformation instance + */ + NumericTransformation.create = function create(properties) { + return new NumericTransformation(properties); + }; + + /** + * Encodes the specified NumericTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.INumericTransformation} message NumericTransformation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NumericTransformation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.columnName != null && Object.hasOwnProperty.call(message, "columnName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.columnName); + if (message.invalidValuesAllowed != null && Object.hasOwnProperty.call(message, "invalidValuesAllowed")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.invalidValuesAllowed); + return writer; + }; + + /** + * Encodes the specified NumericTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.INumericTransformation} message NumericTransformation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NumericTransformation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NumericTransformation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation} NumericTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NumericTransformation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.columnName = reader.string(); + break; + case 2: + message.invalidValuesAllowed = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NumericTransformation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation} NumericTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NumericTransformation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NumericTransformation message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NumericTransformation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.columnName != null && message.hasOwnProperty("columnName")) + if (!$util.isString(message.columnName)) + return "columnName: string expected"; + if (message.invalidValuesAllowed != null && message.hasOwnProperty("invalidValuesAllowed")) + if (typeof message.invalidValuesAllowed !== "boolean") + return "invalidValuesAllowed: boolean expected"; + return null; + }; + + /** + * Creates a NumericTransformation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation} NumericTransformation + */ + NumericTransformation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation(); + if (object.columnName != null) + message.columnName = String(object.columnName); + if (object.invalidValuesAllowed != null) + message.invalidValuesAllowed = Boolean(object.invalidValuesAllowed); + return message; + }; + + /** + * Creates a plain object from a NumericTransformation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation} message NumericTransformation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NumericTransformation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.columnName = ""; + object.invalidValuesAllowed = false; + } + if (message.columnName != null && message.hasOwnProperty("columnName")) + object.columnName = message.columnName; + if (message.invalidValuesAllowed != null && message.hasOwnProperty("invalidValuesAllowed")) + object.invalidValuesAllowed = message.invalidValuesAllowed; + return object; + }; + + /** + * Converts this NumericTransformation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericTransformation + * @instance + * @returns {Object.} JSON object + */ + NumericTransformation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return NumericTransformation; + })(); + + Transformation.CategoricalTransformation = (function() { + + /** + * Properties of a CategoricalTransformation. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation + * @interface ICategoricalTransformation + * @property {string|null} [columnName] CategoricalTransformation columnName + */ + + /** + * Constructs a new CategoricalTransformation. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation + * @classdesc Represents a CategoricalTransformation. + * @implements ICategoricalTransformation + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ICategoricalTransformation=} [properties] Properties to set + */ + function CategoricalTransformation(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]]; + } + + /** + * CategoricalTransformation columnName. + * @member {string} columnName + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation + * @instance + */ + CategoricalTransformation.prototype.columnName = ""; + + /** + * Creates a new CategoricalTransformation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ICategoricalTransformation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation} CategoricalTransformation instance + */ + CategoricalTransformation.create = function create(properties) { + return new CategoricalTransformation(properties); + }; + + /** + * Encodes the specified CategoricalTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ICategoricalTransformation} message CategoricalTransformation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CategoricalTransformation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.columnName != null && Object.hasOwnProperty.call(message, "columnName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.columnName); + return writer; + }; + + /** + * Encodes the specified CategoricalTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ICategoricalTransformation} message CategoricalTransformation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CategoricalTransformation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CategoricalTransformation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation} CategoricalTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CategoricalTransformation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.columnName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CategoricalTransformation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation} CategoricalTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CategoricalTransformation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CategoricalTransformation message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CategoricalTransformation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.columnName != null && message.hasOwnProperty("columnName")) + if (!$util.isString(message.columnName)) + return "columnName: string expected"; + return null; + }; + + /** + * Creates a CategoricalTransformation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation} CategoricalTransformation + */ + CategoricalTransformation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation(); + if (object.columnName != null) + message.columnName = String(object.columnName); + return message; + }; + + /** + * Creates a plain object from a CategoricalTransformation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation} message CategoricalTransformation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CategoricalTransformation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.columnName = ""; + if (message.columnName != null && message.hasOwnProperty("columnName")) + object.columnName = message.columnName; + return object; + }; + + /** + * Converts this CategoricalTransformation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalTransformation + * @instance + * @returns {Object.} JSON object + */ + CategoricalTransformation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CategoricalTransformation; + })(); + + Transformation.TimestampTransformation = (function() { + + /** + * Properties of a TimestampTransformation. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation + * @interface ITimestampTransformation + * @property {string|null} [columnName] TimestampTransformation columnName + * @property {string|null} [timeFormat] TimestampTransformation timeFormat + * @property {boolean|null} [invalidValuesAllowed] TimestampTransformation invalidValuesAllowed + */ + + /** + * Constructs a new TimestampTransformation. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation + * @classdesc Represents a TimestampTransformation. + * @implements ITimestampTransformation + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ITimestampTransformation=} [properties] Properties to set + */ + function TimestampTransformation(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]]; + } + + /** + * TimestampTransformation columnName. + * @member {string} columnName + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation + * @instance + */ + TimestampTransformation.prototype.columnName = ""; + + /** + * TimestampTransformation timeFormat. + * @member {string} timeFormat + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation + * @instance + */ + TimestampTransformation.prototype.timeFormat = ""; + + /** + * TimestampTransformation invalidValuesAllowed. + * @member {boolean} invalidValuesAllowed + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation + * @instance + */ + TimestampTransformation.prototype.invalidValuesAllowed = false; + + /** + * Creates a new TimestampTransformation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ITimestampTransformation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation} TimestampTransformation instance + */ + TimestampTransformation.create = function create(properties) { + return new TimestampTransformation(properties); + }; + + /** + * Encodes the specified TimestampTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ITimestampTransformation} message TimestampTransformation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TimestampTransformation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.columnName != null && Object.hasOwnProperty.call(message, "columnName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.columnName); + if (message.timeFormat != null && Object.hasOwnProperty.call(message, "timeFormat")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.timeFormat); + if (message.invalidValuesAllowed != null && Object.hasOwnProperty.call(message, "invalidValuesAllowed")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.invalidValuesAllowed); + return writer; + }; + + /** + * Encodes the specified TimestampTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ITimestampTransformation} message TimestampTransformation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TimestampTransformation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TimestampTransformation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation} TimestampTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TimestampTransformation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.columnName = reader.string(); + break; + case 2: + message.timeFormat = reader.string(); + break; + case 3: + message.invalidValuesAllowed = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TimestampTransformation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation} TimestampTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TimestampTransformation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TimestampTransformation message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TimestampTransformation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.columnName != null && message.hasOwnProperty("columnName")) + if (!$util.isString(message.columnName)) + return "columnName: string expected"; + if (message.timeFormat != null && message.hasOwnProperty("timeFormat")) + if (!$util.isString(message.timeFormat)) + return "timeFormat: string expected"; + if (message.invalidValuesAllowed != null && message.hasOwnProperty("invalidValuesAllowed")) + if (typeof message.invalidValuesAllowed !== "boolean") + return "invalidValuesAllowed: boolean expected"; + return null; + }; + + /** + * Creates a TimestampTransformation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation} TimestampTransformation + */ + TimestampTransformation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation(); + if (object.columnName != null) + message.columnName = String(object.columnName); + if (object.timeFormat != null) + message.timeFormat = String(object.timeFormat); + if (object.invalidValuesAllowed != null) + message.invalidValuesAllowed = Boolean(object.invalidValuesAllowed); + return message; + }; + + /** + * Creates a plain object from a TimestampTransformation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation} message TimestampTransformation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TimestampTransformation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.columnName = ""; + object.timeFormat = ""; + object.invalidValuesAllowed = false; + } + if (message.columnName != null && message.hasOwnProperty("columnName")) + object.columnName = message.columnName; + if (message.timeFormat != null && message.hasOwnProperty("timeFormat")) + object.timeFormat = message.timeFormat; + if (message.invalidValuesAllowed != null && message.hasOwnProperty("invalidValuesAllowed")) + object.invalidValuesAllowed = message.invalidValuesAllowed; + return object; + }; + + /** + * Converts this TimestampTransformation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TimestampTransformation + * @instance + * @returns {Object.} JSON object + */ + TimestampTransformation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return TimestampTransformation; + })(); + + Transformation.TextTransformation = (function() { + + /** + * Properties of a TextTransformation. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation + * @interface ITextTransformation + * @property {string|null} [columnName] TextTransformation columnName + */ + + /** + * Constructs a new TextTransformation. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation + * @classdesc Represents a TextTransformation. + * @implements ITextTransformation + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ITextTransformation=} [properties] Properties to set + */ + function TextTransformation(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]]; + } + + /** + * TextTransformation columnName. + * @member {string} columnName + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation + * @instance + */ + TextTransformation.prototype.columnName = ""; + + /** + * Creates a new TextTransformation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ITextTransformation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation} TextTransformation instance + */ + TextTransformation.create = function create(properties) { + return new TextTransformation(properties); + }; + + /** + * Encodes the specified TextTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ITextTransformation} message TextTransformation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TextTransformation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.columnName != null && Object.hasOwnProperty.call(message, "columnName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.columnName); + return writer; + }; + + /** + * Encodes the specified TextTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ITextTransformation} message TextTransformation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TextTransformation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TextTransformation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation} TextTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TextTransformation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.columnName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TextTransformation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation} TextTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TextTransformation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TextTransformation message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TextTransformation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.columnName != null && message.hasOwnProperty("columnName")) + if (!$util.isString(message.columnName)) + return "columnName: string expected"; + return null; + }; + + /** + * Creates a TextTransformation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation} TextTransformation + */ + TextTransformation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation(); + if (object.columnName != null) + message.columnName = String(object.columnName); + return message; + }; + + /** + * Creates a plain object from a TextTransformation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation} message TextTransformation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TextTransformation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.columnName = ""; + if (message.columnName != null && message.hasOwnProperty("columnName")) + object.columnName = message.columnName; + return object; + }; + + /** + * Converts this TextTransformation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextTransformation + * @instance + * @returns {Object.} JSON object + */ + TextTransformation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return TextTransformation; + })(); + + Transformation.NumericArrayTransformation = (function() { + + /** + * Properties of a NumericArrayTransformation. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation + * @interface INumericArrayTransformation + * @property {string|null} [columnName] NumericArrayTransformation columnName + * @property {boolean|null} [invalidValuesAllowed] NumericArrayTransformation invalidValuesAllowed + */ + + /** + * Constructs a new NumericArrayTransformation. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation + * @classdesc Represents a NumericArrayTransformation. + * @implements INumericArrayTransformation + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.INumericArrayTransformation=} [properties] Properties to set + */ + function NumericArrayTransformation(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]]; + } + + /** + * NumericArrayTransformation columnName. + * @member {string} columnName + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation + * @instance + */ + NumericArrayTransformation.prototype.columnName = ""; + + /** + * NumericArrayTransformation invalidValuesAllowed. + * @member {boolean} invalidValuesAllowed + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation + * @instance + */ + NumericArrayTransformation.prototype.invalidValuesAllowed = false; + + /** + * Creates a new NumericArrayTransformation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.INumericArrayTransformation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation} NumericArrayTransformation instance + */ + NumericArrayTransformation.create = function create(properties) { + return new NumericArrayTransformation(properties); + }; + + /** + * Encodes the specified NumericArrayTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.INumericArrayTransformation} message NumericArrayTransformation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NumericArrayTransformation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.columnName != null && Object.hasOwnProperty.call(message, "columnName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.columnName); + if (message.invalidValuesAllowed != null && Object.hasOwnProperty.call(message, "invalidValuesAllowed")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.invalidValuesAllowed); + return writer; + }; + + /** + * Encodes the specified NumericArrayTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.INumericArrayTransformation} message NumericArrayTransformation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NumericArrayTransformation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NumericArrayTransformation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation} NumericArrayTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NumericArrayTransformation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.columnName = reader.string(); + break; + case 2: + message.invalidValuesAllowed = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NumericArrayTransformation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation} NumericArrayTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NumericArrayTransformation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NumericArrayTransformation message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NumericArrayTransformation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.columnName != null && message.hasOwnProperty("columnName")) + if (!$util.isString(message.columnName)) + return "columnName: string expected"; + if (message.invalidValuesAllowed != null && message.hasOwnProperty("invalidValuesAllowed")) + if (typeof message.invalidValuesAllowed !== "boolean") + return "invalidValuesAllowed: boolean expected"; + return null; + }; + + /** + * Creates a NumericArrayTransformation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation} NumericArrayTransformation + */ + NumericArrayTransformation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation(); + if (object.columnName != null) + message.columnName = String(object.columnName); + if (object.invalidValuesAllowed != null) + message.invalidValuesAllowed = Boolean(object.invalidValuesAllowed); + return message; + }; + + /** + * Creates a plain object from a NumericArrayTransformation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation} message NumericArrayTransformation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NumericArrayTransformation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.columnName = ""; + object.invalidValuesAllowed = false; + } + if (message.columnName != null && message.hasOwnProperty("columnName")) + object.columnName = message.columnName; + if (message.invalidValuesAllowed != null && message.hasOwnProperty("invalidValuesAllowed")) + object.invalidValuesAllowed = message.invalidValuesAllowed; + return object; + }; + + /** + * Converts this NumericArrayTransformation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.NumericArrayTransformation + * @instance + * @returns {Object.} JSON object + */ + NumericArrayTransformation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return NumericArrayTransformation; + })(); + + Transformation.CategoricalArrayTransformation = (function() { + + /** + * Properties of a CategoricalArrayTransformation. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation + * @interface ICategoricalArrayTransformation + * @property {string|null} [columnName] CategoricalArrayTransformation columnName + */ + + /** + * Constructs a new CategoricalArrayTransformation. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation + * @classdesc Represents a CategoricalArrayTransformation. + * @implements ICategoricalArrayTransformation + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ICategoricalArrayTransformation=} [properties] Properties to set + */ + function CategoricalArrayTransformation(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]]; + } + + /** + * CategoricalArrayTransformation columnName. + * @member {string} columnName + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation + * @instance + */ + CategoricalArrayTransformation.prototype.columnName = ""; + + /** + * Creates a new CategoricalArrayTransformation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ICategoricalArrayTransformation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation} CategoricalArrayTransformation instance + */ + CategoricalArrayTransformation.create = function create(properties) { + return new CategoricalArrayTransformation(properties); + }; + + /** + * Encodes the specified CategoricalArrayTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ICategoricalArrayTransformation} message CategoricalArrayTransformation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CategoricalArrayTransformation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.columnName != null && Object.hasOwnProperty.call(message, "columnName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.columnName); + return writer; + }; + + /** + * Encodes the specified CategoricalArrayTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ICategoricalArrayTransformation} message CategoricalArrayTransformation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CategoricalArrayTransformation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CategoricalArrayTransformation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation} CategoricalArrayTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CategoricalArrayTransformation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.columnName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CategoricalArrayTransformation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation} CategoricalArrayTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CategoricalArrayTransformation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CategoricalArrayTransformation message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CategoricalArrayTransformation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.columnName != null && message.hasOwnProperty("columnName")) + if (!$util.isString(message.columnName)) + return "columnName: string expected"; + return null; + }; + + /** + * Creates a CategoricalArrayTransformation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation} CategoricalArrayTransformation + */ + CategoricalArrayTransformation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation(); + if (object.columnName != null) + message.columnName = String(object.columnName); + return message; + }; + + /** + * Creates a plain object from a CategoricalArrayTransformation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation} message CategoricalArrayTransformation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CategoricalArrayTransformation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.columnName = ""; + if (message.columnName != null && message.hasOwnProperty("columnName")) + object.columnName = message.columnName; + return object; + }; + + /** + * Converts this CategoricalArrayTransformation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.CategoricalArrayTransformation + * @instance + * @returns {Object.} JSON object + */ + CategoricalArrayTransformation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CategoricalArrayTransformation; + })(); + + Transformation.TextArrayTransformation = (function() { + + /** + * Properties of a TextArrayTransformation. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation + * @interface ITextArrayTransformation + * @property {string|null} [columnName] TextArrayTransformation columnName + */ + + /** + * Constructs a new TextArrayTransformation. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation + * @classdesc Represents a TextArrayTransformation. + * @implements ITextArrayTransformation + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ITextArrayTransformation=} [properties] Properties to set + */ + function TextArrayTransformation(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]]; + } + + /** + * TextArrayTransformation columnName. + * @member {string} columnName + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation + * @instance + */ + TextArrayTransformation.prototype.columnName = ""; + + /** + * Creates a new TextArrayTransformation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ITextArrayTransformation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation} TextArrayTransformation instance + */ + TextArrayTransformation.create = function create(properties) { + return new TextArrayTransformation(properties); + }; + + /** + * Encodes the specified TextArrayTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ITextArrayTransformation} message TextArrayTransformation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TextArrayTransformation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.columnName != null && Object.hasOwnProperty.call(message, "columnName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.columnName); + return writer; + }; + + /** + * Encodes the specified TextArrayTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.ITextArrayTransformation} message TextArrayTransformation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TextArrayTransformation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TextArrayTransformation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation} TextArrayTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TextArrayTransformation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.columnName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TextArrayTransformation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation} TextArrayTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TextArrayTransformation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TextArrayTransformation message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TextArrayTransformation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.columnName != null && message.hasOwnProperty("columnName")) + if (!$util.isString(message.columnName)) + return "columnName: string expected"; + return null; + }; + + /** + * Creates a TextArrayTransformation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation} TextArrayTransformation + */ + TextArrayTransformation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation(); + if (object.columnName != null) + message.columnName = String(object.columnName); + return message; + }; + + /** + * Creates a plain object from a TextArrayTransformation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation} message TextArrayTransformation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TextArrayTransformation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.columnName = ""; + if (message.columnName != null && message.hasOwnProperty("columnName")) + object.columnName = message.columnName; + return object; + }; + + /** + * Converts this TextArrayTransformation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Transformation.TextArrayTransformation + * @instance + * @returns {Object.} JSON object + */ + TextArrayTransformation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return TextArrayTransformation; + })(); + + return Transformation; + })(); + + AutoMlForecastingInputs.Period = (function() { + + /** + * Properties of a Period. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + * @interface IPeriod + * @property {string|null} [unit] Period unit + * @property {number|Long|null} [quantity] Period quantity + */ + + /** + * Constructs a new Period. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + * @classdesc Represents a Period. + * @implements IPeriod + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.IPeriod=} [properties] Properties to set + */ + function Period(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]]; + } + + /** + * Period unit. + * @member {string} unit + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period + * @instance + */ + Period.prototype.unit = ""; + + /** + * Period quantity. + * @member {number|Long} quantity + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period + * @instance + */ + Period.prototype.quantity = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new Period instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.IPeriod=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period} Period instance + */ + Period.create = function create(properties) { + return new Period(properties); + }; + + /** + * Encodes the specified Period message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.IPeriod} message Period message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Period.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.unit != null && Object.hasOwnProperty.call(message, "unit")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.unit); + if (message.quantity != null && Object.hasOwnProperty.call(message, "quantity")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.quantity); + return writer; + }; + + /** + * Encodes the specified Period message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.IPeriod} message Period message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Period.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Period message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period} Period + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Period.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.unit = reader.string(); + break; + case 2: + message.quantity = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Period message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period} Period + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Period.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Period message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Period.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.unit != null && message.hasOwnProperty("unit")) + if (!$util.isString(message.unit)) + return "unit: string expected"; + if (message.quantity != null && message.hasOwnProperty("quantity")) + if (!$util.isInteger(message.quantity) && !(message.quantity && $util.isInteger(message.quantity.low) && $util.isInteger(message.quantity.high))) + return "quantity: integer|Long expected"; + return null; + }; + + /** + * Creates a Period message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period} Period + */ + Period.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period(); + if (object.unit != null) + message.unit = String(object.unit); + if (object.quantity != null) + if ($util.Long) + (message.quantity = $util.Long.fromValue(object.quantity)).unsigned = false; + else if (typeof object.quantity === "string") + message.quantity = parseInt(object.quantity, 10); + else if (typeof object.quantity === "number") + message.quantity = object.quantity; + else if (typeof object.quantity === "object") + message.quantity = new $util.LongBits(object.quantity.low >>> 0, object.quantity.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a Period message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period} message Period + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Period.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.unit = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.quantity = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.quantity = options.longs === String ? "0" : 0; + } + if (message.unit != null && message.hasOwnProperty("unit")) + object.unit = message.unit; + if (message.quantity != null && message.hasOwnProperty("quantity")) + if (typeof message.quantity === "number") + object.quantity = options.longs === String ? String(message.quantity) : message.quantity; + else + object.quantity = options.longs === String ? $util.Long.prototype.toString.call(message.quantity) : options.longs === Number ? new $util.LongBits(message.quantity.low >>> 0, message.quantity.high >>> 0).toNumber() : message.quantity; + return object; + }; + + /** + * Converts this Period to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Period + * @instance + * @returns {Object.} JSON object + */ + Period.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Period; + })(); + + return AutoMlForecastingInputs; + })(); + + definition.AutoMlForecastingMetadata = (function() { + + /** + * Properties of an AutoMlForecastingMetadata. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @interface IAutoMlForecastingMetadata + * @property {number|Long|null} [trainCostMilliNodeHours] AutoMlForecastingMetadata trainCostMilliNodeHours + */ + + /** + * Constructs a new AutoMlForecastingMetadata. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @classdesc Represents an AutoMlForecastingMetadata. + * @implements IAutoMlForecastingMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlForecastingMetadata=} [properties] Properties to set + */ + function AutoMlForecastingMetadata(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]]; + } + + /** + * AutoMlForecastingMetadata trainCostMilliNodeHours. + * @member {number|Long} trainCostMilliNodeHours + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata + * @instance + */ + AutoMlForecastingMetadata.prototype.trainCostMilliNodeHours = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new AutoMlForecastingMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlForecastingMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata} AutoMlForecastingMetadata instance + */ + AutoMlForecastingMetadata.create = function create(properties) { + return new AutoMlForecastingMetadata(properties); + }; + + /** + * Encodes the specified AutoMlForecastingMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlForecastingMetadata} message AutoMlForecastingMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlForecastingMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.trainCostMilliNodeHours != null && Object.hasOwnProperty.call(message, "trainCostMilliNodeHours")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.trainCostMilliNodeHours); + return writer; + }; + + /** + * Encodes the specified AutoMlForecastingMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlForecastingMetadata} message AutoMlForecastingMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlForecastingMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutoMlForecastingMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata} AutoMlForecastingMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlForecastingMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.trainCostMilliNodeHours = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutoMlForecastingMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata} AutoMlForecastingMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlForecastingMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutoMlForecastingMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutoMlForecastingMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.trainCostMilliNodeHours != null && message.hasOwnProperty("trainCostMilliNodeHours")) + if (!$util.isInteger(message.trainCostMilliNodeHours) && !(message.trainCostMilliNodeHours && $util.isInteger(message.trainCostMilliNodeHours.low) && $util.isInteger(message.trainCostMilliNodeHours.high))) + return "trainCostMilliNodeHours: integer|Long expected"; + return null; + }; + + /** + * Creates an AutoMlForecastingMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata} AutoMlForecastingMetadata + */ + AutoMlForecastingMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata(); + if (object.trainCostMilliNodeHours != null) + if ($util.Long) + (message.trainCostMilliNodeHours = $util.Long.fromValue(object.trainCostMilliNodeHours)).unsigned = false; + else if (typeof object.trainCostMilliNodeHours === "string") + message.trainCostMilliNodeHours = parseInt(object.trainCostMilliNodeHours, 10); + else if (typeof object.trainCostMilliNodeHours === "number") + message.trainCostMilliNodeHours = object.trainCostMilliNodeHours; + else if (typeof object.trainCostMilliNodeHours === "object") + message.trainCostMilliNodeHours = new $util.LongBits(object.trainCostMilliNodeHours.low >>> 0, object.trainCostMilliNodeHours.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from an AutoMlForecastingMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata} message AutoMlForecastingMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutoMlForecastingMetadata.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.trainCostMilliNodeHours = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.trainCostMilliNodeHours = options.longs === String ? "0" : 0; + if (message.trainCostMilliNodeHours != null && message.hasOwnProperty("trainCostMilliNodeHours")) + if (typeof message.trainCostMilliNodeHours === "number") + object.trainCostMilliNodeHours = options.longs === String ? String(message.trainCostMilliNodeHours) : message.trainCostMilliNodeHours; + else + object.trainCostMilliNodeHours = options.longs === String ? $util.Long.prototype.toString.call(message.trainCostMilliNodeHours) : options.longs === Number ? new $util.LongBits(message.trainCostMilliNodeHours.low >>> 0, message.trainCostMilliNodeHours.high >>> 0).toNumber() : message.trainCostMilliNodeHours; + return object; + }; + + /** + * Converts this AutoMlForecastingMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata + * @instance + * @returns {Object.} JSON object + */ + AutoMlForecastingMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AutoMlForecastingMetadata; + })(); + + definition.ExportEvaluatedDataItemsConfig = (function() { + + /** + * Properties of an ExportEvaluatedDataItemsConfig. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @interface IExportEvaluatedDataItemsConfig + * @property {string|null} [destinationBigqueryUri] ExportEvaluatedDataItemsConfig destinationBigqueryUri + * @property {boolean|null} [overrideExistingTable] ExportEvaluatedDataItemsConfig overrideExistingTable + */ + + /** + * Constructs a new ExportEvaluatedDataItemsConfig. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @classdesc Represents an ExportEvaluatedDataItemsConfig. + * @implements IExportEvaluatedDataItemsConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig=} [properties] Properties to set + */ + function ExportEvaluatedDataItemsConfig(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]]; + } + + /** + * ExportEvaluatedDataItemsConfig destinationBigqueryUri. + * @member {string} destinationBigqueryUri + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig + * @instance + */ + ExportEvaluatedDataItemsConfig.prototype.destinationBigqueryUri = ""; + + /** + * ExportEvaluatedDataItemsConfig overrideExistingTable. + * @member {boolean} overrideExistingTable + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig + * @instance + */ + ExportEvaluatedDataItemsConfig.prototype.overrideExistingTable = false; + + /** + * Creates a new ExportEvaluatedDataItemsConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig} ExportEvaluatedDataItemsConfig instance + */ + ExportEvaluatedDataItemsConfig.create = function create(properties) { + return new ExportEvaluatedDataItemsConfig(properties); + }; + + /** + * Encodes the specified ExportEvaluatedDataItemsConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig} message ExportEvaluatedDataItemsConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExportEvaluatedDataItemsConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.destinationBigqueryUri != null && Object.hasOwnProperty.call(message, "destinationBigqueryUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.destinationBigqueryUri); + if (message.overrideExistingTable != null && Object.hasOwnProperty.call(message, "overrideExistingTable")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.overrideExistingTable); + return writer; + }; + + /** + * Encodes the specified ExportEvaluatedDataItemsConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig} message ExportEvaluatedDataItemsConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExportEvaluatedDataItemsConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExportEvaluatedDataItemsConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig} ExportEvaluatedDataItemsConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExportEvaluatedDataItemsConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.destinationBigqueryUri = reader.string(); + break; + case 2: + message.overrideExistingTable = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExportEvaluatedDataItemsConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig} ExportEvaluatedDataItemsConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExportEvaluatedDataItemsConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExportEvaluatedDataItemsConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExportEvaluatedDataItemsConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.destinationBigqueryUri != null && message.hasOwnProperty("destinationBigqueryUri")) + if (!$util.isString(message.destinationBigqueryUri)) + return "destinationBigqueryUri: string expected"; + if (message.overrideExistingTable != null && message.hasOwnProperty("overrideExistingTable")) + if (typeof message.overrideExistingTable !== "boolean") + return "overrideExistingTable: boolean expected"; + return null; + }; + + /** + * Creates an ExportEvaluatedDataItemsConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig} ExportEvaluatedDataItemsConfig + */ + ExportEvaluatedDataItemsConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig(); + if (object.destinationBigqueryUri != null) + message.destinationBigqueryUri = String(object.destinationBigqueryUri); + if (object.overrideExistingTable != null) + message.overrideExistingTable = Boolean(object.overrideExistingTable); + return message; + }; + + /** + * Creates a plain object from an ExportEvaluatedDataItemsConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig} message ExportEvaluatedDataItemsConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExportEvaluatedDataItemsConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.destinationBigqueryUri = ""; + object.overrideExistingTable = false; + } + if (message.destinationBigqueryUri != null && message.hasOwnProperty("destinationBigqueryUri")) + object.destinationBigqueryUri = message.destinationBigqueryUri; + if (message.overrideExistingTable != null && message.hasOwnProperty("overrideExistingTable")) + object.overrideExistingTable = message.overrideExistingTable; + return object; + }; + + /** + * Converts this ExportEvaluatedDataItemsConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig + * @instance + * @returns {Object.} JSON object + */ + ExportEvaluatedDataItemsConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ExportEvaluatedDataItemsConfig; + })(); + + definition.AutoMlImageClassification = (function() { + + /** + * Properties of an AutoMlImageClassification. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @interface IAutoMlImageClassification + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageClassificationInputs|null} [inputs] AutoMlImageClassification inputs + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageClassificationMetadata|null} [metadata] AutoMlImageClassification metadata + */ + + /** + * Constructs a new AutoMlImageClassification. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @classdesc Represents an AutoMlImageClassification. + * @implements IAutoMlImageClassification + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageClassification=} [properties] Properties to set + */ + function AutoMlImageClassification(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]]; + } + + /** + * AutoMlImageClassification inputs. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageClassificationInputs|null|undefined} inputs + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassification + * @instance + */ + AutoMlImageClassification.prototype.inputs = null; + + /** + * AutoMlImageClassification metadata. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageClassificationMetadata|null|undefined} metadata + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassification + * @instance + */ + AutoMlImageClassification.prototype.metadata = null; + + /** + * Creates a new AutoMlImageClassification instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassification + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageClassification=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassification} AutoMlImageClassification instance + */ + AutoMlImageClassification.create = function create(properties) { + return new AutoMlImageClassification(properties); + }; + + /** + * Encodes the specified AutoMlImageClassification message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassification.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassification + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageClassification} message AutoMlImageClassification message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlImageClassification.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.inputs != null && Object.hasOwnProperty.call(message, "inputs")) + $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.encode(message.metadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified AutoMlImageClassification message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassification.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassification + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageClassification} message AutoMlImageClassification message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlImageClassification.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutoMlImageClassification message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassification + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassification} AutoMlImageClassification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlImageClassification.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassification(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.inputs = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs.decode(reader, reader.uint32()); + break; + case 2: + message.metadata = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutoMlImageClassification message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassification + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassification} AutoMlImageClassification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlImageClassification.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutoMlImageClassification message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassification + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutoMlImageClassification.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.inputs != null && message.hasOwnProperty("inputs")) { + var error = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs.verify(message.inputs); + if (error) + return "inputs." + error; + } + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.verify(message.metadata); + if (error) + return "metadata." + error; + } + return null; + }; + + /** + * Creates an AutoMlImageClassification message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassification + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassification} AutoMlImageClassification + */ + AutoMlImageClassification.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassification) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassification(); + if (object.inputs != null) { + if (typeof object.inputs !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassification.inputs: object expected"); + message.inputs = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs.fromObject(object.inputs); + } + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassification.metadata: object expected"); + message.metadata = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.fromObject(object.metadata); + } + return message; + }; + + /** + * Creates a plain object from an AutoMlImageClassification message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassification + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassification} message AutoMlImageClassification + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutoMlImageClassification.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.inputs = null; + object.metadata = null; + } + if (message.inputs != null && message.hasOwnProperty("inputs")) + object.inputs = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs.toObject(message.inputs, options); + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.toObject(message.metadata, options); + return object; + }; + + /** + * Converts this AutoMlImageClassification to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassification + * @instance + * @returns {Object.} JSON object + */ + AutoMlImageClassification.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AutoMlImageClassification; + })(); + + definition.AutoMlImageClassificationInputs = (function() { + + /** + * Properties of an AutoMlImageClassificationInputs. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @interface IAutoMlImageClassificationInputs + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs.ModelType|null} [modelType] AutoMlImageClassificationInputs modelType + * @property {string|null} [baseModelId] AutoMlImageClassificationInputs baseModelId + * @property {number|Long|null} [budgetMilliNodeHours] AutoMlImageClassificationInputs budgetMilliNodeHours + * @property {boolean|null} [disableEarlyStopping] AutoMlImageClassificationInputs disableEarlyStopping + * @property {boolean|null} [multiLabel] AutoMlImageClassificationInputs multiLabel + */ + + /** + * Constructs a new AutoMlImageClassificationInputs. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @classdesc Represents an AutoMlImageClassificationInputs. + * @implements IAutoMlImageClassificationInputs + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageClassificationInputs=} [properties] Properties to set + */ + function AutoMlImageClassificationInputs(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]]; + } + + /** + * AutoMlImageClassificationInputs modelType. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs.ModelType} modelType + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs + * @instance + */ + AutoMlImageClassificationInputs.prototype.modelType = 0; + + /** + * AutoMlImageClassificationInputs baseModelId. + * @member {string} baseModelId + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs + * @instance + */ + AutoMlImageClassificationInputs.prototype.baseModelId = ""; + + /** + * AutoMlImageClassificationInputs budgetMilliNodeHours. + * @member {number|Long} budgetMilliNodeHours + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs + * @instance + */ + AutoMlImageClassificationInputs.prototype.budgetMilliNodeHours = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * AutoMlImageClassificationInputs disableEarlyStopping. + * @member {boolean} disableEarlyStopping + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs + * @instance + */ + AutoMlImageClassificationInputs.prototype.disableEarlyStopping = false; + + /** + * AutoMlImageClassificationInputs multiLabel. + * @member {boolean} multiLabel + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs + * @instance + */ + AutoMlImageClassificationInputs.prototype.multiLabel = false; + + /** + * Creates a new AutoMlImageClassificationInputs instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageClassificationInputs=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs} AutoMlImageClassificationInputs instance + */ + AutoMlImageClassificationInputs.create = function create(properties) { + return new AutoMlImageClassificationInputs(properties); + }; + + /** + * Encodes the specified AutoMlImageClassificationInputs message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageClassificationInputs} message AutoMlImageClassificationInputs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlImageClassificationInputs.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.modelType != null && Object.hasOwnProperty.call(message, "modelType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.modelType); + if (message.baseModelId != null && Object.hasOwnProperty.call(message, "baseModelId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.baseModelId); + if (message.budgetMilliNodeHours != null && Object.hasOwnProperty.call(message, "budgetMilliNodeHours")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.budgetMilliNodeHours); + if (message.disableEarlyStopping != null && Object.hasOwnProperty.call(message, "disableEarlyStopping")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.disableEarlyStopping); + if (message.multiLabel != null && Object.hasOwnProperty.call(message, "multiLabel")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.multiLabel); + return writer; + }; + + /** + * Encodes the specified AutoMlImageClassificationInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageClassificationInputs} message AutoMlImageClassificationInputs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlImageClassificationInputs.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutoMlImageClassificationInputs message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs} AutoMlImageClassificationInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlImageClassificationInputs.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.modelType = reader.int32(); + break; + case 2: + message.baseModelId = reader.string(); + break; + case 3: + message.budgetMilliNodeHours = reader.int64(); + break; + case 4: + message.disableEarlyStopping = reader.bool(); + break; + case 5: + message.multiLabel = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutoMlImageClassificationInputs message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs} AutoMlImageClassificationInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlImageClassificationInputs.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutoMlImageClassificationInputs message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutoMlImageClassificationInputs.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.modelType != null && message.hasOwnProperty("modelType")) + switch (message.modelType) { + default: + return "modelType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.baseModelId != null && message.hasOwnProperty("baseModelId")) + if (!$util.isString(message.baseModelId)) + return "baseModelId: string expected"; + if (message.budgetMilliNodeHours != null && message.hasOwnProperty("budgetMilliNodeHours")) + if (!$util.isInteger(message.budgetMilliNodeHours) && !(message.budgetMilliNodeHours && $util.isInteger(message.budgetMilliNodeHours.low) && $util.isInteger(message.budgetMilliNodeHours.high))) + return "budgetMilliNodeHours: integer|Long expected"; + if (message.disableEarlyStopping != null && message.hasOwnProperty("disableEarlyStopping")) + if (typeof message.disableEarlyStopping !== "boolean") + return "disableEarlyStopping: boolean expected"; + if (message.multiLabel != null && message.hasOwnProperty("multiLabel")) + if (typeof message.multiLabel !== "boolean") + return "multiLabel: boolean expected"; + return null; + }; + + /** + * Creates an AutoMlImageClassificationInputs message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs} AutoMlImageClassificationInputs + */ + AutoMlImageClassificationInputs.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs(); + switch (object.modelType) { + case "MODEL_TYPE_UNSPECIFIED": + case 0: + message.modelType = 0; + break; + case "CLOUD": + case 1: + message.modelType = 1; + break; + case "MOBILE_TF_LOW_LATENCY_1": + case 2: + message.modelType = 2; + break; + case "MOBILE_TF_VERSATILE_1": + case 3: + message.modelType = 3; + break; + case "MOBILE_TF_HIGH_ACCURACY_1": + case 4: + message.modelType = 4; + break; + } + if (object.baseModelId != null) + message.baseModelId = String(object.baseModelId); + if (object.budgetMilliNodeHours != null) + if ($util.Long) + (message.budgetMilliNodeHours = $util.Long.fromValue(object.budgetMilliNodeHours)).unsigned = false; + else if (typeof object.budgetMilliNodeHours === "string") + message.budgetMilliNodeHours = parseInt(object.budgetMilliNodeHours, 10); + else if (typeof object.budgetMilliNodeHours === "number") + message.budgetMilliNodeHours = object.budgetMilliNodeHours; + else if (typeof object.budgetMilliNodeHours === "object") + message.budgetMilliNodeHours = new $util.LongBits(object.budgetMilliNodeHours.low >>> 0, object.budgetMilliNodeHours.high >>> 0).toNumber(); + if (object.disableEarlyStopping != null) + message.disableEarlyStopping = Boolean(object.disableEarlyStopping); + if (object.multiLabel != null) + message.multiLabel = Boolean(object.multiLabel); + return message; + }; + + /** + * Creates a plain object from an AutoMlImageClassificationInputs message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs} message AutoMlImageClassificationInputs + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutoMlImageClassificationInputs.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.modelType = options.enums === String ? "MODEL_TYPE_UNSPECIFIED" : 0; + object.baseModelId = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.budgetMilliNodeHours = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.budgetMilliNodeHours = options.longs === String ? "0" : 0; + object.disableEarlyStopping = false; + object.multiLabel = false; + } + if (message.modelType != null && message.hasOwnProperty("modelType")) + object.modelType = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs.ModelType[message.modelType] : message.modelType; + if (message.baseModelId != null && message.hasOwnProperty("baseModelId")) + object.baseModelId = message.baseModelId; + if (message.budgetMilliNodeHours != null && message.hasOwnProperty("budgetMilliNodeHours")) + if (typeof message.budgetMilliNodeHours === "number") + object.budgetMilliNodeHours = options.longs === String ? String(message.budgetMilliNodeHours) : message.budgetMilliNodeHours; + else + object.budgetMilliNodeHours = options.longs === String ? $util.Long.prototype.toString.call(message.budgetMilliNodeHours) : options.longs === Number ? new $util.LongBits(message.budgetMilliNodeHours.low >>> 0, message.budgetMilliNodeHours.high >>> 0).toNumber() : message.budgetMilliNodeHours; + if (message.disableEarlyStopping != null && message.hasOwnProperty("disableEarlyStopping")) + object.disableEarlyStopping = message.disableEarlyStopping; + if (message.multiLabel != null && message.hasOwnProperty("multiLabel")) + object.multiLabel = message.multiLabel; + return object; + }; + + /** + * Converts this AutoMlImageClassificationInputs to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs + * @instance + * @returns {Object.} JSON object + */ + AutoMlImageClassificationInputs.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * ModelType enum. + * @name google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs.ModelType + * @enum {number} + * @property {number} MODEL_TYPE_UNSPECIFIED=0 MODEL_TYPE_UNSPECIFIED value + * @property {number} CLOUD=1 CLOUD value + * @property {number} MOBILE_TF_LOW_LATENCY_1=2 MOBILE_TF_LOW_LATENCY_1 value + * @property {number} MOBILE_TF_VERSATILE_1=3 MOBILE_TF_VERSATILE_1 value + * @property {number} MOBILE_TF_HIGH_ACCURACY_1=4 MOBILE_TF_HIGH_ACCURACY_1 value + */ + AutoMlImageClassificationInputs.ModelType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MODEL_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "CLOUD"] = 1; + values[valuesById[2] = "MOBILE_TF_LOW_LATENCY_1"] = 2; + values[valuesById[3] = "MOBILE_TF_VERSATILE_1"] = 3; + values[valuesById[4] = "MOBILE_TF_HIGH_ACCURACY_1"] = 4; + return values; + })(); + + return AutoMlImageClassificationInputs; + })(); + + definition.AutoMlImageClassificationMetadata = (function() { + + /** + * Properties of an AutoMlImageClassificationMetadata. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @interface IAutoMlImageClassificationMetadata + * @property {number|Long|null} [costMilliNodeHours] AutoMlImageClassificationMetadata costMilliNodeHours + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.SuccessfulStopReason|null} [successfulStopReason] AutoMlImageClassificationMetadata successfulStopReason + */ + + /** + * Constructs a new AutoMlImageClassificationMetadata. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @classdesc Represents an AutoMlImageClassificationMetadata. + * @implements IAutoMlImageClassificationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageClassificationMetadata=} [properties] Properties to set + */ + function AutoMlImageClassificationMetadata(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]]; + } + + /** + * AutoMlImageClassificationMetadata costMilliNodeHours. + * @member {number|Long} costMilliNodeHours + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata + * @instance + */ + AutoMlImageClassificationMetadata.prototype.costMilliNodeHours = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * AutoMlImageClassificationMetadata successfulStopReason. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.SuccessfulStopReason} successfulStopReason + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata + * @instance + */ + AutoMlImageClassificationMetadata.prototype.successfulStopReason = 0; + + /** + * Creates a new AutoMlImageClassificationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageClassificationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata} AutoMlImageClassificationMetadata instance + */ + AutoMlImageClassificationMetadata.create = function create(properties) { + return new AutoMlImageClassificationMetadata(properties); + }; + + /** + * Encodes the specified AutoMlImageClassificationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageClassificationMetadata} message AutoMlImageClassificationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlImageClassificationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.costMilliNodeHours != null && Object.hasOwnProperty.call(message, "costMilliNodeHours")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.costMilliNodeHours); + if (message.successfulStopReason != null && Object.hasOwnProperty.call(message, "successfulStopReason")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.successfulStopReason); + return writer; + }; + + /** + * Encodes the specified AutoMlImageClassificationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageClassificationMetadata} message AutoMlImageClassificationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlImageClassificationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutoMlImageClassificationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata} AutoMlImageClassificationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlImageClassificationMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.costMilliNodeHours = reader.int64(); + break; + case 2: + message.successfulStopReason = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutoMlImageClassificationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata} AutoMlImageClassificationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlImageClassificationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutoMlImageClassificationMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutoMlImageClassificationMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.costMilliNodeHours != null && message.hasOwnProperty("costMilliNodeHours")) + if (!$util.isInteger(message.costMilliNodeHours) && !(message.costMilliNodeHours && $util.isInteger(message.costMilliNodeHours.low) && $util.isInteger(message.costMilliNodeHours.high))) + return "costMilliNodeHours: integer|Long expected"; + if (message.successfulStopReason != null && message.hasOwnProperty("successfulStopReason")) + switch (message.successfulStopReason) { + default: + return "successfulStopReason: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates an AutoMlImageClassificationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata} AutoMlImageClassificationMetadata + */ + AutoMlImageClassificationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata(); + if (object.costMilliNodeHours != null) + if ($util.Long) + (message.costMilliNodeHours = $util.Long.fromValue(object.costMilliNodeHours)).unsigned = false; + else if (typeof object.costMilliNodeHours === "string") + message.costMilliNodeHours = parseInt(object.costMilliNodeHours, 10); + else if (typeof object.costMilliNodeHours === "number") + message.costMilliNodeHours = object.costMilliNodeHours; + else if (typeof object.costMilliNodeHours === "object") + message.costMilliNodeHours = new $util.LongBits(object.costMilliNodeHours.low >>> 0, object.costMilliNodeHours.high >>> 0).toNumber(); + switch (object.successfulStopReason) { + case "SUCCESSFUL_STOP_REASON_UNSPECIFIED": + case 0: + message.successfulStopReason = 0; + break; + case "BUDGET_REACHED": + case 1: + message.successfulStopReason = 1; + break; + case "MODEL_CONVERGED": + case 2: + message.successfulStopReason = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from an AutoMlImageClassificationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata} message AutoMlImageClassificationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutoMlImageClassificationMetadata.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.costMilliNodeHours = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.costMilliNodeHours = options.longs === String ? "0" : 0; + object.successfulStopReason = options.enums === String ? "SUCCESSFUL_STOP_REASON_UNSPECIFIED" : 0; + } + if (message.costMilliNodeHours != null && message.hasOwnProperty("costMilliNodeHours")) + if (typeof message.costMilliNodeHours === "number") + object.costMilliNodeHours = options.longs === String ? String(message.costMilliNodeHours) : message.costMilliNodeHours; + else + object.costMilliNodeHours = options.longs === String ? $util.Long.prototype.toString.call(message.costMilliNodeHours) : options.longs === Number ? new $util.LongBits(message.costMilliNodeHours.low >>> 0, message.costMilliNodeHours.high >>> 0).toNumber() : message.costMilliNodeHours; + if (message.successfulStopReason != null && message.hasOwnProperty("successfulStopReason")) + object.successfulStopReason = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.SuccessfulStopReason[message.successfulStopReason] : message.successfulStopReason; + return object; + }; + + /** + * Converts this AutoMlImageClassificationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata + * @instance + * @returns {Object.} JSON object + */ + AutoMlImageClassificationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * SuccessfulStopReason enum. + * @name google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.SuccessfulStopReason + * @enum {number} + * @property {number} SUCCESSFUL_STOP_REASON_UNSPECIFIED=0 SUCCESSFUL_STOP_REASON_UNSPECIFIED value + * @property {number} BUDGET_REACHED=1 BUDGET_REACHED value + * @property {number} MODEL_CONVERGED=2 MODEL_CONVERGED value + */ + AutoMlImageClassificationMetadata.SuccessfulStopReason = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SUCCESSFUL_STOP_REASON_UNSPECIFIED"] = 0; + values[valuesById[1] = "BUDGET_REACHED"] = 1; + values[valuesById[2] = "MODEL_CONVERGED"] = 2; + return values; + })(); + + return AutoMlImageClassificationMetadata; + })(); + + definition.AutoMlImageObjectDetection = (function() { + + /** + * Properties of an AutoMlImageObjectDetection. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @interface IAutoMlImageObjectDetection + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageObjectDetectionInputs|null} [inputs] AutoMlImageObjectDetection inputs + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageObjectDetectionMetadata|null} [metadata] AutoMlImageObjectDetection metadata + */ + + /** + * Constructs a new AutoMlImageObjectDetection. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @classdesc Represents an AutoMlImageObjectDetection. + * @implements IAutoMlImageObjectDetection + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageObjectDetection=} [properties] Properties to set + */ + function AutoMlImageObjectDetection(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]]; + } + + /** + * AutoMlImageObjectDetection inputs. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageObjectDetectionInputs|null|undefined} inputs + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetection + * @instance + */ + AutoMlImageObjectDetection.prototype.inputs = null; + + /** + * AutoMlImageObjectDetection metadata. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageObjectDetectionMetadata|null|undefined} metadata + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetection + * @instance + */ + AutoMlImageObjectDetection.prototype.metadata = null; + + /** + * Creates a new AutoMlImageObjectDetection instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetection + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageObjectDetection=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetection} AutoMlImageObjectDetection instance + */ + AutoMlImageObjectDetection.create = function create(properties) { + return new AutoMlImageObjectDetection(properties); + }; + + /** + * Encodes the specified AutoMlImageObjectDetection message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetection.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetection + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageObjectDetection} message AutoMlImageObjectDetection message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlImageObjectDetection.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.inputs != null && Object.hasOwnProperty.call(message, "inputs")) + $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.encode(message.metadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified AutoMlImageObjectDetection message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetection.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetection + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageObjectDetection} message AutoMlImageObjectDetection message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlImageObjectDetection.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutoMlImageObjectDetection message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetection + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetection} AutoMlImageObjectDetection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlImageObjectDetection.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetection(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.inputs = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.decode(reader, reader.uint32()); + break; + case 2: + message.metadata = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutoMlImageObjectDetection message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetection + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetection} AutoMlImageObjectDetection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlImageObjectDetection.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutoMlImageObjectDetection message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetection + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutoMlImageObjectDetection.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.inputs != null && message.hasOwnProperty("inputs")) { + var error = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.verify(message.inputs); + if (error) + return "inputs." + error; + } + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.verify(message.metadata); + if (error) + return "metadata." + error; + } + return null; + }; + + /** + * Creates an AutoMlImageObjectDetection message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetection + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetection} AutoMlImageObjectDetection + */ + AutoMlImageObjectDetection.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetection) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetection(); + if (object.inputs != null) { + if (typeof object.inputs !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetection.inputs: object expected"); + message.inputs = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.fromObject(object.inputs); + } + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetection.metadata: object expected"); + message.metadata = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.fromObject(object.metadata); + } + return message; + }; + + /** + * Creates a plain object from an AutoMlImageObjectDetection message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetection + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetection} message AutoMlImageObjectDetection + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutoMlImageObjectDetection.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.inputs = null; + object.metadata = null; + } + if (message.inputs != null && message.hasOwnProperty("inputs")) + object.inputs = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.toObject(message.inputs, options); + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.toObject(message.metadata, options); + return object; + }; + + /** + * Converts this AutoMlImageObjectDetection to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetection + * @instance + * @returns {Object.} JSON object + */ + AutoMlImageObjectDetection.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AutoMlImageObjectDetection; + })(); + + definition.AutoMlImageObjectDetectionInputs = (function() { + + /** + * Properties of an AutoMlImageObjectDetectionInputs. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @interface IAutoMlImageObjectDetectionInputs + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.ModelType|null} [modelType] AutoMlImageObjectDetectionInputs modelType + * @property {number|Long|null} [budgetMilliNodeHours] AutoMlImageObjectDetectionInputs budgetMilliNodeHours + * @property {boolean|null} [disableEarlyStopping] AutoMlImageObjectDetectionInputs disableEarlyStopping + */ + + /** + * Constructs a new AutoMlImageObjectDetectionInputs. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @classdesc Represents an AutoMlImageObjectDetectionInputs. + * @implements IAutoMlImageObjectDetectionInputs + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageObjectDetectionInputs=} [properties] Properties to set + */ + function AutoMlImageObjectDetectionInputs(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]]; + } + + /** + * AutoMlImageObjectDetectionInputs modelType. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.ModelType} modelType + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs + * @instance + */ + AutoMlImageObjectDetectionInputs.prototype.modelType = 0; + + /** + * AutoMlImageObjectDetectionInputs budgetMilliNodeHours. + * @member {number|Long} budgetMilliNodeHours + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs + * @instance + */ + AutoMlImageObjectDetectionInputs.prototype.budgetMilliNodeHours = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * AutoMlImageObjectDetectionInputs disableEarlyStopping. + * @member {boolean} disableEarlyStopping + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs + * @instance + */ + AutoMlImageObjectDetectionInputs.prototype.disableEarlyStopping = false; + + /** + * Creates a new AutoMlImageObjectDetectionInputs instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageObjectDetectionInputs=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs} AutoMlImageObjectDetectionInputs instance + */ + AutoMlImageObjectDetectionInputs.create = function create(properties) { + return new AutoMlImageObjectDetectionInputs(properties); + }; + + /** + * Encodes the specified AutoMlImageObjectDetectionInputs message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageObjectDetectionInputs} message AutoMlImageObjectDetectionInputs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlImageObjectDetectionInputs.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.modelType != null && Object.hasOwnProperty.call(message, "modelType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.modelType); + if (message.budgetMilliNodeHours != null && Object.hasOwnProperty.call(message, "budgetMilliNodeHours")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.budgetMilliNodeHours); + if (message.disableEarlyStopping != null && Object.hasOwnProperty.call(message, "disableEarlyStopping")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.disableEarlyStopping); + return writer; + }; + + /** + * Encodes the specified AutoMlImageObjectDetectionInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageObjectDetectionInputs} message AutoMlImageObjectDetectionInputs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlImageObjectDetectionInputs.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutoMlImageObjectDetectionInputs message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs} AutoMlImageObjectDetectionInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlImageObjectDetectionInputs.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.modelType = reader.int32(); + break; + case 2: + message.budgetMilliNodeHours = reader.int64(); + break; + case 3: + message.disableEarlyStopping = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutoMlImageObjectDetectionInputs message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs} AutoMlImageObjectDetectionInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlImageObjectDetectionInputs.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutoMlImageObjectDetectionInputs message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutoMlImageObjectDetectionInputs.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.modelType != null && message.hasOwnProperty("modelType")) + switch (message.modelType) { + default: + return "modelType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.budgetMilliNodeHours != null && message.hasOwnProperty("budgetMilliNodeHours")) + if (!$util.isInteger(message.budgetMilliNodeHours) && !(message.budgetMilliNodeHours && $util.isInteger(message.budgetMilliNodeHours.low) && $util.isInteger(message.budgetMilliNodeHours.high))) + return "budgetMilliNodeHours: integer|Long expected"; + if (message.disableEarlyStopping != null && message.hasOwnProperty("disableEarlyStopping")) + if (typeof message.disableEarlyStopping !== "boolean") + return "disableEarlyStopping: boolean expected"; + return null; + }; + + /** + * Creates an AutoMlImageObjectDetectionInputs message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs} AutoMlImageObjectDetectionInputs + */ + AutoMlImageObjectDetectionInputs.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs(); + switch (object.modelType) { + case "MODEL_TYPE_UNSPECIFIED": + case 0: + message.modelType = 0; + break; + case "CLOUD_HIGH_ACCURACY_1": + case 1: + message.modelType = 1; + break; + case "CLOUD_LOW_LATENCY_1": + case 2: + message.modelType = 2; + break; + case "MOBILE_TF_LOW_LATENCY_1": + case 3: + message.modelType = 3; + break; + case "MOBILE_TF_VERSATILE_1": + case 4: + message.modelType = 4; + break; + case "MOBILE_TF_HIGH_ACCURACY_1": + case 5: + message.modelType = 5; + break; + } + if (object.budgetMilliNodeHours != null) + if ($util.Long) + (message.budgetMilliNodeHours = $util.Long.fromValue(object.budgetMilliNodeHours)).unsigned = false; + else if (typeof object.budgetMilliNodeHours === "string") + message.budgetMilliNodeHours = parseInt(object.budgetMilliNodeHours, 10); + else if (typeof object.budgetMilliNodeHours === "number") + message.budgetMilliNodeHours = object.budgetMilliNodeHours; + else if (typeof object.budgetMilliNodeHours === "object") + message.budgetMilliNodeHours = new $util.LongBits(object.budgetMilliNodeHours.low >>> 0, object.budgetMilliNodeHours.high >>> 0).toNumber(); + if (object.disableEarlyStopping != null) + message.disableEarlyStopping = Boolean(object.disableEarlyStopping); + return message; + }; + + /** + * Creates a plain object from an AutoMlImageObjectDetectionInputs message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs} message AutoMlImageObjectDetectionInputs + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutoMlImageObjectDetectionInputs.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.modelType = options.enums === String ? "MODEL_TYPE_UNSPECIFIED" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.budgetMilliNodeHours = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.budgetMilliNodeHours = options.longs === String ? "0" : 0; + object.disableEarlyStopping = false; + } + if (message.modelType != null && message.hasOwnProperty("modelType")) + object.modelType = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.ModelType[message.modelType] : message.modelType; + if (message.budgetMilliNodeHours != null && message.hasOwnProperty("budgetMilliNodeHours")) + if (typeof message.budgetMilliNodeHours === "number") + object.budgetMilliNodeHours = options.longs === String ? String(message.budgetMilliNodeHours) : message.budgetMilliNodeHours; + else + object.budgetMilliNodeHours = options.longs === String ? $util.Long.prototype.toString.call(message.budgetMilliNodeHours) : options.longs === Number ? new $util.LongBits(message.budgetMilliNodeHours.low >>> 0, message.budgetMilliNodeHours.high >>> 0).toNumber() : message.budgetMilliNodeHours; + if (message.disableEarlyStopping != null && message.hasOwnProperty("disableEarlyStopping")) + object.disableEarlyStopping = message.disableEarlyStopping; + return object; + }; + + /** + * Converts this AutoMlImageObjectDetectionInputs to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs + * @instance + * @returns {Object.} JSON object + */ + AutoMlImageObjectDetectionInputs.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * ModelType enum. + * @name google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.ModelType + * @enum {number} + * @property {number} MODEL_TYPE_UNSPECIFIED=0 MODEL_TYPE_UNSPECIFIED value + * @property {number} CLOUD_HIGH_ACCURACY_1=1 CLOUD_HIGH_ACCURACY_1 value + * @property {number} CLOUD_LOW_LATENCY_1=2 CLOUD_LOW_LATENCY_1 value + * @property {number} MOBILE_TF_LOW_LATENCY_1=3 MOBILE_TF_LOW_LATENCY_1 value + * @property {number} MOBILE_TF_VERSATILE_1=4 MOBILE_TF_VERSATILE_1 value + * @property {number} MOBILE_TF_HIGH_ACCURACY_1=5 MOBILE_TF_HIGH_ACCURACY_1 value + */ + AutoMlImageObjectDetectionInputs.ModelType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MODEL_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "CLOUD_HIGH_ACCURACY_1"] = 1; + values[valuesById[2] = "CLOUD_LOW_LATENCY_1"] = 2; + values[valuesById[3] = "MOBILE_TF_LOW_LATENCY_1"] = 3; + values[valuesById[4] = "MOBILE_TF_VERSATILE_1"] = 4; + values[valuesById[5] = "MOBILE_TF_HIGH_ACCURACY_1"] = 5; + return values; + })(); + + return AutoMlImageObjectDetectionInputs; + })(); + + definition.AutoMlImageObjectDetectionMetadata = (function() { + + /** + * Properties of an AutoMlImageObjectDetectionMetadata. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @interface IAutoMlImageObjectDetectionMetadata + * @property {number|Long|null} [costMilliNodeHours] AutoMlImageObjectDetectionMetadata costMilliNodeHours + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.SuccessfulStopReason|null} [successfulStopReason] AutoMlImageObjectDetectionMetadata successfulStopReason + */ + + /** + * Constructs a new AutoMlImageObjectDetectionMetadata. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @classdesc Represents an AutoMlImageObjectDetectionMetadata. + * @implements IAutoMlImageObjectDetectionMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageObjectDetectionMetadata=} [properties] Properties to set + */ + function AutoMlImageObjectDetectionMetadata(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]]; + } + + /** + * AutoMlImageObjectDetectionMetadata costMilliNodeHours. + * @member {number|Long} costMilliNodeHours + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata + * @instance + */ + AutoMlImageObjectDetectionMetadata.prototype.costMilliNodeHours = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * AutoMlImageObjectDetectionMetadata successfulStopReason. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.SuccessfulStopReason} successfulStopReason + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata + * @instance + */ + AutoMlImageObjectDetectionMetadata.prototype.successfulStopReason = 0; + + /** + * Creates a new AutoMlImageObjectDetectionMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageObjectDetectionMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata} AutoMlImageObjectDetectionMetadata instance + */ + AutoMlImageObjectDetectionMetadata.create = function create(properties) { + return new AutoMlImageObjectDetectionMetadata(properties); + }; + + /** + * Encodes the specified AutoMlImageObjectDetectionMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageObjectDetectionMetadata} message AutoMlImageObjectDetectionMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlImageObjectDetectionMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.costMilliNodeHours != null && Object.hasOwnProperty.call(message, "costMilliNodeHours")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.costMilliNodeHours); + if (message.successfulStopReason != null && Object.hasOwnProperty.call(message, "successfulStopReason")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.successfulStopReason); + return writer; + }; + + /** + * Encodes the specified AutoMlImageObjectDetectionMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageObjectDetectionMetadata} message AutoMlImageObjectDetectionMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlImageObjectDetectionMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutoMlImageObjectDetectionMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata} AutoMlImageObjectDetectionMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlImageObjectDetectionMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.costMilliNodeHours = reader.int64(); + break; + case 2: + message.successfulStopReason = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutoMlImageObjectDetectionMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata} AutoMlImageObjectDetectionMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlImageObjectDetectionMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutoMlImageObjectDetectionMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutoMlImageObjectDetectionMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.costMilliNodeHours != null && message.hasOwnProperty("costMilliNodeHours")) + if (!$util.isInteger(message.costMilliNodeHours) && !(message.costMilliNodeHours && $util.isInteger(message.costMilliNodeHours.low) && $util.isInteger(message.costMilliNodeHours.high))) + return "costMilliNodeHours: integer|Long expected"; + if (message.successfulStopReason != null && message.hasOwnProperty("successfulStopReason")) + switch (message.successfulStopReason) { + default: + return "successfulStopReason: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates an AutoMlImageObjectDetectionMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata} AutoMlImageObjectDetectionMetadata + */ + AutoMlImageObjectDetectionMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata(); + if (object.costMilliNodeHours != null) + if ($util.Long) + (message.costMilliNodeHours = $util.Long.fromValue(object.costMilliNodeHours)).unsigned = false; + else if (typeof object.costMilliNodeHours === "string") + message.costMilliNodeHours = parseInt(object.costMilliNodeHours, 10); + else if (typeof object.costMilliNodeHours === "number") + message.costMilliNodeHours = object.costMilliNodeHours; + else if (typeof object.costMilliNodeHours === "object") + message.costMilliNodeHours = new $util.LongBits(object.costMilliNodeHours.low >>> 0, object.costMilliNodeHours.high >>> 0).toNumber(); + switch (object.successfulStopReason) { + case "SUCCESSFUL_STOP_REASON_UNSPECIFIED": + case 0: + message.successfulStopReason = 0; + break; + case "BUDGET_REACHED": + case 1: + message.successfulStopReason = 1; + break; + case "MODEL_CONVERGED": + case 2: + message.successfulStopReason = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from an AutoMlImageObjectDetectionMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata} message AutoMlImageObjectDetectionMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutoMlImageObjectDetectionMetadata.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.costMilliNodeHours = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.costMilliNodeHours = options.longs === String ? "0" : 0; + object.successfulStopReason = options.enums === String ? "SUCCESSFUL_STOP_REASON_UNSPECIFIED" : 0; + } + if (message.costMilliNodeHours != null && message.hasOwnProperty("costMilliNodeHours")) + if (typeof message.costMilliNodeHours === "number") + object.costMilliNodeHours = options.longs === String ? String(message.costMilliNodeHours) : message.costMilliNodeHours; + else + object.costMilliNodeHours = options.longs === String ? $util.Long.prototype.toString.call(message.costMilliNodeHours) : options.longs === Number ? new $util.LongBits(message.costMilliNodeHours.low >>> 0, message.costMilliNodeHours.high >>> 0).toNumber() : message.costMilliNodeHours; + if (message.successfulStopReason != null && message.hasOwnProperty("successfulStopReason")) + object.successfulStopReason = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.SuccessfulStopReason[message.successfulStopReason] : message.successfulStopReason; + return object; + }; + + /** + * Converts this AutoMlImageObjectDetectionMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata + * @instance + * @returns {Object.} JSON object + */ + AutoMlImageObjectDetectionMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * SuccessfulStopReason enum. + * @name google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.SuccessfulStopReason + * @enum {number} + * @property {number} SUCCESSFUL_STOP_REASON_UNSPECIFIED=0 SUCCESSFUL_STOP_REASON_UNSPECIFIED value + * @property {number} BUDGET_REACHED=1 BUDGET_REACHED value + * @property {number} MODEL_CONVERGED=2 MODEL_CONVERGED value + */ + AutoMlImageObjectDetectionMetadata.SuccessfulStopReason = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SUCCESSFUL_STOP_REASON_UNSPECIFIED"] = 0; + values[valuesById[1] = "BUDGET_REACHED"] = 1; + values[valuesById[2] = "MODEL_CONVERGED"] = 2; + return values; + })(); + + return AutoMlImageObjectDetectionMetadata; + })(); + + definition.AutoMlImageSegmentation = (function() { + + /** + * Properties of an AutoMlImageSegmentation. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @interface IAutoMlImageSegmentation + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageSegmentationInputs|null} [inputs] AutoMlImageSegmentation inputs + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageSegmentationMetadata|null} [metadata] AutoMlImageSegmentation metadata + */ + + /** + * Constructs a new AutoMlImageSegmentation. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @classdesc Represents an AutoMlImageSegmentation. + * @implements IAutoMlImageSegmentation + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageSegmentation=} [properties] Properties to set + */ + function AutoMlImageSegmentation(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]]; + } + + /** + * AutoMlImageSegmentation inputs. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageSegmentationInputs|null|undefined} inputs + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentation + * @instance + */ + AutoMlImageSegmentation.prototype.inputs = null; + + /** + * AutoMlImageSegmentation metadata. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageSegmentationMetadata|null|undefined} metadata + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentation + * @instance + */ + AutoMlImageSegmentation.prototype.metadata = null; + + /** + * Creates a new AutoMlImageSegmentation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageSegmentation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentation} AutoMlImageSegmentation instance + */ + AutoMlImageSegmentation.create = function create(properties) { + return new AutoMlImageSegmentation(properties); + }; + + /** + * Encodes the specified AutoMlImageSegmentation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageSegmentation} message AutoMlImageSegmentation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlImageSegmentation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.inputs != null && Object.hasOwnProperty.call(message, "inputs")) + $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.encode(message.metadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified AutoMlImageSegmentation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageSegmentation} message AutoMlImageSegmentation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlImageSegmentation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutoMlImageSegmentation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentation} AutoMlImageSegmentation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlImageSegmentation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.inputs = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.decode(reader, reader.uint32()); + break; + case 2: + message.metadata = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutoMlImageSegmentation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentation} AutoMlImageSegmentation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlImageSegmentation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutoMlImageSegmentation message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutoMlImageSegmentation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.inputs != null && message.hasOwnProperty("inputs")) { + var error = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.verify(message.inputs); + if (error) + return "inputs." + error; + } + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.verify(message.metadata); + if (error) + return "metadata." + error; + } + return null; + }; + + /** + * Creates an AutoMlImageSegmentation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentation} AutoMlImageSegmentation + */ + AutoMlImageSegmentation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentation) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentation(); + if (object.inputs != null) { + if (typeof object.inputs !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentation.inputs: object expected"); + message.inputs = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.fromObject(object.inputs); + } + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentation.metadata: object expected"); + message.metadata = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.fromObject(object.metadata); + } + return message; + }; + + /** + * Creates a plain object from an AutoMlImageSegmentation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentation} message AutoMlImageSegmentation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutoMlImageSegmentation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.inputs = null; + object.metadata = null; + } + if (message.inputs != null && message.hasOwnProperty("inputs")) + object.inputs = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.toObject(message.inputs, options); + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.toObject(message.metadata, options); + return object; + }; + + /** + * Converts this AutoMlImageSegmentation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentation + * @instance + * @returns {Object.} JSON object + */ + AutoMlImageSegmentation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AutoMlImageSegmentation; + })(); + + definition.AutoMlImageSegmentationInputs = (function() { + + /** + * Properties of an AutoMlImageSegmentationInputs. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @interface IAutoMlImageSegmentationInputs + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.ModelType|null} [modelType] AutoMlImageSegmentationInputs modelType + * @property {number|Long|null} [budgetMilliNodeHours] AutoMlImageSegmentationInputs budgetMilliNodeHours + * @property {string|null} [baseModelId] AutoMlImageSegmentationInputs baseModelId + */ + + /** + * Constructs a new AutoMlImageSegmentationInputs. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @classdesc Represents an AutoMlImageSegmentationInputs. + * @implements IAutoMlImageSegmentationInputs + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageSegmentationInputs=} [properties] Properties to set + */ + function AutoMlImageSegmentationInputs(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]]; + } + + /** + * AutoMlImageSegmentationInputs modelType. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.ModelType} modelType + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs + * @instance + */ + AutoMlImageSegmentationInputs.prototype.modelType = 0; + + /** + * AutoMlImageSegmentationInputs budgetMilliNodeHours. + * @member {number|Long} budgetMilliNodeHours + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs + * @instance + */ + AutoMlImageSegmentationInputs.prototype.budgetMilliNodeHours = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * AutoMlImageSegmentationInputs baseModelId. + * @member {string} baseModelId + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs + * @instance + */ + AutoMlImageSegmentationInputs.prototype.baseModelId = ""; + + /** + * Creates a new AutoMlImageSegmentationInputs instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageSegmentationInputs=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs} AutoMlImageSegmentationInputs instance + */ + AutoMlImageSegmentationInputs.create = function create(properties) { + return new AutoMlImageSegmentationInputs(properties); + }; + + /** + * Encodes the specified AutoMlImageSegmentationInputs message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageSegmentationInputs} message AutoMlImageSegmentationInputs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlImageSegmentationInputs.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.modelType != null && Object.hasOwnProperty.call(message, "modelType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.modelType); + if (message.budgetMilliNodeHours != null && Object.hasOwnProperty.call(message, "budgetMilliNodeHours")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.budgetMilliNodeHours); + if (message.baseModelId != null && Object.hasOwnProperty.call(message, "baseModelId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.baseModelId); + return writer; + }; + + /** + * Encodes the specified AutoMlImageSegmentationInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageSegmentationInputs} message AutoMlImageSegmentationInputs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlImageSegmentationInputs.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutoMlImageSegmentationInputs message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs} AutoMlImageSegmentationInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlImageSegmentationInputs.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.modelType = reader.int32(); + break; + case 2: + message.budgetMilliNodeHours = reader.int64(); + break; + case 3: + message.baseModelId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutoMlImageSegmentationInputs message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs} AutoMlImageSegmentationInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlImageSegmentationInputs.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutoMlImageSegmentationInputs message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutoMlImageSegmentationInputs.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.modelType != null && message.hasOwnProperty("modelType")) + switch (message.modelType) { + default: + return "modelType: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.budgetMilliNodeHours != null && message.hasOwnProperty("budgetMilliNodeHours")) + if (!$util.isInteger(message.budgetMilliNodeHours) && !(message.budgetMilliNodeHours && $util.isInteger(message.budgetMilliNodeHours.low) && $util.isInteger(message.budgetMilliNodeHours.high))) + return "budgetMilliNodeHours: integer|Long expected"; + if (message.baseModelId != null && message.hasOwnProperty("baseModelId")) + if (!$util.isString(message.baseModelId)) + return "baseModelId: string expected"; + return null; + }; + + /** + * Creates an AutoMlImageSegmentationInputs message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs} AutoMlImageSegmentationInputs + */ + AutoMlImageSegmentationInputs.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs(); + switch (object.modelType) { + case "MODEL_TYPE_UNSPECIFIED": + case 0: + message.modelType = 0; + break; + case "CLOUD_HIGH_ACCURACY_1": + case 1: + message.modelType = 1; + break; + case "CLOUD_LOW_ACCURACY_1": + case 2: + message.modelType = 2; + break; + } + if (object.budgetMilliNodeHours != null) + if ($util.Long) + (message.budgetMilliNodeHours = $util.Long.fromValue(object.budgetMilliNodeHours)).unsigned = false; + else if (typeof object.budgetMilliNodeHours === "string") + message.budgetMilliNodeHours = parseInt(object.budgetMilliNodeHours, 10); + else if (typeof object.budgetMilliNodeHours === "number") + message.budgetMilliNodeHours = object.budgetMilliNodeHours; + else if (typeof object.budgetMilliNodeHours === "object") + message.budgetMilliNodeHours = new $util.LongBits(object.budgetMilliNodeHours.low >>> 0, object.budgetMilliNodeHours.high >>> 0).toNumber(); + if (object.baseModelId != null) + message.baseModelId = String(object.baseModelId); + return message; + }; + + /** + * Creates a plain object from an AutoMlImageSegmentationInputs message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs} message AutoMlImageSegmentationInputs + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutoMlImageSegmentationInputs.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.modelType = options.enums === String ? "MODEL_TYPE_UNSPECIFIED" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.budgetMilliNodeHours = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.budgetMilliNodeHours = options.longs === String ? "0" : 0; + object.baseModelId = ""; + } + if (message.modelType != null && message.hasOwnProperty("modelType")) + object.modelType = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.ModelType[message.modelType] : message.modelType; + if (message.budgetMilliNodeHours != null && message.hasOwnProperty("budgetMilliNodeHours")) + if (typeof message.budgetMilliNodeHours === "number") + object.budgetMilliNodeHours = options.longs === String ? String(message.budgetMilliNodeHours) : message.budgetMilliNodeHours; + else + object.budgetMilliNodeHours = options.longs === String ? $util.Long.prototype.toString.call(message.budgetMilliNodeHours) : options.longs === Number ? new $util.LongBits(message.budgetMilliNodeHours.low >>> 0, message.budgetMilliNodeHours.high >>> 0).toNumber() : message.budgetMilliNodeHours; + if (message.baseModelId != null && message.hasOwnProperty("baseModelId")) + object.baseModelId = message.baseModelId; + return object; + }; + + /** + * Converts this AutoMlImageSegmentationInputs to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs + * @instance + * @returns {Object.} JSON object + */ + AutoMlImageSegmentationInputs.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * ModelType enum. + * @name google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.ModelType + * @enum {number} + * @property {number} MODEL_TYPE_UNSPECIFIED=0 MODEL_TYPE_UNSPECIFIED value + * @property {number} CLOUD_HIGH_ACCURACY_1=1 CLOUD_HIGH_ACCURACY_1 value + * @property {number} CLOUD_LOW_ACCURACY_1=2 CLOUD_LOW_ACCURACY_1 value + */ + AutoMlImageSegmentationInputs.ModelType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MODEL_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "CLOUD_HIGH_ACCURACY_1"] = 1; + values[valuesById[2] = "CLOUD_LOW_ACCURACY_1"] = 2; + return values; + })(); + + return AutoMlImageSegmentationInputs; + })(); + + definition.AutoMlImageSegmentationMetadata = (function() { + + /** + * Properties of an AutoMlImageSegmentationMetadata. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @interface IAutoMlImageSegmentationMetadata + * @property {number|Long|null} [costMilliNodeHours] AutoMlImageSegmentationMetadata costMilliNodeHours + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.SuccessfulStopReason|null} [successfulStopReason] AutoMlImageSegmentationMetadata successfulStopReason + */ + + /** + * Constructs a new AutoMlImageSegmentationMetadata. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @classdesc Represents an AutoMlImageSegmentationMetadata. + * @implements IAutoMlImageSegmentationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageSegmentationMetadata=} [properties] Properties to set + */ + function AutoMlImageSegmentationMetadata(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]]; + } + + /** + * AutoMlImageSegmentationMetadata costMilliNodeHours. + * @member {number|Long} costMilliNodeHours + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata + * @instance + */ + AutoMlImageSegmentationMetadata.prototype.costMilliNodeHours = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * AutoMlImageSegmentationMetadata successfulStopReason. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.SuccessfulStopReason} successfulStopReason + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata + * @instance + */ + AutoMlImageSegmentationMetadata.prototype.successfulStopReason = 0; + + /** + * Creates a new AutoMlImageSegmentationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageSegmentationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata} AutoMlImageSegmentationMetadata instance + */ + AutoMlImageSegmentationMetadata.create = function create(properties) { + return new AutoMlImageSegmentationMetadata(properties); + }; + + /** + * Encodes the specified AutoMlImageSegmentationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageSegmentationMetadata} message AutoMlImageSegmentationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlImageSegmentationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.costMilliNodeHours != null && Object.hasOwnProperty.call(message, "costMilliNodeHours")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.costMilliNodeHours); + if (message.successfulStopReason != null && Object.hasOwnProperty.call(message, "successfulStopReason")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.successfulStopReason); + return writer; + }; + + /** + * Encodes the specified AutoMlImageSegmentationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlImageSegmentationMetadata} message AutoMlImageSegmentationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlImageSegmentationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutoMlImageSegmentationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata} AutoMlImageSegmentationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlImageSegmentationMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.costMilliNodeHours = reader.int64(); + break; + case 2: + message.successfulStopReason = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutoMlImageSegmentationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata} AutoMlImageSegmentationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlImageSegmentationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutoMlImageSegmentationMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutoMlImageSegmentationMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.costMilliNodeHours != null && message.hasOwnProperty("costMilliNodeHours")) + if (!$util.isInteger(message.costMilliNodeHours) && !(message.costMilliNodeHours && $util.isInteger(message.costMilliNodeHours.low) && $util.isInteger(message.costMilliNodeHours.high))) + return "costMilliNodeHours: integer|Long expected"; + if (message.successfulStopReason != null && message.hasOwnProperty("successfulStopReason")) + switch (message.successfulStopReason) { + default: + return "successfulStopReason: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates an AutoMlImageSegmentationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata} AutoMlImageSegmentationMetadata + */ + AutoMlImageSegmentationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata(); + if (object.costMilliNodeHours != null) + if ($util.Long) + (message.costMilliNodeHours = $util.Long.fromValue(object.costMilliNodeHours)).unsigned = false; + else if (typeof object.costMilliNodeHours === "string") + message.costMilliNodeHours = parseInt(object.costMilliNodeHours, 10); + else if (typeof object.costMilliNodeHours === "number") + message.costMilliNodeHours = object.costMilliNodeHours; + else if (typeof object.costMilliNodeHours === "object") + message.costMilliNodeHours = new $util.LongBits(object.costMilliNodeHours.low >>> 0, object.costMilliNodeHours.high >>> 0).toNumber(); + switch (object.successfulStopReason) { + case "SUCCESSFUL_STOP_REASON_UNSPECIFIED": + case 0: + message.successfulStopReason = 0; + break; + case "BUDGET_REACHED": + case 1: + message.successfulStopReason = 1; + break; + case "MODEL_CONVERGED": + case 2: + message.successfulStopReason = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from an AutoMlImageSegmentationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata} message AutoMlImageSegmentationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutoMlImageSegmentationMetadata.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.costMilliNodeHours = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.costMilliNodeHours = options.longs === String ? "0" : 0; + object.successfulStopReason = options.enums === String ? "SUCCESSFUL_STOP_REASON_UNSPECIFIED" : 0; + } + if (message.costMilliNodeHours != null && message.hasOwnProperty("costMilliNodeHours")) + if (typeof message.costMilliNodeHours === "number") + object.costMilliNodeHours = options.longs === String ? String(message.costMilliNodeHours) : message.costMilliNodeHours; + else + object.costMilliNodeHours = options.longs === String ? $util.Long.prototype.toString.call(message.costMilliNodeHours) : options.longs === Number ? new $util.LongBits(message.costMilliNodeHours.low >>> 0, message.costMilliNodeHours.high >>> 0).toNumber() : message.costMilliNodeHours; + if (message.successfulStopReason != null && message.hasOwnProperty("successfulStopReason")) + object.successfulStopReason = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.SuccessfulStopReason[message.successfulStopReason] : message.successfulStopReason; + return object; + }; + + /** + * Converts this AutoMlImageSegmentationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata + * @instance + * @returns {Object.} JSON object + */ + AutoMlImageSegmentationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * SuccessfulStopReason enum. + * @name google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.SuccessfulStopReason + * @enum {number} + * @property {number} SUCCESSFUL_STOP_REASON_UNSPECIFIED=0 SUCCESSFUL_STOP_REASON_UNSPECIFIED value + * @property {number} BUDGET_REACHED=1 BUDGET_REACHED value + * @property {number} MODEL_CONVERGED=2 MODEL_CONVERGED value + */ + AutoMlImageSegmentationMetadata.SuccessfulStopReason = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SUCCESSFUL_STOP_REASON_UNSPECIFIED"] = 0; + values[valuesById[1] = "BUDGET_REACHED"] = 1; + values[valuesById[2] = "MODEL_CONVERGED"] = 2; + return values; + })(); + + return AutoMlImageSegmentationMetadata; + })(); + + definition.AutoMlTables = (function() { + + /** + * Properties of an AutoMlTables. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @interface IAutoMlTables + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTablesInputs|null} [inputs] AutoMlTables inputs + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTablesMetadata|null} [metadata] AutoMlTables metadata + */ + + /** + * Constructs a new AutoMlTables. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @classdesc Represents an AutoMlTables. + * @implements IAutoMlTables + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTables=} [properties] Properties to set + */ + function AutoMlTables(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]]; + } + + /** + * AutoMlTables inputs. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTablesInputs|null|undefined} inputs + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTables + * @instance + */ + AutoMlTables.prototype.inputs = null; + + /** + * AutoMlTables metadata. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTablesMetadata|null|undefined} metadata + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTables + * @instance + */ + AutoMlTables.prototype.metadata = null; + + /** + * Creates a new AutoMlTables instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTables + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTables=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTables} AutoMlTables instance + */ + AutoMlTables.create = function create(properties) { + return new AutoMlTables(properties); + }; + + /** + * Encodes the specified AutoMlTables message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTables.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTables + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTables} message AutoMlTables message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlTables.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.inputs != null && Object.hasOwnProperty.call(message, "inputs")) + $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesMetadata.encode(message.metadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified AutoMlTables message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTables.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTables + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTables} message AutoMlTables message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlTables.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutoMlTables message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTables + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTables} AutoMlTables + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlTables.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTables(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.inputs = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.decode(reader, reader.uint32()); + break; + case 2: + message.metadata = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesMetadata.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutoMlTables message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTables + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTables} AutoMlTables + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlTables.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutoMlTables message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTables + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutoMlTables.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.inputs != null && message.hasOwnProperty("inputs")) { + var error = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.verify(message.inputs); + if (error) + return "inputs." + error; + } + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesMetadata.verify(message.metadata); + if (error) + return "metadata." + error; + } + return null; + }; + + /** + * Creates an AutoMlTables message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTables + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTables} AutoMlTables + */ + AutoMlTables.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTables) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTables(); + if (object.inputs != null) { + if (typeof object.inputs !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTables.inputs: object expected"); + message.inputs = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.fromObject(object.inputs); + } + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTables.metadata: object expected"); + message.metadata = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesMetadata.fromObject(object.metadata); + } + return message; + }; + + /** + * Creates a plain object from an AutoMlTables message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTables + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTables} message AutoMlTables + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutoMlTables.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.inputs = null; + object.metadata = null; + } + if (message.inputs != null && message.hasOwnProperty("inputs")) + object.inputs = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.toObject(message.inputs, options); + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesMetadata.toObject(message.metadata, options); + return object; + }; + + /** + * Converts this AutoMlTables to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTables + * @instance + * @returns {Object.} JSON object + */ + AutoMlTables.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AutoMlTables; + })(); + + definition.AutoMlTablesInputs = (function() { + + /** + * Properties of an AutoMlTablesInputs. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @interface IAutoMlTablesInputs + * @property {number|null} [optimizationObjectiveRecallValue] AutoMlTablesInputs optimizationObjectiveRecallValue + * @property {number|null} [optimizationObjectivePrecisionValue] AutoMlTablesInputs optimizationObjectivePrecisionValue + * @property {string|null} [predictionType] AutoMlTablesInputs predictionType + * @property {string|null} [targetColumn] AutoMlTablesInputs targetColumn + * @property {Array.|null} [transformations] AutoMlTablesInputs transformations + * @property {string|null} [optimizationObjective] AutoMlTablesInputs optimizationObjective + * @property {number|Long|null} [trainBudgetMilliNodeHours] AutoMlTablesInputs trainBudgetMilliNodeHours + * @property {boolean|null} [disableEarlyStopping] AutoMlTablesInputs disableEarlyStopping + * @property {string|null} [weightColumnName] AutoMlTablesInputs weightColumnName + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig|null} [exportEvaluatedDataItemsConfig] AutoMlTablesInputs exportEvaluatedDataItemsConfig + */ + + /** + * Constructs a new AutoMlTablesInputs. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @classdesc Represents an AutoMlTablesInputs. + * @implements IAutoMlTablesInputs + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTablesInputs=} [properties] Properties to set + */ + function AutoMlTablesInputs(properties) { + this.transformations = []; + 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]]; + } + + /** + * AutoMlTablesInputs optimizationObjectiveRecallValue. + * @member {number} optimizationObjectiveRecallValue + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs + * @instance + */ + AutoMlTablesInputs.prototype.optimizationObjectiveRecallValue = 0; + + /** + * AutoMlTablesInputs optimizationObjectivePrecisionValue. + * @member {number} optimizationObjectivePrecisionValue + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs + * @instance + */ + AutoMlTablesInputs.prototype.optimizationObjectivePrecisionValue = 0; + + /** + * AutoMlTablesInputs predictionType. + * @member {string} predictionType + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs + * @instance + */ + AutoMlTablesInputs.prototype.predictionType = ""; + + /** + * AutoMlTablesInputs targetColumn. + * @member {string} targetColumn + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs + * @instance + */ + AutoMlTablesInputs.prototype.targetColumn = ""; + + /** + * AutoMlTablesInputs transformations. + * @member {Array.} transformations + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs + * @instance + */ + AutoMlTablesInputs.prototype.transformations = $util.emptyArray; + + /** + * AutoMlTablesInputs optimizationObjective. + * @member {string} optimizationObjective + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs + * @instance + */ + AutoMlTablesInputs.prototype.optimizationObjective = ""; + + /** + * AutoMlTablesInputs trainBudgetMilliNodeHours. + * @member {number|Long} trainBudgetMilliNodeHours + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs + * @instance + */ + AutoMlTablesInputs.prototype.trainBudgetMilliNodeHours = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * AutoMlTablesInputs disableEarlyStopping. + * @member {boolean} disableEarlyStopping + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs + * @instance + */ + AutoMlTablesInputs.prototype.disableEarlyStopping = false; + + /** + * AutoMlTablesInputs weightColumnName. + * @member {string} weightColumnName + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs + * @instance + */ + AutoMlTablesInputs.prototype.weightColumnName = ""; + + /** + * AutoMlTablesInputs exportEvaluatedDataItemsConfig. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig|null|undefined} exportEvaluatedDataItemsConfig + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs + * @instance + */ + AutoMlTablesInputs.prototype.exportEvaluatedDataItemsConfig = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * AutoMlTablesInputs additionalOptimizationObjectiveConfig. + * @member {"optimizationObjectiveRecallValue"|"optimizationObjectivePrecisionValue"|undefined} additionalOptimizationObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs + * @instance + */ + Object.defineProperty(AutoMlTablesInputs.prototype, "additionalOptimizationObjectiveConfig", { + get: $util.oneOfGetter($oneOfFields = ["optimizationObjectiveRecallValue", "optimizationObjectivePrecisionValue"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new AutoMlTablesInputs instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTablesInputs=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs} AutoMlTablesInputs instance + */ + AutoMlTablesInputs.create = function create(properties) { + return new AutoMlTablesInputs(properties); + }; + + /** + * Encodes the specified AutoMlTablesInputs message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTablesInputs} message AutoMlTablesInputs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlTablesInputs.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.predictionType != null && Object.hasOwnProperty.call(message, "predictionType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.predictionType); + if (message.targetColumn != null && Object.hasOwnProperty.call(message, "targetColumn")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.targetColumn); + if (message.transformations != null && message.transformations.length) + for (var i = 0; i < message.transformations.length; ++i) + $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.encode(message.transformations[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.optimizationObjective != null && Object.hasOwnProperty.call(message, "optimizationObjective")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.optimizationObjective); + if (message.optimizationObjectiveRecallValue != null && Object.hasOwnProperty.call(message, "optimizationObjectiveRecallValue")) + writer.uint32(/* id 5, wireType 5 =*/45).float(message.optimizationObjectiveRecallValue); + if (message.optimizationObjectivePrecisionValue != null && Object.hasOwnProperty.call(message, "optimizationObjectivePrecisionValue")) + writer.uint32(/* id 6, wireType 5 =*/53).float(message.optimizationObjectivePrecisionValue); + if (message.trainBudgetMilliNodeHours != null && Object.hasOwnProperty.call(message, "trainBudgetMilliNodeHours")) + writer.uint32(/* id 7, wireType 0 =*/56).int64(message.trainBudgetMilliNodeHours); + if (message.disableEarlyStopping != null && Object.hasOwnProperty.call(message, "disableEarlyStopping")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.disableEarlyStopping); + if (message.weightColumnName != null && Object.hasOwnProperty.call(message, "weightColumnName")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.weightColumnName); + if (message.exportEvaluatedDataItemsConfig != null && Object.hasOwnProperty.call(message, "exportEvaluatedDataItemsConfig")) + $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig.encode(message.exportEvaluatedDataItemsConfig, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified AutoMlTablesInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTablesInputs} message AutoMlTablesInputs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlTablesInputs.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutoMlTablesInputs message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs} AutoMlTablesInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlTablesInputs.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 5: + message.optimizationObjectiveRecallValue = reader.float(); + break; + case 6: + message.optimizationObjectivePrecisionValue = reader.float(); + break; + case 1: + message.predictionType = reader.string(); + break; + case 2: + message.targetColumn = reader.string(); + break; + case 3: + if (!(message.transformations && message.transformations.length)) + message.transformations = []; + message.transformations.push($root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.decode(reader, reader.uint32())); + break; + case 4: + message.optimizationObjective = reader.string(); + break; + case 7: + message.trainBudgetMilliNodeHours = reader.int64(); + break; + case 8: + message.disableEarlyStopping = reader.bool(); + break; + case 9: + message.weightColumnName = reader.string(); + break; + case 10: + message.exportEvaluatedDataItemsConfig = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutoMlTablesInputs message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs} AutoMlTablesInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlTablesInputs.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutoMlTablesInputs message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutoMlTablesInputs.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.optimizationObjectiveRecallValue != null && message.hasOwnProperty("optimizationObjectiveRecallValue")) { + properties.additionalOptimizationObjectiveConfig = 1; + if (typeof message.optimizationObjectiveRecallValue !== "number") + return "optimizationObjectiveRecallValue: number expected"; + } + if (message.optimizationObjectivePrecisionValue != null && message.hasOwnProperty("optimizationObjectivePrecisionValue")) { + if (properties.additionalOptimizationObjectiveConfig === 1) + return "additionalOptimizationObjectiveConfig: multiple values"; + properties.additionalOptimizationObjectiveConfig = 1; + if (typeof message.optimizationObjectivePrecisionValue !== "number") + return "optimizationObjectivePrecisionValue: number expected"; + } + if (message.predictionType != null && message.hasOwnProperty("predictionType")) + if (!$util.isString(message.predictionType)) + return "predictionType: string expected"; + if (message.targetColumn != null && message.hasOwnProperty("targetColumn")) + if (!$util.isString(message.targetColumn)) + return "targetColumn: string expected"; + if (message.transformations != null && message.hasOwnProperty("transformations")) { + if (!Array.isArray(message.transformations)) + return "transformations: array expected"; + for (var i = 0; i < message.transformations.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.verify(message.transformations[i]); + if (error) + return "transformations." + error; + } + } + if (message.optimizationObjective != null && message.hasOwnProperty("optimizationObjective")) + if (!$util.isString(message.optimizationObjective)) + return "optimizationObjective: string expected"; + if (message.trainBudgetMilliNodeHours != null && message.hasOwnProperty("trainBudgetMilliNodeHours")) + if (!$util.isInteger(message.trainBudgetMilliNodeHours) && !(message.trainBudgetMilliNodeHours && $util.isInteger(message.trainBudgetMilliNodeHours.low) && $util.isInteger(message.trainBudgetMilliNodeHours.high))) + return "trainBudgetMilliNodeHours: integer|Long expected"; + if (message.disableEarlyStopping != null && message.hasOwnProperty("disableEarlyStopping")) + if (typeof message.disableEarlyStopping !== "boolean") + return "disableEarlyStopping: boolean expected"; + if (message.weightColumnName != null && message.hasOwnProperty("weightColumnName")) + if (!$util.isString(message.weightColumnName)) + return "weightColumnName: string expected"; + if (message.exportEvaluatedDataItemsConfig != null && message.hasOwnProperty("exportEvaluatedDataItemsConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig.verify(message.exportEvaluatedDataItemsConfig); + if (error) + return "exportEvaluatedDataItemsConfig." + error; + } + return null; + }; + + /** + * Creates an AutoMlTablesInputs message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs} AutoMlTablesInputs + */ + AutoMlTablesInputs.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs(); + if (object.optimizationObjectiveRecallValue != null) + message.optimizationObjectiveRecallValue = Number(object.optimizationObjectiveRecallValue); + if (object.optimizationObjectivePrecisionValue != null) + message.optimizationObjectivePrecisionValue = Number(object.optimizationObjectivePrecisionValue); + if (object.predictionType != null) + message.predictionType = String(object.predictionType); + if (object.targetColumn != null) + message.targetColumn = String(object.targetColumn); + if (object.transformations) { + if (!Array.isArray(object.transformations)) + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.transformations: array expected"); + message.transformations = []; + for (var i = 0; i < object.transformations.length; ++i) { + if (typeof object.transformations[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.transformations: object expected"); + message.transformations[i] = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.fromObject(object.transformations[i]); + } + } + if (object.optimizationObjective != null) + message.optimizationObjective = String(object.optimizationObjective); + if (object.trainBudgetMilliNodeHours != null) + if ($util.Long) + (message.trainBudgetMilliNodeHours = $util.Long.fromValue(object.trainBudgetMilliNodeHours)).unsigned = false; + else if (typeof object.trainBudgetMilliNodeHours === "string") + message.trainBudgetMilliNodeHours = parseInt(object.trainBudgetMilliNodeHours, 10); + else if (typeof object.trainBudgetMilliNodeHours === "number") + message.trainBudgetMilliNodeHours = object.trainBudgetMilliNodeHours; + else if (typeof object.trainBudgetMilliNodeHours === "object") + message.trainBudgetMilliNodeHours = new $util.LongBits(object.trainBudgetMilliNodeHours.low >>> 0, object.trainBudgetMilliNodeHours.high >>> 0).toNumber(); + if (object.disableEarlyStopping != null) + message.disableEarlyStopping = Boolean(object.disableEarlyStopping); + if (object.weightColumnName != null) + message.weightColumnName = String(object.weightColumnName); + if (object.exportEvaluatedDataItemsConfig != null) { + if (typeof object.exportEvaluatedDataItemsConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.exportEvaluatedDataItemsConfig: object expected"); + message.exportEvaluatedDataItemsConfig = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig.fromObject(object.exportEvaluatedDataItemsConfig); + } + return message; + }; + + /** + * Creates a plain object from an AutoMlTablesInputs message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs} message AutoMlTablesInputs + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutoMlTablesInputs.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.transformations = []; + if (options.defaults) { + object.predictionType = ""; + object.targetColumn = ""; + object.optimizationObjective = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.trainBudgetMilliNodeHours = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.trainBudgetMilliNodeHours = options.longs === String ? "0" : 0; + object.disableEarlyStopping = false; + object.weightColumnName = ""; + object.exportEvaluatedDataItemsConfig = null; + } + if (message.predictionType != null && message.hasOwnProperty("predictionType")) + object.predictionType = message.predictionType; + if (message.targetColumn != null && message.hasOwnProperty("targetColumn")) + object.targetColumn = message.targetColumn; + if (message.transformations && message.transformations.length) { + object.transformations = []; + for (var j = 0; j < message.transformations.length; ++j) + object.transformations[j] = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.toObject(message.transformations[j], options); + } + if (message.optimizationObjective != null && message.hasOwnProperty("optimizationObjective")) + object.optimizationObjective = message.optimizationObjective; + if (message.optimizationObjectiveRecallValue != null && message.hasOwnProperty("optimizationObjectiveRecallValue")) { + object.optimizationObjectiveRecallValue = options.json && !isFinite(message.optimizationObjectiveRecallValue) ? String(message.optimizationObjectiveRecallValue) : message.optimizationObjectiveRecallValue; + if (options.oneofs) + object.additionalOptimizationObjectiveConfig = "optimizationObjectiveRecallValue"; + } + if (message.optimizationObjectivePrecisionValue != null && message.hasOwnProperty("optimizationObjectivePrecisionValue")) { + object.optimizationObjectivePrecisionValue = options.json && !isFinite(message.optimizationObjectivePrecisionValue) ? String(message.optimizationObjectivePrecisionValue) : message.optimizationObjectivePrecisionValue; + if (options.oneofs) + object.additionalOptimizationObjectiveConfig = "optimizationObjectivePrecisionValue"; + } + if (message.trainBudgetMilliNodeHours != null && message.hasOwnProperty("trainBudgetMilliNodeHours")) + if (typeof message.trainBudgetMilliNodeHours === "number") + object.trainBudgetMilliNodeHours = options.longs === String ? String(message.trainBudgetMilliNodeHours) : message.trainBudgetMilliNodeHours; + else + object.trainBudgetMilliNodeHours = options.longs === String ? $util.Long.prototype.toString.call(message.trainBudgetMilliNodeHours) : options.longs === Number ? new $util.LongBits(message.trainBudgetMilliNodeHours.low >>> 0, message.trainBudgetMilliNodeHours.high >>> 0).toNumber() : message.trainBudgetMilliNodeHours; + if (message.disableEarlyStopping != null && message.hasOwnProperty("disableEarlyStopping")) + object.disableEarlyStopping = message.disableEarlyStopping; + if (message.weightColumnName != null && message.hasOwnProperty("weightColumnName")) + object.weightColumnName = message.weightColumnName; + if (message.exportEvaluatedDataItemsConfig != null && message.hasOwnProperty("exportEvaluatedDataItemsConfig")) + object.exportEvaluatedDataItemsConfig = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig.toObject(message.exportEvaluatedDataItemsConfig, options); + return object; + }; + + /** + * Converts this AutoMlTablesInputs to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs + * @instance + * @returns {Object.} JSON object + */ + AutoMlTablesInputs.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + AutoMlTablesInputs.Transformation = (function() { + + /** + * Properties of a Transformation. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs + * @interface ITransformation + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.IAutoTransformation|null} [auto] Transformation auto + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericTransformation|null} [numeric] Transformation numeric + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalTransformation|null} [categorical] Transformation categorical + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITimestampTransformation|null} [timestamp] Transformation timestamp + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextTransformation|null} [text] Transformation text + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericArrayTransformation|null} [repeatedNumeric] Transformation repeatedNumeric + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalArrayTransformation|null} [repeatedCategorical] Transformation repeatedCategorical + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextArrayTransformation|null} [repeatedText] Transformation repeatedText + */ + + /** + * Constructs a new Transformation. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs + * @classdesc Represents a Transformation. + * @implements ITransformation + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.ITransformation=} [properties] Properties to set + */ + function Transformation(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]]; + } + + /** + * Transformation auto. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.IAutoTransformation|null|undefined} auto + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation + * @instance + */ + Transformation.prototype.auto = null; + + /** + * Transformation numeric. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericTransformation|null|undefined} numeric + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation + * @instance + */ + Transformation.prototype.numeric = null; + + /** + * Transformation categorical. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalTransformation|null|undefined} categorical + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation + * @instance + */ + Transformation.prototype.categorical = null; + + /** + * Transformation timestamp. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITimestampTransformation|null|undefined} timestamp + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation + * @instance + */ + Transformation.prototype.timestamp = null; + + /** + * Transformation text. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextTransformation|null|undefined} text + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation + * @instance + */ + Transformation.prototype.text = null; + + /** + * Transformation repeatedNumeric. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericArrayTransformation|null|undefined} repeatedNumeric + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation + * @instance + */ + Transformation.prototype.repeatedNumeric = null; + + /** + * Transformation repeatedCategorical. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalArrayTransformation|null|undefined} repeatedCategorical + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation + * @instance + */ + Transformation.prototype.repeatedCategorical = null; + + /** + * Transformation repeatedText. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextArrayTransformation|null|undefined} repeatedText + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation + * @instance + */ + Transformation.prototype.repeatedText = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Transformation transformationDetail. + * @member {"auto"|"numeric"|"categorical"|"timestamp"|"text"|"repeatedNumeric"|"repeatedCategorical"|"repeatedText"|undefined} transformationDetail + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation + * @instance + */ + Object.defineProperty(Transformation.prototype, "transformationDetail", { + get: $util.oneOfGetter($oneOfFields = ["auto", "numeric", "categorical", "timestamp", "text", "repeatedNumeric", "repeatedCategorical", "repeatedText"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Transformation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.ITransformation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation} Transformation instance + */ + Transformation.create = function create(properties) { + return new Transformation(properties); + }; + + /** + * Encodes the specified Transformation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.ITransformation} message Transformation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Transformation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.auto != null && Object.hasOwnProperty.call(message, "auto")) + $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation.encode(message.auto, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.numeric != null && Object.hasOwnProperty.call(message, "numeric")) + $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation.encode(message.numeric, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.categorical != null && Object.hasOwnProperty.call(message, "categorical")) + $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation.encode(message.categorical, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) + $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation.encode(message.timestamp, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.text != null && Object.hasOwnProperty.call(message, "text")) + $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation.encode(message.text, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.repeatedNumeric != null && Object.hasOwnProperty.call(message, "repeatedNumeric")) + $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation.encode(message.repeatedNumeric, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.repeatedCategorical != null && Object.hasOwnProperty.call(message, "repeatedCategorical")) + $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation.encode(message.repeatedCategorical, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.repeatedText != null && Object.hasOwnProperty.call(message, "repeatedText")) + $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation.encode(message.repeatedText, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Transformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.ITransformation} message Transformation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Transformation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Transformation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation} Transformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Transformation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.auto = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation.decode(reader, reader.uint32()); + break; + case 2: + message.numeric = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation.decode(reader, reader.uint32()); + break; + case 3: + message.categorical = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation.decode(reader, reader.uint32()); + break; + case 4: + message.timestamp = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation.decode(reader, reader.uint32()); + break; + case 5: + message.text = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation.decode(reader, reader.uint32()); + break; + case 6: + message.repeatedNumeric = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation.decode(reader, reader.uint32()); + break; + case 7: + message.repeatedCategorical = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation.decode(reader, reader.uint32()); + break; + case 8: + message.repeatedText = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Transformation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation} Transformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Transformation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Transformation message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Transformation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.auto != null && message.hasOwnProperty("auto")) { + properties.transformationDetail = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation.verify(message.auto); + if (error) + return "auto." + error; + } + } + if (message.numeric != null && message.hasOwnProperty("numeric")) { + if (properties.transformationDetail === 1) + return "transformationDetail: multiple values"; + properties.transformationDetail = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation.verify(message.numeric); + if (error) + return "numeric." + error; + } + } + if (message.categorical != null && message.hasOwnProperty("categorical")) { + if (properties.transformationDetail === 1) + return "transformationDetail: multiple values"; + properties.transformationDetail = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation.verify(message.categorical); + if (error) + return "categorical." + error; + } + } + if (message.timestamp != null && message.hasOwnProperty("timestamp")) { + if (properties.transformationDetail === 1) + return "transformationDetail: multiple values"; + properties.transformationDetail = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation.verify(message.timestamp); + if (error) + return "timestamp." + error; + } + } + if (message.text != null && message.hasOwnProperty("text")) { + if (properties.transformationDetail === 1) + return "transformationDetail: multiple values"; + properties.transformationDetail = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation.verify(message.text); + if (error) + return "text." + error; + } + } + if (message.repeatedNumeric != null && message.hasOwnProperty("repeatedNumeric")) { + if (properties.transformationDetail === 1) + return "transformationDetail: multiple values"; + properties.transformationDetail = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation.verify(message.repeatedNumeric); + if (error) + return "repeatedNumeric." + error; + } + } + if (message.repeatedCategorical != null && message.hasOwnProperty("repeatedCategorical")) { + if (properties.transformationDetail === 1) + return "transformationDetail: multiple values"; + properties.transformationDetail = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation.verify(message.repeatedCategorical); + if (error) + return "repeatedCategorical." + error; + } + } + if (message.repeatedText != null && message.hasOwnProperty("repeatedText")) { + if (properties.transformationDetail === 1) + return "transformationDetail: multiple values"; + properties.transformationDetail = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation.verify(message.repeatedText); + if (error) + return "repeatedText." + error; + } + } + return null; + }; + + /** + * Creates a Transformation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation} Transformation + */ + Transformation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation(); + if (object.auto != null) { + if (typeof object.auto !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.auto: object expected"); + message.auto = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation.fromObject(object.auto); + } + if (object.numeric != null) { + if (typeof object.numeric !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.numeric: object expected"); + message.numeric = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation.fromObject(object.numeric); + } + if (object.categorical != null) { + if (typeof object.categorical !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.categorical: object expected"); + message.categorical = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation.fromObject(object.categorical); + } + if (object.timestamp != null) { + if (typeof object.timestamp !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.timestamp: object expected"); + message.timestamp = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation.fromObject(object.timestamp); + } + if (object.text != null) { + if (typeof object.text !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.text: object expected"); + message.text = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation.fromObject(object.text); + } + if (object.repeatedNumeric != null) { + if (typeof object.repeatedNumeric !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.repeatedNumeric: object expected"); + message.repeatedNumeric = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation.fromObject(object.repeatedNumeric); + } + if (object.repeatedCategorical != null) { + if (typeof object.repeatedCategorical !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.repeatedCategorical: object expected"); + message.repeatedCategorical = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation.fromObject(object.repeatedCategorical); + } + if (object.repeatedText != null) { + if (typeof object.repeatedText !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.repeatedText: object expected"); + message.repeatedText = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation.fromObject(object.repeatedText); + } + return message; + }; + + /** + * Creates a plain object from a Transformation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation} message Transformation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Transformation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.auto != null && message.hasOwnProperty("auto")) { + object.auto = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation.toObject(message.auto, options); + if (options.oneofs) + object.transformationDetail = "auto"; + } + if (message.numeric != null && message.hasOwnProperty("numeric")) { + object.numeric = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation.toObject(message.numeric, options); + if (options.oneofs) + object.transformationDetail = "numeric"; + } + if (message.categorical != null && message.hasOwnProperty("categorical")) { + object.categorical = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation.toObject(message.categorical, options); + if (options.oneofs) + object.transformationDetail = "categorical"; + } + if (message.timestamp != null && message.hasOwnProperty("timestamp")) { + object.timestamp = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation.toObject(message.timestamp, options); + if (options.oneofs) + object.transformationDetail = "timestamp"; + } + if (message.text != null && message.hasOwnProperty("text")) { + object.text = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation.toObject(message.text, options); + if (options.oneofs) + object.transformationDetail = "text"; + } + if (message.repeatedNumeric != null && message.hasOwnProperty("repeatedNumeric")) { + object.repeatedNumeric = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation.toObject(message.repeatedNumeric, options); + if (options.oneofs) + object.transformationDetail = "repeatedNumeric"; + } + if (message.repeatedCategorical != null && message.hasOwnProperty("repeatedCategorical")) { + object.repeatedCategorical = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation.toObject(message.repeatedCategorical, options); + if (options.oneofs) + object.transformationDetail = "repeatedCategorical"; + } + if (message.repeatedText != null && message.hasOwnProperty("repeatedText")) { + object.repeatedText = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation.toObject(message.repeatedText, options); + if (options.oneofs) + object.transformationDetail = "repeatedText"; + } + return object; + }; + + /** + * Converts this Transformation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation + * @instance + * @returns {Object.} JSON object + */ + Transformation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + Transformation.AutoTransformation = (function() { + + /** + * Properties of an AutoTransformation. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation + * @interface IAutoTransformation + * @property {string|null} [columnName] AutoTransformation columnName + */ + + /** + * Constructs a new AutoTransformation. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation + * @classdesc Represents an AutoTransformation. + * @implements IAutoTransformation + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.IAutoTransformation=} [properties] Properties to set + */ + function AutoTransformation(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]]; + } + + /** + * AutoTransformation columnName. + * @member {string} columnName + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation + * @instance + */ + AutoTransformation.prototype.columnName = ""; + + /** + * Creates a new AutoTransformation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.IAutoTransformation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation} AutoTransformation instance + */ + AutoTransformation.create = function create(properties) { + return new AutoTransformation(properties); + }; + + /** + * Encodes the specified AutoTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.IAutoTransformation} message AutoTransformation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoTransformation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.columnName != null && Object.hasOwnProperty.call(message, "columnName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.columnName); + return writer; + }; + + /** + * Encodes the specified AutoTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.IAutoTransformation} message AutoTransformation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoTransformation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutoTransformation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation} AutoTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoTransformation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.columnName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutoTransformation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation} AutoTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoTransformation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutoTransformation message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutoTransformation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.columnName != null && message.hasOwnProperty("columnName")) + if (!$util.isString(message.columnName)) + return "columnName: string expected"; + return null; + }; + + /** + * Creates an AutoTransformation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation} AutoTransformation + */ + AutoTransformation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation(); + if (object.columnName != null) + message.columnName = String(object.columnName); + return message; + }; + + /** + * Creates a plain object from an AutoTransformation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation} message AutoTransformation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutoTransformation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.columnName = ""; + if (message.columnName != null && message.hasOwnProperty("columnName")) + object.columnName = message.columnName; + return object; + }; + + /** + * Converts this AutoTransformation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation + * @instance + * @returns {Object.} JSON object + */ + AutoTransformation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AutoTransformation; + })(); + + Transformation.NumericTransformation = (function() { + + /** + * Properties of a NumericTransformation. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation + * @interface INumericTransformation + * @property {string|null} [columnName] NumericTransformation columnName + * @property {boolean|null} [invalidValuesAllowed] NumericTransformation invalidValuesAllowed + */ + + /** + * Constructs a new NumericTransformation. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation + * @classdesc Represents a NumericTransformation. + * @implements INumericTransformation + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericTransformation=} [properties] Properties to set + */ + function NumericTransformation(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]]; + } + + /** + * NumericTransformation columnName. + * @member {string} columnName + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation + * @instance + */ + NumericTransformation.prototype.columnName = ""; + + /** + * NumericTransformation invalidValuesAllowed. + * @member {boolean} invalidValuesAllowed + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation + * @instance + */ + NumericTransformation.prototype.invalidValuesAllowed = false; + + /** + * Creates a new NumericTransformation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericTransformation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation} NumericTransformation instance + */ + NumericTransformation.create = function create(properties) { + return new NumericTransformation(properties); + }; + + /** + * Encodes the specified NumericTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericTransformation} message NumericTransformation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NumericTransformation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.columnName != null && Object.hasOwnProperty.call(message, "columnName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.columnName); + if (message.invalidValuesAllowed != null && Object.hasOwnProperty.call(message, "invalidValuesAllowed")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.invalidValuesAllowed); + return writer; + }; + + /** + * Encodes the specified NumericTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericTransformation} message NumericTransformation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NumericTransformation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NumericTransformation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation} NumericTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NumericTransformation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.columnName = reader.string(); + break; + case 2: + message.invalidValuesAllowed = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NumericTransformation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation} NumericTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NumericTransformation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NumericTransformation message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NumericTransformation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.columnName != null && message.hasOwnProperty("columnName")) + if (!$util.isString(message.columnName)) + return "columnName: string expected"; + if (message.invalidValuesAllowed != null && message.hasOwnProperty("invalidValuesAllowed")) + if (typeof message.invalidValuesAllowed !== "boolean") + return "invalidValuesAllowed: boolean expected"; + return null; + }; + + /** + * Creates a NumericTransformation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation} NumericTransformation + */ + NumericTransformation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation(); + if (object.columnName != null) + message.columnName = String(object.columnName); + if (object.invalidValuesAllowed != null) + message.invalidValuesAllowed = Boolean(object.invalidValuesAllowed); + return message; + }; + + /** + * Creates a plain object from a NumericTransformation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation} message NumericTransformation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NumericTransformation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.columnName = ""; + object.invalidValuesAllowed = false; + } + if (message.columnName != null && message.hasOwnProperty("columnName")) + object.columnName = message.columnName; + if (message.invalidValuesAllowed != null && message.hasOwnProperty("invalidValuesAllowed")) + object.invalidValuesAllowed = message.invalidValuesAllowed; + return object; + }; + + /** + * Converts this NumericTransformation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation + * @instance + * @returns {Object.} JSON object + */ + NumericTransformation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return NumericTransformation; + })(); + + Transformation.CategoricalTransformation = (function() { + + /** + * Properties of a CategoricalTransformation. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation + * @interface ICategoricalTransformation + * @property {string|null} [columnName] CategoricalTransformation columnName + */ + + /** + * Constructs a new CategoricalTransformation. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation + * @classdesc Represents a CategoricalTransformation. + * @implements ICategoricalTransformation + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalTransformation=} [properties] Properties to set + */ + function CategoricalTransformation(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]]; + } + + /** + * CategoricalTransformation columnName. + * @member {string} columnName + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation + * @instance + */ + CategoricalTransformation.prototype.columnName = ""; + + /** + * Creates a new CategoricalTransformation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalTransformation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation} CategoricalTransformation instance + */ + CategoricalTransformation.create = function create(properties) { + return new CategoricalTransformation(properties); + }; + + /** + * Encodes the specified CategoricalTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalTransformation} message CategoricalTransformation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CategoricalTransformation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.columnName != null && Object.hasOwnProperty.call(message, "columnName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.columnName); + return writer; + }; + + /** + * Encodes the specified CategoricalTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalTransformation} message CategoricalTransformation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CategoricalTransformation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CategoricalTransformation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation} CategoricalTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CategoricalTransformation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.columnName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CategoricalTransformation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation} CategoricalTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CategoricalTransformation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CategoricalTransformation message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CategoricalTransformation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.columnName != null && message.hasOwnProperty("columnName")) + if (!$util.isString(message.columnName)) + return "columnName: string expected"; + return null; + }; + + /** + * Creates a CategoricalTransformation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation} CategoricalTransformation + */ + CategoricalTransformation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation(); + if (object.columnName != null) + message.columnName = String(object.columnName); + return message; + }; + + /** + * Creates a plain object from a CategoricalTransformation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation} message CategoricalTransformation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CategoricalTransformation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.columnName = ""; + if (message.columnName != null && message.hasOwnProperty("columnName")) + object.columnName = message.columnName; + return object; + }; + + /** + * Converts this CategoricalTransformation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation + * @instance + * @returns {Object.} JSON object + */ + CategoricalTransformation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CategoricalTransformation; + })(); + + Transformation.TimestampTransformation = (function() { + + /** + * Properties of a TimestampTransformation. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation + * @interface ITimestampTransformation + * @property {string|null} [columnName] TimestampTransformation columnName + * @property {string|null} [timeFormat] TimestampTransformation timeFormat + * @property {boolean|null} [invalidValuesAllowed] TimestampTransformation invalidValuesAllowed + */ + + /** + * Constructs a new TimestampTransformation. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation + * @classdesc Represents a TimestampTransformation. + * @implements ITimestampTransformation + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITimestampTransformation=} [properties] Properties to set + */ + function TimestampTransformation(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]]; + } + + /** + * TimestampTransformation columnName. + * @member {string} columnName + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation + * @instance + */ + TimestampTransformation.prototype.columnName = ""; + + /** + * TimestampTransformation timeFormat. + * @member {string} timeFormat + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation + * @instance + */ + TimestampTransformation.prototype.timeFormat = ""; + + /** + * TimestampTransformation invalidValuesAllowed. + * @member {boolean} invalidValuesAllowed + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation + * @instance + */ + TimestampTransformation.prototype.invalidValuesAllowed = false; + + /** + * Creates a new TimestampTransformation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITimestampTransformation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation} TimestampTransformation instance + */ + TimestampTransformation.create = function create(properties) { + return new TimestampTransformation(properties); + }; + + /** + * Encodes the specified TimestampTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITimestampTransformation} message TimestampTransformation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TimestampTransformation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.columnName != null && Object.hasOwnProperty.call(message, "columnName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.columnName); + if (message.timeFormat != null && Object.hasOwnProperty.call(message, "timeFormat")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.timeFormat); + if (message.invalidValuesAllowed != null && Object.hasOwnProperty.call(message, "invalidValuesAllowed")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.invalidValuesAllowed); + return writer; + }; + + /** + * Encodes the specified TimestampTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITimestampTransformation} message TimestampTransformation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TimestampTransformation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TimestampTransformation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation} TimestampTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TimestampTransformation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.columnName = reader.string(); + break; + case 2: + message.timeFormat = reader.string(); + break; + case 3: + message.invalidValuesAllowed = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TimestampTransformation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation} TimestampTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TimestampTransformation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TimestampTransformation message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TimestampTransformation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.columnName != null && message.hasOwnProperty("columnName")) + if (!$util.isString(message.columnName)) + return "columnName: string expected"; + if (message.timeFormat != null && message.hasOwnProperty("timeFormat")) + if (!$util.isString(message.timeFormat)) + return "timeFormat: string expected"; + if (message.invalidValuesAllowed != null && message.hasOwnProperty("invalidValuesAllowed")) + if (typeof message.invalidValuesAllowed !== "boolean") + return "invalidValuesAllowed: boolean expected"; + return null; + }; + + /** + * Creates a TimestampTransformation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation} TimestampTransformation + */ + TimestampTransformation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation(); + if (object.columnName != null) + message.columnName = String(object.columnName); + if (object.timeFormat != null) + message.timeFormat = String(object.timeFormat); + if (object.invalidValuesAllowed != null) + message.invalidValuesAllowed = Boolean(object.invalidValuesAllowed); + return message; + }; + + /** + * Creates a plain object from a TimestampTransformation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation} message TimestampTransformation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TimestampTransformation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.columnName = ""; + object.timeFormat = ""; + object.invalidValuesAllowed = false; + } + if (message.columnName != null && message.hasOwnProperty("columnName")) + object.columnName = message.columnName; + if (message.timeFormat != null && message.hasOwnProperty("timeFormat")) + object.timeFormat = message.timeFormat; + if (message.invalidValuesAllowed != null && message.hasOwnProperty("invalidValuesAllowed")) + object.invalidValuesAllowed = message.invalidValuesAllowed; + return object; + }; + + /** + * Converts this TimestampTransformation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation + * @instance + * @returns {Object.} JSON object + */ + TimestampTransformation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return TimestampTransformation; + })(); + + Transformation.TextTransformation = (function() { + + /** + * Properties of a TextTransformation. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation + * @interface ITextTransformation + * @property {string|null} [columnName] TextTransformation columnName + */ + + /** + * Constructs a new TextTransformation. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation + * @classdesc Represents a TextTransformation. + * @implements ITextTransformation + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextTransformation=} [properties] Properties to set + */ + function TextTransformation(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]]; + } + + /** + * TextTransformation columnName. + * @member {string} columnName + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation + * @instance + */ + TextTransformation.prototype.columnName = ""; + + /** + * Creates a new TextTransformation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextTransformation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation} TextTransformation instance + */ + TextTransformation.create = function create(properties) { + return new TextTransformation(properties); + }; + + /** + * Encodes the specified TextTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextTransformation} message TextTransformation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TextTransformation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.columnName != null && Object.hasOwnProperty.call(message, "columnName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.columnName); + return writer; + }; + + /** + * Encodes the specified TextTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextTransformation} message TextTransformation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TextTransformation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TextTransformation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation} TextTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TextTransformation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.columnName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TextTransformation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation} TextTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TextTransformation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TextTransformation message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TextTransformation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.columnName != null && message.hasOwnProperty("columnName")) + if (!$util.isString(message.columnName)) + return "columnName: string expected"; + return null; + }; + + /** + * Creates a TextTransformation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation} TextTransformation + */ + TextTransformation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation(); + if (object.columnName != null) + message.columnName = String(object.columnName); + return message; + }; + + /** + * Creates a plain object from a TextTransformation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation} message TextTransformation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TextTransformation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.columnName = ""; + if (message.columnName != null && message.hasOwnProperty("columnName")) + object.columnName = message.columnName; + return object; + }; + + /** + * Converts this TextTransformation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation + * @instance + * @returns {Object.} JSON object + */ + TextTransformation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return TextTransformation; + })(); + + Transformation.NumericArrayTransformation = (function() { + + /** + * Properties of a NumericArrayTransformation. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation + * @interface INumericArrayTransformation + * @property {string|null} [columnName] NumericArrayTransformation columnName + * @property {boolean|null} [invalidValuesAllowed] NumericArrayTransformation invalidValuesAllowed + */ + + /** + * Constructs a new NumericArrayTransformation. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation + * @classdesc Represents a NumericArrayTransformation. + * @implements INumericArrayTransformation + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericArrayTransformation=} [properties] Properties to set + */ + function NumericArrayTransformation(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]]; + } + + /** + * NumericArrayTransformation columnName. + * @member {string} columnName + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation + * @instance + */ + NumericArrayTransformation.prototype.columnName = ""; + + /** + * NumericArrayTransformation invalidValuesAllowed. + * @member {boolean} invalidValuesAllowed + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation + * @instance + */ + NumericArrayTransformation.prototype.invalidValuesAllowed = false; + + /** + * Creates a new NumericArrayTransformation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericArrayTransformation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation} NumericArrayTransformation instance + */ + NumericArrayTransformation.create = function create(properties) { + return new NumericArrayTransformation(properties); + }; + + /** + * Encodes the specified NumericArrayTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericArrayTransformation} message NumericArrayTransformation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NumericArrayTransformation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.columnName != null && Object.hasOwnProperty.call(message, "columnName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.columnName); + if (message.invalidValuesAllowed != null && Object.hasOwnProperty.call(message, "invalidValuesAllowed")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.invalidValuesAllowed); + return writer; + }; + + /** + * Encodes the specified NumericArrayTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericArrayTransformation} message NumericArrayTransformation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NumericArrayTransformation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NumericArrayTransformation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation} NumericArrayTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NumericArrayTransformation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.columnName = reader.string(); + break; + case 2: + message.invalidValuesAllowed = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NumericArrayTransformation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation} NumericArrayTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NumericArrayTransformation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NumericArrayTransformation message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NumericArrayTransformation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.columnName != null && message.hasOwnProperty("columnName")) + if (!$util.isString(message.columnName)) + return "columnName: string expected"; + if (message.invalidValuesAllowed != null && message.hasOwnProperty("invalidValuesAllowed")) + if (typeof message.invalidValuesAllowed !== "boolean") + return "invalidValuesAllowed: boolean expected"; + return null; + }; + + /** + * Creates a NumericArrayTransformation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation} NumericArrayTransformation + */ + NumericArrayTransformation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation(); + if (object.columnName != null) + message.columnName = String(object.columnName); + if (object.invalidValuesAllowed != null) + message.invalidValuesAllowed = Boolean(object.invalidValuesAllowed); + return message; + }; + + /** + * Creates a plain object from a NumericArrayTransformation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation} message NumericArrayTransformation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NumericArrayTransformation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.columnName = ""; + object.invalidValuesAllowed = false; + } + if (message.columnName != null && message.hasOwnProperty("columnName")) + object.columnName = message.columnName; + if (message.invalidValuesAllowed != null && message.hasOwnProperty("invalidValuesAllowed")) + object.invalidValuesAllowed = message.invalidValuesAllowed; + return object; + }; + + /** + * Converts this NumericArrayTransformation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation + * @instance + * @returns {Object.} JSON object + */ + NumericArrayTransformation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return NumericArrayTransformation; + })(); + + Transformation.CategoricalArrayTransformation = (function() { + + /** + * Properties of a CategoricalArrayTransformation. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation + * @interface ICategoricalArrayTransformation + * @property {string|null} [columnName] CategoricalArrayTransformation columnName + */ + + /** + * Constructs a new CategoricalArrayTransformation. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation + * @classdesc Represents a CategoricalArrayTransformation. + * @implements ICategoricalArrayTransformation + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalArrayTransformation=} [properties] Properties to set + */ + function CategoricalArrayTransformation(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]]; + } + + /** + * CategoricalArrayTransformation columnName. + * @member {string} columnName + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation + * @instance + */ + CategoricalArrayTransformation.prototype.columnName = ""; + + /** + * Creates a new CategoricalArrayTransformation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalArrayTransformation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation} CategoricalArrayTransformation instance + */ + CategoricalArrayTransformation.create = function create(properties) { + return new CategoricalArrayTransformation(properties); + }; + + /** + * Encodes the specified CategoricalArrayTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalArrayTransformation} message CategoricalArrayTransformation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CategoricalArrayTransformation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.columnName != null && Object.hasOwnProperty.call(message, "columnName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.columnName); + return writer; + }; + + /** + * Encodes the specified CategoricalArrayTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalArrayTransformation} message CategoricalArrayTransformation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CategoricalArrayTransformation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CategoricalArrayTransformation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation} CategoricalArrayTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CategoricalArrayTransformation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.columnName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CategoricalArrayTransformation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation} CategoricalArrayTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CategoricalArrayTransformation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CategoricalArrayTransformation message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CategoricalArrayTransformation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.columnName != null && message.hasOwnProperty("columnName")) + if (!$util.isString(message.columnName)) + return "columnName: string expected"; + return null; + }; + + /** + * Creates a CategoricalArrayTransformation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation} CategoricalArrayTransformation + */ + CategoricalArrayTransformation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation(); + if (object.columnName != null) + message.columnName = String(object.columnName); + return message; + }; + + /** + * Creates a plain object from a CategoricalArrayTransformation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation} message CategoricalArrayTransformation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CategoricalArrayTransformation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.columnName = ""; + if (message.columnName != null && message.hasOwnProperty("columnName")) + object.columnName = message.columnName; + return object; + }; + + /** + * Converts this CategoricalArrayTransformation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation + * @instance + * @returns {Object.} JSON object + */ + CategoricalArrayTransformation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CategoricalArrayTransformation; + })(); + + Transformation.TextArrayTransformation = (function() { + + /** + * Properties of a TextArrayTransformation. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation + * @interface ITextArrayTransformation + * @property {string|null} [columnName] TextArrayTransformation columnName + */ + + /** + * Constructs a new TextArrayTransformation. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation + * @classdesc Represents a TextArrayTransformation. + * @implements ITextArrayTransformation + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextArrayTransformation=} [properties] Properties to set + */ + function TextArrayTransformation(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]]; + } + + /** + * TextArrayTransformation columnName. + * @member {string} columnName + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation + * @instance + */ + TextArrayTransformation.prototype.columnName = ""; + + /** + * Creates a new TextArrayTransformation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextArrayTransformation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation} TextArrayTransformation instance + */ + TextArrayTransformation.create = function create(properties) { + return new TextArrayTransformation(properties); + }; + + /** + * Encodes the specified TextArrayTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextArrayTransformation} message TextArrayTransformation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TextArrayTransformation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.columnName != null && Object.hasOwnProperty.call(message, "columnName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.columnName); + return writer; + }; + + /** + * Encodes the specified TextArrayTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextArrayTransformation} message TextArrayTransformation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TextArrayTransformation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TextArrayTransformation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation} TextArrayTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TextArrayTransformation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.columnName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TextArrayTransformation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation} TextArrayTransformation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TextArrayTransformation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TextArrayTransformation message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TextArrayTransformation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.columnName != null && message.hasOwnProperty("columnName")) + if (!$util.isString(message.columnName)) + return "columnName: string expected"; + return null; + }; + + /** + * Creates a TextArrayTransformation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation} TextArrayTransformation + */ + TextArrayTransformation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation(); + if (object.columnName != null) + message.columnName = String(object.columnName); + return message; + }; + + /** + * Creates a plain object from a TextArrayTransformation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation} message TextArrayTransformation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TextArrayTransformation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.columnName = ""; + if (message.columnName != null && message.hasOwnProperty("columnName")) + object.columnName = message.columnName; + return object; + }; + + /** + * Converts this TextArrayTransformation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation + * @instance + * @returns {Object.} JSON object + */ + TextArrayTransformation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return TextArrayTransformation; + })(); + + return Transformation; + })(); + + return AutoMlTablesInputs; + })(); + + definition.AutoMlTablesMetadata = (function() { + + /** + * Properties of an AutoMlTablesMetadata. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @interface IAutoMlTablesMetadata + * @property {number|Long|null} [trainCostMilliNodeHours] AutoMlTablesMetadata trainCostMilliNodeHours + */ + + /** + * Constructs a new AutoMlTablesMetadata. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @classdesc Represents an AutoMlTablesMetadata. + * @implements IAutoMlTablesMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTablesMetadata=} [properties] Properties to set + */ + function AutoMlTablesMetadata(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]]; + } + + /** + * AutoMlTablesMetadata trainCostMilliNodeHours. + * @member {number|Long} trainCostMilliNodeHours + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesMetadata + * @instance + */ + AutoMlTablesMetadata.prototype.trainCostMilliNodeHours = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new AutoMlTablesMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTablesMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesMetadata} AutoMlTablesMetadata instance + */ + AutoMlTablesMetadata.create = function create(properties) { + return new AutoMlTablesMetadata(properties); + }; + + /** + * Encodes the specified AutoMlTablesMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTablesMetadata} message AutoMlTablesMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlTablesMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.trainCostMilliNodeHours != null && Object.hasOwnProperty.call(message, "trainCostMilliNodeHours")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.trainCostMilliNodeHours); + return writer; + }; + + /** + * Encodes the specified AutoMlTablesMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTablesMetadata} message AutoMlTablesMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlTablesMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutoMlTablesMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesMetadata} AutoMlTablesMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlTablesMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.trainCostMilliNodeHours = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutoMlTablesMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesMetadata} AutoMlTablesMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlTablesMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutoMlTablesMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutoMlTablesMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.trainCostMilliNodeHours != null && message.hasOwnProperty("trainCostMilliNodeHours")) + if (!$util.isInteger(message.trainCostMilliNodeHours) && !(message.trainCostMilliNodeHours && $util.isInteger(message.trainCostMilliNodeHours.low) && $util.isInteger(message.trainCostMilliNodeHours.high))) + return "trainCostMilliNodeHours: integer|Long expected"; + return null; + }; + + /** + * Creates an AutoMlTablesMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesMetadata} AutoMlTablesMetadata + */ + AutoMlTablesMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesMetadata(); + if (object.trainCostMilliNodeHours != null) + if ($util.Long) + (message.trainCostMilliNodeHours = $util.Long.fromValue(object.trainCostMilliNodeHours)).unsigned = false; + else if (typeof object.trainCostMilliNodeHours === "string") + message.trainCostMilliNodeHours = parseInt(object.trainCostMilliNodeHours, 10); + else if (typeof object.trainCostMilliNodeHours === "number") + message.trainCostMilliNodeHours = object.trainCostMilliNodeHours; + else if (typeof object.trainCostMilliNodeHours === "object") + message.trainCostMilliNodeHours = new $util.LongBits(object.trainCostMilliNodeHours.low >>> 0, object.trainCostMilliNodeHours.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from an AutoMlTablesMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesMetadata} message AutoMlTablesMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutoMlTablesMetadata.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.trainCostMilliNodeHours = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.trainCostMilliNodeHours = options.longs === String ? "0" : 0; + if (message.trainCostMilliNodeHours != null && message.hasOwnProperty("trainCostMilliNodeHours")) + if (typeof message.trainCostMilliNodeHours === "number") + object.trainCostMilliNodeHours = options.longs === String ? String(message.trainCostMilliNodeHours) : message.trainCostMilliNodeHours; + else + object.trainCostMilliNodeHours = options.longs === String ? $util.Long.prototype.toString.call(message.trainCostMilliNodeHours) : options.longs === Number ? new $util.LongBits(message.trainCostMilliNodeHours.low >>> 0, message.trainCostMilliNodeHours.high >>> 0).toNumber() : message.trainCostMilliNodeHours; + return object; + }; + + /** + * Converts this AutoMlTablesMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesMetadata + * @instance + * @returns {Object.} JSON object + */ + AutoMlTablesMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AutoMlTablesMetadata; + })(); + + definition.AutoMlTextClassification = (function() { + + /** + * Properties of an AutoMlTextClassification. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @interface IAutoMlTextClassification + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextClassificationInputs|null} [inputs] AutoMlTextClassification inputs + */ + + /** + * Constructs a new AutoMlTextClassification. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @classdesc Represents an AutoMlTextClassification. + * @implements IAutoMlTextClassification + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextClassification=} [properties] Properties to set + */ + function AutoMlTextClassification(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]]; + } + + /** + * AutoMlTextClassification inputs. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextClassificationInputs|null|undefined} inputs + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassification + * @instance + */ + AutoMlTextClassification.prototype.inputs = null; + + /** + * Creates a new AutoMlTextClassification instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassification + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextClassification=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassification} AutoMlTextClassification instance + */ + AutoMlTextClassification.create = function create(properties) { + return new AutoMlTextClassification(properties); + }; + + /** + * Encodes the specified AutoMlTextClassification message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassification.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassification + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextClassification} message AutoMlTextClassification message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlTextClassification.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.inputs != null && Object.hasOwnProperty.call(message, "inputs")) + $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassificationInputs.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified AutoMlTextClassification message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassification.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassification + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextClassification} message AutoMlTextClassification message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlTextClassification.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutoMlTextClassification message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassification + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassification} AutoMlTextClassification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlTextClassification.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassification(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.inputs = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassificationInputs.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutoMlTextClassification message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassification + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassification} AutoMlTextClassification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlTextClassification.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutoMlTextClassification message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassification + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutoMlTextClassification.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.inputs != null && message.hasOwnProperty("inputs")) { + var error = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassificationInputs.verify(message.inputs); + if (error) + return "inputs." + error; + } + return null; + }; + + /** + * Creates an AutoMlTextClassification message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassification + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassification} AutoMlTextClassification + */ + AutoMlTextClassification.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassification) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassification(); + if (object.inputs != null) { + if (typeof object.inputs !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassification.inputs: object expected"); + message.inputs = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassificationInputs.fromObject(object.inputs); + } + return message; + }; + + /** + * Creates a plain object from an AutoMlTextClassification message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassification + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassification} message AutoMlTextClassification + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutoMlTextClassification.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.inputs = null; + if (message.inputs != null && message.hasOwnProperty("inputs")) + object.inputs = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassificationInputs.toObject(message.inputs, options); + return object; + }; + + /** + * Converts this AutoMlTextClassification to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassification + * @instance + * @returns {Object.} JSON object + */ + AutoMlTextClassification.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AutoMlTextClassification; + })(); + + definition.AutoMlTextClassificationInputs = (function() { + + /** + * Properties of an AutoMlTextClassificationInputs. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @interface IAutoMlTextClassificationInputs + * @property {boolean|null} [multiLabel] AutoMlTextClassificationInputs multiLabel + */ + + /** + * Constructs a new AutoMlTextClassificationInputs. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @classdesc Represents an AutoMlTextClassificationInputs. + * @implements IAutoMlTextClassificationInputs + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextClassificationInputs=} [properties] Properties to set + */ + function AutoMlTextClassificationInputs(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]]; + } + + /** + * AutoMlTextClassificationInputs multiLabel. + * @member {boolean} multiLabel + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassificationInputs + * @instance + */ + AutoMlTextClassificationInputs.prototype.multiLabel = false; + + /** + * Creates a new AutoMlTextClassificationInputs instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassificationInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextClassificationInputs=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassificationInputs} AutoMlTextClassificationInputs instance + */ + AutoMlTextClassificationInputs.create = function create(properties) { + return new AutoMlTextClassificationInputs(properties); + }; + + /** + * Encodes the specified AutoMlTextClassificationInputs message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassificationInputs.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassificationInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextClassificationInputs} message AutoMlTextClassificationInputs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlTextClassificationInputs.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.multiLabel != null && Object.hasOwnProperty.call(message, "multiLabel")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.multiLabel); + return writer; + }; + + /** + * Encodes the specified AutoMlTextClassificationInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassificationInputs.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassificationInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextClassificationInputs} message AutoMlTextClassificationInputs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlTextClassificationInputs.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutoMlTextClassificationInputs message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassificationInputs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassificationInputs} AutoMlTextClassificationInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlTextClassificationInputs.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassificationInputs(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.multiLabel = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutoMlTextClassificationInputs message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassificationInputs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassificationInputs} AutoMlTextClassificationInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlTextClassificationInputs.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutoMlTextClassificationInputs message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassificationInputs + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutoMlTextClassificationInputs.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.multiLabel != null && message.hasOwnProperty("multiLabel")) + if (typeof message.multiLabel !== "boolean") + return "multiLabel: boolean expected"; + return null; + }; + + /** + * Creates an AutoMlTextClassificationInputs message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassificationInputs + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassificationInputs} AutoMlTextClassificationInputs + */ + AutoMlTextClassificationInputs.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassificationInputs) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassificationInputs(); + if (object.multiLabel != null) + message.multiLabel = Boolean(object.multiLabel); + return message; + }; + + /** + * Creates a plain object from an AutoMlTextClassificationInputs message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassificationInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassificationInputs} message AutoMlTextClassificationInputs + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutoMlTextClassificationInputs.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.multiLabel = false; + if (message.multiLabel != null && message.hasOwnProperty("multiLabel")) + object.multiLabel = message.multiLabel; + return object; + }; + + /** + * Converts this AutoMlTextClassificationInputs to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassificationInputs + * @instance + * @returns {Object.} JSON object + */ + AutoMlTextClassificationInputs.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AutoMlTextClassificationInputs; + })(); + + definition.AutoMlTextExtraction = (function() { + + /** + * Properties of an AutoMlTextExtraction. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @interface IAutoMlTextExtraction + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextExtractionInputs|null} [inputs] AutoMlTextExtraction inputs + */ + + /** + * Constructs a new AutoMlTextExtraction. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @classdesc Represents an AutoMlTextExtraction. + * @implements IAutoMlTextExtraction + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextExtraction=} [properties] Properties to set + */ + function AutoMlTextExtraction(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]]; + } + + /** + * AutoMlTextExtraction inputs. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextExtractionInputs|null|undefined} inputs + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtraction + * @instance + */ + AutoMlTextExtraction.prototype.inputs = null; + + /** + * Creates a new AutoMlTextExtraction instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtraction + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextExtraction=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtraction} AutoMlTextExtraction instance + */ + AutoMlTextExtraction.create = function create(properties) { + return new AutoMlTextExtraction(properties); + }; + + /** + * Encodes the specified AutoMlTextExtraction message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtraction.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtraction + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextExtraction} message AutoMlTextExtraction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlTextExtraction.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.inputs != null && Object.hasOwnProperty.call(message, "inputs")) + $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtractionInputs.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified AutoMlTextExtraction message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtraction.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtraction + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextExtraction} message AutoMlTextExtraction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlTextExtraction.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutoMlTextExtraction message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtraction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtraction} AutoMlTextExtraction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlTextExtraction.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtraction(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.inputs = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtractionInputs.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutoMlTextExtraction message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtraction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtraction} AutoMlTextExtraction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlTextExtraction.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutoMlTextExtraction message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtraction + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutoMlTextExtraction.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.inputs != null && message.hasOwnProperty("inputs")) { + var error = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtractionInputs.verify(message.inputs); + if (error) + return "inputs." + error; + } + return null; + }; + + /** + * Creates an AutoMlTextExtraction message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtraction + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtraction} AutoMlTextExtraction + */ + AutoMlTextExtraction.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtraction) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtraction(); + if (object.inputs != null) { + if (typeof object.inputs !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtraction.inputs: object expected"); + message.inputs = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtractionInputs.fromObject(object.inputs); + } + return message; + }; + + /** + * Creates a plain object from an AutoMlTextExtraction message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtraction + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtraction} message AutoMlTextExtraction + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutoMlTextExtraction.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.inputs = null; + if (message.inputs != null && message.hasOwnProperty("inputs")) + object.inputs = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtractionInputs.toObject(message.inputs, options); + return object; + }; + + /** + * Converts this AutoMlTextExtraction to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtraction + * @instance + * @returns {Object.} JSON object + */ + AutoMlTextExtraction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AutoMlTextExtraction; + })(); + + definition.AutoMlTextExtractionInputs = (function() { + + /** + * Properties of an AutoMlTextExtractionInputs. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @interface IAutoMlTextExtractionInputs + */ + + /** + * Constructs a new AutoMlTextExtractionInputs. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @classdesc Represents an AutoMlTextExtractionInputs. + * @implements IAutoMlTextExtractionInputs + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextExtractionInputs=} [properties] Properties to set + */ + function AutoMlTextExtractionInputs(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]]; + } + + /** + * Creates a new AutoMlTextExtractionInputs instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtractionInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextExtractionInputs=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtractionInputs} AutoMlTextExtractionInputs instance + */ + AutoMlTextExtractionInputs.create = function create(properties) { + return new AutoMlTextExtractionInputs(properties); + }; + + /** + * Encodes the specified AutoMlTextExtractionInputs message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtractionInputs.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtractionInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextExtractionInputs} message AutoMlTextExtractionInputs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlTextExtractionInputs.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified AutoMlTextExtractionInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtractionInputs.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtractionInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextExtractionInputs} message AutoMlTextExtractionInputs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlTextExtractionInputs.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutoMlTextExtractionInputs message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtractionInputs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtractionInputs} AutoMlTextExtractionInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlTextExtractionInputs.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtractionInputs(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutoMlTextExtractionInputs message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtractionInputs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtractionInputs} AutoMlTextExtractionInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlTextExtractionInputs.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutoMlTextExtractionInputs message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtractionInputs + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutoMlTextExtractionInputs.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates an AutoMlTextExtractionInputs message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtractionInputs + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtractionInputs} AutoMlTextExtractionInputs + */ + AutoMlTextExtractionInputs.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtractionInputs) + return object; + return new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtractionInputs(); + }; + + /** + * Creates a plain object from an AutoMlTextExtractionInputs message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtractionInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtractionInputs} message AutoMlTextExtractionInputs + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutoMlTextExtractionInputs.toObject = function toObject() { + return {}; + }; + + /** + * Converts this AutoMlTextExtractionInputs to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtractionInputs + * @instance + * @returns {Object.} JSON object + */ + AutoMlTextExtractionInputs.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AutoMlTextExtractionInputs; + })(); + + definition.AutoMlTextSentiment = (function() { + + /** + * Properties of an AutoMlTextSentiment. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @interface IAutoMlTextSentiment + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextSentimentInputs|null} [inputs] AutoMlTextSentiment inputs + */ + + /** + * Constructs a new AutoMlTextSentiment. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @classdesc Represents an AutoMlTextSentiment. + * @implements IAutoMlTextSentiment + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextSentiment=} [properties] Properties to set + */ + function AutoMlTextSentiment(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]]; + } + + /** + * AutoMlTextSentiment inputs. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextSentimentInputs|null|undefined} inputs + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentiment + * @instance + */ + AutoMlTextSentiment.prototype.inputs = null; + + /** + * Creates a new AutoMlTextSentiment instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentiment + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextSentiment=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentiment} AutoMlTextSentiment instance + */ + AutoMlTextSentiment.create = function create(properties) { + return new AutoMlTextSentiment(properties); + }; + + /** + * Encodes the specified AutoMlTextSentiment message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentiment.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentiment + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextSentiment} message AutoMlTextSentiment message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlTextSentiment.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.inputs != null && Object.hasOwnProperty.call(message, "inputs")) + $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentimentInputs.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified AutoMlTextSentiment message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentiment.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentiment + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextSentiment} message AutoMlTextSentiment message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlTextSentiment.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutoMlTextSentiment message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentiment + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentiment} AutoMlTextSentiment + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlTextSentiment.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentiment(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.inputs = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentimentInputs.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutoMlTextSentiment message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentiment + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentiment} AutoMlTextSentiment + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlTextSentiment.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutoMlTextSentiment message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentiment + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutoMlTextSentiment.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.inputs != null && message.hasOwnProperty("inputs")) { + var error = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentimentInputs.verify(message.inputs); + if (error) + return "inputs." + error; + } + return null; + }; + + /** + * Creates an AutoMlTextSentiment message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentiment + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentiment} AutoMlTextSentiment + */ + AutoMlTextSentiment.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentiment) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentiment(); + if (object.inputs != null) { + if (typeof object.inputs !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentiment.inputs: object expected"); + message.inputs = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentimentInputs.fromObject(object.inputs); + } + return message; + }; + + /** + * Creates a plain object from an AutoMlTextSentiment message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentiment + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentiment} message AutoMlTextSentiment + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutoMlTextSentiment.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.inputs = null; + if (message.inputs != null && message.hasOwnProperty("inputs")) + object.inputs = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentimentInputs.toObject(message.inputs, options); + return object; + }; + + /** + * Converts this AutoMlTextSentiment to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentiment + * @instance + * @returns {Object.} JSON object + */ + AutoMlTextSentiment.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AutoMlTextSentiment; + })(); + + definition.AutoMlTextSentimentInputs = (function() { + + /** + * Properties of an AutoMlTextSentimentInputs. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @interface IAutoMlTextSentimentInputs + * @property {number|null} [sentimentMax] AutoMlTextSentimentInputs sentimentMax + */ + + /** + * Constructs a new AutoMlTextSentimentInputs. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @classdesc Represents an AutoMlTextSentimentInputs. + * @implements IAutoMlTextSentimentInputs + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextSentimentInputs=} [properties] Properties to set + */ + function AutoMlTextSentimentInputs(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]]; + } + + /** + * AutoMlTextSentimentInputs sentimentMax. + * @member {number} sentimentMax + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentimentInputs + * @instance + */ + AutoMlTextSentimentInputs.prototype.sentimentMax = 0; + + /** + * Creates a new AutoMlTextSentimentInputs instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentimentInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextSentimentInputs=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentimentInputs} AutoMlTextSentimentInputs instance + */ + AutoMlTextSentimentInputs.create = function create(properties) { + return new AutoMlTextSentimentInputs(properties); + }; + + /** + * Encodes the specified AutoMlTextSentimentInputs message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentimentInputs.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentimentInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextSentimentInputs} message AutoMlTextSentimentInputs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlTextSentimentInputs.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sentimentMax != null && Object.hasOwnProperty.call(message, "sentimentMax")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.sentimentMax); + return writer; + }; + + /** + * Encodes the specified AutoMlTextSentimentInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentimentInputs.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentimentInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlTextSentimentInputs} message AutoMlTextSentimentInputs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlTextSentimentInputs.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutoMlTextSentimentInputs message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentimentInputs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentimentInputs} AutoMlTextSentimentInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlTextSentimentInputs.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentimentInputs(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sentimentMax = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutoMlTextSentimentInputs message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentimentInputs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentimentInputs} AutoMlTextSentimentInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlTextSentimentInputs.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutoMlTextSentimentInputs message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentimentInputs + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutoMlTextSentimentInputs.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.sentimentMax != null && message.hasOwnProperty("sentimentMax")) + if (!$util.isInteger(message.sentimentMax)) + return "sentimentMax: integer expected"; + return null; + }; + + /** + * Creates an AutoMlTextSentimentInputs message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentimentInputs + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentimentInputs} AutoMlTextSentimentInputs + */ + AutoMlTextSentimentInputs.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentimentInputs) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentimentInputs(); + if (object.sentimentMax != null) + message.sentimentMax = object.sentimentMax | 0; + return message; + }; + + /** + * Creates a plain object from an AutoMlTextSentimentInputs message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentimentInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentimentInputs} message AutoMlTextSentimentInputs + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutoMlTextSentimentInputs.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.sentimentMax = 0; + if (message.sentimentMax != null && message.hasOwnProperty("sentimentMax")) + object.sentimentMax = message.sentimentMax; + return object; + }; + + /** + * Converts this AutoMlTextSentimentInputs to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentimentInputs + * @instance + * @returns {Object.} JSON object + */ + AutoMlTextSentimentInputs.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AutoMlTextSentimentInputs; + })(); + + definition.AutoMlVideoActionRecognition = (function() { + + /** + * Properties of an AutoMlVideoActionRecognition. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @interface IAutoMlVideoActionRecognition + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoActionRecognitionInputs|null} [inputs] AutoMlVideoActionRecognition inputs + */ + + /** + * Constructs a new AutoMlVideoActionRecognition. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @classdesc Represents an AutoMlVideoActionRecognition. + * @implements IAutoMlVideoActionRecognition + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoActionRecognition=} [properties] Properties to set + */ + function AutoMlVideoActionRecognition(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]]; + } + + /** + * AutoMlVideoActionRecognition inputs. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoActionRecognitionInputs|null|undefined} inputs + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognition + * @instance + */ + AutoMlVideoActionRecognition.prototype.inputs = null; + + /** + * Creates a new AutoMlVideoActionRecognition instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognition + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoActionRecognition=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognition} AutoMlVideoActionRecognition instance + */ + AutoMlVideoActionRecognition.create = function create(properties) { + return new AutoMlVideoActionRecognition(properties); + }; + + /** + * Encodes the specified AutoMlVideoActionRecognition message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognition.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognition + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoActionRecognition} message AutoMlVideoActionRecognition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlVideoActionRecognition.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.inputs != null && Object.hasOwnProperty.call(message, "inputs")) + $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified AutoMlVideoActionRecognition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognition.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognition + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoActionRecognition} message AutoMlVideoActionRecognition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlVideoActionRecognition.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutoMlVideoActionRecognition message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognition} AutoMlVideoActionRecognition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlVideoActionRecognition.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognition(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.inputs = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutoMlVideoActionRecognition message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognition} AutoMlVideoActionRecognition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlVideoActionRecognition.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutoMlVideoActionRecognition message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognition + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutoMlVideoActionRecognition.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.inputs != null && message.hasOwnProperty("inputs")) { + var error = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.verify(message.inputs); + if (error) + return "inputs." + error; + } + return null; + }; + + /** + * Creates an AutoMlVideoActionRecognition message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognition + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognition} AutoMlVideoActionRecognition + */ + AutoMlVideoActionRecognition.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognition) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognition(); + if (object.inputs != null) { + if (typeof object.inputs !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognition.inputs: object expected"); + message.inputs = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.fromObject(object.inputs); + } + return message; + }; + + /** + * Creates a plain object from an AutoMlVideoActionRecognition message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognition + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognition} message AutoMlVideoActionRecognition + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutoMlVideoActionRecognition.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.inputs = null; + if (message.inputs != null && message.hasOwnProperty("inputs")) + object.inputs = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.toObject(message.inputs, options); + return object; + }; + + /** + * Converts this AutoMlVideoActionRecognition to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognition + * @instance + * @returns {Object.} JSON object + */ + AutoMlVideoActionRecognition.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AutoMlVideoActionRecognition; + })(); + + definition.AutoMlVideoActionRecognitionInputs = (function() { + + /** + * Properties of an AutoMlVideoActionRecognitionInputs. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @interface IAutoMlVideoActionRecognitionInputs + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.ModelType|null} [modelType] AutoMlVideoActionRecognitionInputs modelType + */ + + /** + * Constructs a new AutoMlVideoActionRecognitionInputs. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @classdesc Represents an AutoMlVideoActionRecognitionInputs. + * @implements IAutoMlVideoActionRecognitionInputs + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoActionRecognitionInputs=} [properties] Properties to set + */ + function AutoMlVideoActionRecognitionInputs(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]]; + } + + /** + * AutoMlVideoActionRecognitionInputs modelType. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.ModelType} modelType + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs + * @instance + */ + AutoMlVideoActionRecognitionInputs.prototype.modelType = 0; + + /** + * Creates a new AutoMlVideoActionRecognitionInputs instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoActionRecognitionInputs=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs} AutoMlVideoActionRecognitionInputs instance + */ + AutoMlVideoActionRecognitionInputs.create = function create(properties) { + return new AutoMlVideoActionRecognitionInputs(properties); + }; + + /** + * Encodes the specified AutoMlVideoActionRecognitionInputs message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoActionRecognitionInputs} message AutoMlVideoActionRecognitionInputs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlVideoActionRecognitionInputs.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.modelType != null && Object.hasOwnProperty.call(message, "modelType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.modelType); + return writer; + }; + + /** + * Encodes the specified AutoMlVideoActionRecognitionInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoActionRecognitionInputs} message AutoMlVideoActionRecognitionInputs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlVideoActionRecognitionInputs.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutoMlVideoActionRecognitionInputs message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs} AutoMlVideoActionRecognitionInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlVideoActionRecognitionInputs.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.modelType = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutoMlVideoActionRecognitionInputs message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs} AutoMlVideoActionRecognitionInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlVideoActionRecognitionInputs.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutoMlVideoActionRecognitionInputs message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutoMlVideoActionRecognitionInputs.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.modelType != null && message.hasOwnProperty("modelType")) + switch (message.modelType) { + default: + return "modelType: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates an AutoMlVideoActionRecognitionInputs message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs} AutoMlVideoActionRecognitionInputs + */ + AutoMlVideoActionRecognitionInputs.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs(); + switch (object.modelType) { + case "MODEL_TYPE_UNSPECIFIED": + case 0: + message.modelType = 0; + break; + case "CLOUD": + case 1: + message.modelType = 1; + break; + case "MOBILE_VERSATILE_1": + case 2: + message.modelType = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from an AutoMlVideoActionRecognitionInputs message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs} message AutoMlVideoActionRecognitionInputs + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutoMlVideoActionRecognitionInputs.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.modelType = options.enums === String ? "MODEL_TYPE_UNSPECIFIED" : 0; + if (message.modelType != null && message.hasOwnProperty("modelType")) + object.modelType = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.ModelType[message.modelType] : message.modelType; + return object; + }; + + /** + * Converts this AutoMlVideoActionRecognitionInputs to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs + * @instance + * @returns {Object.} JSON object + */ + AutoMlVideoActionRecognitionInputs.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * ModelType enum. + * @name google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.ModelType + * @enum {number} + * @property {number} MODEL_TYPE_UNSPECIFIED=0 MODEL_TYPE_UNSPECIFIED value + * @property {number} CLOUD=1 CLOUD value + * @property {number} MOBILE_VERSATILE_1=2 MOBILE_VERSATILE_1 value + */ + AutoMlVideoActionRecognitionInputs.ModelType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MODEL_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "CLOUD"] = 1; + values[valuesById[2] = "MOBILE_VERSATILE_1"] = 2; + return values; + })(); + + return AutoMlVideoActionRecognitionInputs; + })(); + + definition.AutoMlVideoClassification = (function() { + + /** + * Properties of an AutoMlVideoClassification. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @interface IAutoMlVideoClassification + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoClassificationInputs|null} [inputs] AutoMlVideoClassification inputs + */ + + /** + * Constructs a new AutoMlVideoClassification. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @classdesc Represents an AutoMlVideoClassification. + * @implements IAutoMlVideoClassification + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoClassification=} [properties] Properties to set + */ + function AutoMlVideoClassification(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]]; + } + + /** + * AutoMlVideoClassification inputs. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoClassificationInputs|null|undefined} inputs + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassification + * @instance + */ + AutoMlVideoClassification.prototype.inputs = null; + + /** + * Creates a new AutoMlVideoClassification instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassification + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoClassification=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassification} AutoMlVideoClassification instance + */ + AutoMlVideoClassification.create = function create(properties) { + return new AutoMlVideoClassification(properties); + }; + + /** + * Encodes the specified AutoMlVideoClassification message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassification.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassification + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoClassification} message AutoMlVideoClassification message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlVideoClassification.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.inputs != null && Object.hasOwnProperty.call(message, "inputs")) + $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified AutoMlVideoClassification message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassification.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassification + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoClassification} message AutoMlVideoClassification message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlVideoClassification.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutoMlVideoClassification message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassification + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassification} AutoMlVideoClassification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlVideoClassification.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassification(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.inputs = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutoMlVideoClassification message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassification + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassification} AutoMlVideoClassification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlVideoClassification.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutoMlVideoClassification message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassification + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutoMlVideoClassification.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.inputs != null && message.hasOwnProperty("inputs")) { + var error = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.verify(message.inputs); + if (error) + return "inputs." + error; + } + return null; + }; + + /** + * Creates an AutoMlVideoClassification message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassification + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassification} AutoMlVideoClassification + */ + AutoMlVideoClassification.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassification) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassification(); + if (object.inputs != null) { + if (typeof object.inputs !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassification.inputs: object expected"); + message.inputs = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.fromObject(object.inputs); + } + return message; + }; + + /** + * Creates a plain object from an AutoMlVideoClassification message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassification + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassification} message AutoMlVideoClassification + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutoMlVideoClassification.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.inputs = null; + if (message.inputs != null && message.hasOwnProperty("inputs")) + object.inputs = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.toObject(message.inputs, options); + return object; + }; + + /** + * Converts this AutoMlVideoClassification to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassification + * @instance + * @returns {Object.} JSON object + */ + AutoMlVideoClassification.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AutoMlVideoClassification; + })(); + + definition.AutoMlVideoClassificationInputs = (function() { + + /** + * Properties of an AutoMlVideoClassificationInputs. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @interface IAutoMlVideoClassificationInputs + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.ModelType|null} [modelType] AutoMlVideoClassificationInputs modelType + */ + + /** + * Constructs a new AutoMlVideoClassificationInputs. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @classdesc Represents an AutoMlVideoClassificationInputs. + * @implements IAutoMlVideoClassificationInputs + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoClassificationInputs=} [properties] Properties to set + */ + function AutoMlVideoClassificationInputs(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]]; + } + + /** + * AutoMlVideoClassificationInputs modelType. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.ModelType} modelType + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs + * @instance + */ + AutoMlVideoClassificationInputs.prototype.modelType = 0; + + /** + * Creates a new AutoMlVideoClassificationInputs instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoClassificationInputs=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs} AutoMlVideoClassificationInputs instance + */ + AutoMlVideoClassificationInputs.create = function create(properties) { + return new AutoMlVideoClassificationInputs(properties); + }; + + /** + * Encodes the specified AutoMlVideoClassificationInputs message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoClassificationInputs} message AutoMlVideoClassificationInputs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlVideoClassificationInputs.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.modelType != null && Object.hasOwnProperty.call(message, "modelType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.modelType); + return writer; + }; + + /** + * Encodes the specified AutoMlVideoClassificationInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoClassificationInputs} message AutoMlVideoClassificationInputs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlVideoClassificationInputs.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutoMlVideoClassificationInputs message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs} AutoMlVideoClassificationInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlVideoClassificationInputs.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.modelType = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutoMlVideoClassificationInputs message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs} AutoMlVideoClassificationInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlVideoClassificationInputs.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutoMlVideoClassificationInputs message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutoMlVideoClassificationInputs.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.modelType != null && message.hasOwnProperty("modelType")) + switch (message.modelType) { + default: + return "modelType: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates an AutoMlVideoClassificationInputs message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs} AutoMlVideoClassificationInputs + */ + AutoMlVideoClassificationInputs.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs(); + switch (object.modelType) { + case "MODEL_TYPE_UNSPECIFIED": + case 0: + message.modelType = 0; + break; + case "CLOUD": + case 1: + message.modelType = 1; + break; + case "MOBILE_VERSATILE_1": + case 2: + message.modelType = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from an AutoMlVideoClassificationInputs message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs} message AutoMlVideoClassificationInputs + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutoMlVideoClassificationInputs.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.modelType = options.enums === String ? "MODEL_TYPE_UNSPECIFIED" : 0; + if (message.modelType != null && message.hasOwnProperty("modelType")) + object.modelType = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.ModelType[message.modelType] : message.modelType; + return object; + }; + + /** + * Converts this AutoMlVideoClassificationInputs to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs + * @instance + * @returns {Object.} JSON object + */ + AutoMlVideoClassificationInputs.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * ModelType enum. + * @name google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.ModelType + * @enum {number} + * @property {number} MODEL_TYPE_UNSPECIFIED=0 MODEL_TYPE_UNSPECIFIED value + * @property {number} CLOUD=1 CLOUD value + * @property {number} MOBILE_VERSATILE_1=2 MOBILE_VERSATILE_1 value + */ + AutoMlVideoClassificationInputs.ModelType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MODEL_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "CLOUD"] = 1; + values[valuesById[2] = "MOBILE_VERSATILE_1"] = 2; + return values; + })(); + + return AutoMlVideoClassificationInputs; + })(); + + definition.AutoMlVideoObjectTracking = (function() { + + /** + * Properties of an AutoMlVideoObjectTracking. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @interface IAutoMlVideoObjectTracking + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoObjectTrackingInputs|null} [inputs] AutoMlVideoObjectTracking inputs + */ + + /** + * Constructs a new AutoMlVideoObjectTracking. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @classdesc Represents an AutoMlVideoObjectTracking. + * @implements IAutoMlVideoObjectTracking + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoObjectTracking=} [properties] Properties to set + */ + function AutoMlVideoObjectTracking(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]]; + } + + /** + * AutoMlVideoObjectTracking inputs. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoObjectTrackingInputs|null|undefined} inputs + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTracking + * @instance + */ + AutoMlVideoObjectTracking.prototype.inputs = null; + + /** + * Creates a new AutoMlVideoObjectTracking instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTracking + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoObjectTracking=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTracking} AutoMlVideoObjectTracking instance + */ + AutoMlVideoObjectTracking.create = function create(properties) { + return new AutoMlVideoObjectTracking(properties); + }; + + /** + * Encodes the specified AutoMlVideoObjectTracking message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTracking.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTracking + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoObjectTracking} message AutoMlVideoObjectTracking message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlVideoObjectTracking.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.inputs != null && Object.hasOwnProperty.call(message, "inputs")) + $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified AutoMlVideoObjectTracking message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTracking.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTracking + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoObjectTracking} message AutoMlVideoObjectTracking message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlVideoObjectTracking.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutoMlVideoObjectTracking message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTracking + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTracking} AutoMlVideoObjectTracking + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlVideoObjectTracking.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTracking(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.inputs = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutoMlVideoObjectTracking message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTracking + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTracking} AutoMlVideoObjectTracking + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlVideoObjectTracking.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutoMlVideoObjectTracking message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTracking + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutoMlVideoObjectTracking.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.inputs != null && message.hasOwnProperty("inputs")) { + var error = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.verify(message.inputs); + if (error) + return "inputs." + error; + } + return null; + }; + + /** + * Creates an AutoMlVideoObjectTracking message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTracking + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTracking} AutoMlVideoObjectTracking + */ + AutoMlVideoObjectTracking.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTracking) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTracking(); + if (object.inputs != null) { + if (typeof object.inputs !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTracking.inputs: object expected"); + message.inputs = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.fromObject(object.inputs); + } + return message; + }; + + /** + * Creates a plain object from an AutoMlVideoObjectTracking message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTracking + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTracking} message AutoMlVideoObjectTracking + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutoMlVideoObjectTracking.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.inputs = null; + if (message.inputs != null && message.hasOwnProperty("inputs")) + object.inputs = $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.toObject(message.inputs, options); + return object; + }; + + /** + * Converts this AutoMlVideoObjectTracking to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTracking + * @instance + * @returns {Object.} JSON object + */ + AutoMlVideoObjectTracking.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AutoMlVideoObjectTracking; + })(); + + definition.AutoMlVideoObjectTrackingInputs = (function() { + + /** + * Properties of an AutoMlVideoObjectTrackingInputs. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @interface IAutoMlVideoObjectTrackingInputs + * @property {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.ModelType|null} [modelType] AutoMlVideoObjectTrackingInputs modelType + */ + + /** + * Constructs a new AutoMlVideoObjectTrackingInputs. + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + * @classdesc Represents an AutoMlVideoObjectTrackingInputs. + * @implements IAutoMlVideoObjectTrackingInputs + * @constructor + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoObjectTrackingInputs=} [properties] Properties to set + */ + function AutoMlVideoObjectTrackingInputs(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]]; + } + + /** + * AutoMlVideoObjectTrackingInputs modelType. + * @member {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.ModelType} modelType + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs + * @instance + */ + AutoMlVideoObjectTrackingInputs.prototype.modelType = 0; + + /** + * Creates a new AutoMlVideoObjectTrackingInputs instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoObjectTrackingInputs=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs} AutoMlVideoObjectTrackingInputs instance + */ + AutoMlVideoObjectTrackingInputs.create = function create(properties) { + return new AutoMlVideoObjectTrackingInputs(properties); + }; + + /** + * Encodes the specified AutoMlVideoObjectTrackingInputs message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoObjectTrackingInputs} message AutoMlVideoObjectTrackingInputs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlVideoObjectTrackingInputs.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.modelType != null && Object.hasOwnProperty.call(message, "modelType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.modelType); + return writer; + }; + + /** + * Encodes the specified AutoMlVideoObjectTrackingInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.IAutoMlVideoObjectTrackingInputs} message AutoMlVideoObjectTrackingInputs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoMlVideoObjectTrackingInputs.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutoMlVideoObjectTrackingInputs message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs} AutoMlVideoObjectTrackingInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlVideoObjectTrackingInputs.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.modelType = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutoMlVideoObjectTrackingInputs message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs} AutoMlVideoObjectTrackingInputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoMlVideoObjectTrackingInputs.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutoMlVideoObjectTrackingInputs message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutoMlVideoObjectTrackingInputs.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.modelType != null && message.hasOwnProperty("modelType")) + switch (message.modelType) { + default: + return "modelType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + return null; + }; + + /** + * Creates an AutoMlVideoObjectTrackingInputs message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs} AutoMlVideoObjectTrackingInputs + */ + AutoMlVideoObjectTrackingInputs.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs(); + switch (object.modelType) { + case "MODEL_TYPE_UNSPECIFIED": + case 0: + message.modelType = 0; + break; + case "CLOUD": + case 1: + message.modelType = 1; + break; + case "MOBILE_VERSATILE_1": + case 2: + message.modelType = 2; + break; + case "MOBILE_CORAL_VERSATILE_1": + case 3: + message.modelType = 3; + break; + case "MOBILE_CORAL_LOW_LATENCY_1": + case 4: + message.modelType = 4; + break; + case "MOBILE_JETSON_VERSATILE_1": + case 5: + message.modelType = 5; + break; + case "MOBILE_JETSON_LOW_LATENCY_1": + case 6: + message.modelType = 6; + break; + } + return message; + }; + + /** + * Creates a plain object from an AutoMlVideoObjectTrackingInputs message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs + * @static + * @param {google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs} message AutoMlVideoObjectTrackingInputs + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutoMlVideoObjectTrackingInputs.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.modelType = options.enums === String ? "MODEL_TYPE_UNSPECIFIED" : 0; + if (message.modelType != null && message.hasOwnProperty("modelType")) + object.modelType = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.ModelType[message.modelType] : message.modelType; + return object; + }; + + /** + * Converts this AutoMlVideoObjectTrackingInputs to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs + * @instance + * @returns {Object.} JSON object + */ + AutoMlVideoObjectTrackingInputs.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * ModelType enum. + * @name google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.ModelType + * @enum {number} + * @property {number} MODEL_TYPE_UNSPECIFIED=0 MODEL_TYPE_UNSPECIFIED value + * @property {number} CLOUD=1 CLOUD value + * @property {number} MOBILE_VERSATILE_1=2 MOBILE_VERSATILE_1 value + * @property {number} MOBILE_CORAL_VERSATILE_1=3 MOBILE_CORAL_VERSATILE_1 value + * @property {number} MOBILE_CORAL_LOW_LATENCY_1=4 MOBILE_CORAL_LOW_LATENCY_1 value + * @property {number} MOBILE_JETSON_VERSATILE_1=5 MOBILE_JETSON_VERSATILE_1 value + * @property {number} MOBILE_JETSON_LOW_LATENCY_1=6 MOBILE_JETSON_LOW_LATENCY_1 value + */ + AutoMlVideoObjectTrackingInputs.ModelType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MODEL_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "CLOUD"] = 1; + values[valuesById[2] = "MOBILE_VERSATILE_1"] = 2; + values[valuesById[3] = "MOBILE_CORAL_VERSATILE_1"] = 3; + values[valuesById[4] = "MOBILE_CORAL_LOW_LATENCY_1"] = 4; + values[valuesById[5] = "MOBILE_JETSON_VERSATILE_1"] = 5; + values[valuesById[6] = "MOBILE_JETSON_LOW_LATENCY_1"] = 6; + return values; + })(); + + return AutoMlVideoObjectTrackingInputs; + })(); + + return definition; + })(); + + return trainingjob; + })(); + + return schema; + })(); + + v1beta1.SpecialistPoolService = (function() { + + /** + * Constructs a new SpecialistPoolService service. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a SpecialistPoolService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function SpecialistPoolService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (SpecialistPoolService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = SpecialistPoolService; + + /** + * Creates new SpecialistPoolService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.SpecialistPoolService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {SpecialistPoolService} RPC service. Useful where requests and/or responses are streamed. + */ + SpecialistPoolService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.SpecialistPoolService#createSpecialistPool}. + * @memberof google.cloud.aiplatform.v1beta1.SpecialistPoolService + * @typedef CreateSpecialistPoolCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls CreateSpecialistPool. + * @function createSpecialistPool + * @memberof google.cloud.aiplatform.v1beta1.SpecialistPoolService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolRequest} request CreateSpecialistPoolRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.SpecialistPoolService.CreateSpecialistPoolCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SpecialistPoolService.prototype.createSpecialistPool = function createSpecialistPool(request, callback) { + return this.rpcCall(createSpecialistPool, $root.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateSpecialistPool" }); + + /** + * Calls CreateSpecialistPool. + * @function createSpecialistPool + * @memberof google.cloud.aiplatform.v1beta1.SpecialistPoolService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolRequest} request CreateSpecialistPoolRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.SpecialistPoolService#getSpecialistPool}. + * @memberof google.cloud.aiplatform.v1beta1.SpecialistPoolService + * @typedef GetSpecialistPoolCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.SpecialistPool} [response] SpecialistPool + */ + + /** + * Calls GetSpecialistPool. + * @function getSpecialistPool + * @memberof google.cloud.aiplatform.v1beta1.SpecialistPoolService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetSpecialistPoolRequest} request GetSpecialistPoolRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.SpecialistPoolService.GetSpecialistPoolCallback} callback Node-style callback called with the error, if any, and SpecialistPool + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SpecialistPoolService.prototype.getSpecialistPool = function getSpecialistPool(request, callback) { + return this.rpcCall(getSpecialistPool, $root.google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest, $root.google.cloud.aiplatform.v1beta1.SpecialistPool, request, callback); + }, "name", { value: "GetSpecialistPool" }); + + /** + * Calls GetSpecialistPool. + * @function getSpecialistPool + * @memberof google.cloud.aiplatform.v1beta1.SpecialistPoolService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetSpecialistPoolRequest} request GetSpecialistPoolRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.SpecialistPoolService#listSpecialistPools}. + * @memberof google.cloud.aiplatform.v1beta1.SpecialistPoolService + * @typedef ListSpecialistPoolsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse} [response] ListSpecialistPoolsResponse + */ + + /** + * Calls ListSpecialistPools. + * @function listSpecialistPools + * @memberof google.cloud.aiplatform.v1beta1.SpecialistPoolService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListSpecialistPoolsRequest} request ListSpecialistPoolsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.SpecialistPoolService.ListSpecialistPoolsCallback} callback Node-style callback called with the error, if any, and ListSpecialistPoolsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SpecialistPoolService.prototype.listSpecialistPools = function listSpecialistPools(request, callback) { + return this.rpcCall(listSpecialistPools, $root.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest, $root.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse, request, callback); + }, "name", { value: "ListSpecialistPools" }); + + /** + * Calls ListSpecialistPools. + * @function listSpecialistPools + * @memberof google.cloud.aiplatform.v1beta1.SpecialistPoolService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListSpecialistPoolsRequest} request ListSpecialistPoolsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.SpecialistPoolService#deleteSpecialistPool}. + * @memberof google.cloud.aiplatform.v1beta1.SpecialistPoolService + * @typedef DeleteSpecialistPoolCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteSpecialistPool. + * @function deleteSpecialistPool + * @memberof google.cloud.aiplatform.v1beta1.SpecialistPoolService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteSpecialistPoolRequest} request DeleteSpecialistPoolRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.SpecialistPoolService.DeleteSpecialistPoolCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SpecialistPoolService.prototype.deleteSpecialistPool = function deleteSpecialistPool(request, callback) { + return this.rpcCall(deleteSpecialistPool, $root.google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteSpecialistPool" }); + + /** + * Calls DeleteSpecialistPool. + * @function deleteSpecialistPool + * @memberof google.cloud.aiplatform.v1beta1.SpecialistPoolService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteSpecialistPoolRequest} request DeleteSpecialistPoolRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.SpecialistPoolService#updateSpecialistPool}. + * @memberof google.cloud.aiplatform.v1beta1.SpecialistPoolService + * @typedef UpdateSpecialistPoolCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls UpdateSpecialistPool. + * @function updateSpecialistPool + * @memberof google.cloud.aiplatform.v1beta1.SpecialistPoolService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolRequest} request UpdateSpecialistPoolRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.SpecialistPoolService.UpdateSpecialistPoolCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SpecialistPoolService.prototype.updateSpecialistPool = function updateSpecialistPool(request, callback) { + return this.rpcCall(updateSpecialistPool, $root.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UpdateSpecialistPool" }); + + /** + * Calls UpdateSpecialistPool. + * @function updateSpecialistPool + * @memberof google.cloud.aiplatform.v1beta1.SpecialistPoolService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolRequest} request UpdateSpecialistPoolRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return SpecialistPoolService; + })(); + + v1beta1.CreateSpecialistPoolRequest = (function() { + + /** + * Properties of a CreateSpecialistPoolRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ICreateSpecialistPoolRequest + * @property {string|null} [parent] CreateSpecialistPoolRequest parent + * @property {google.cloud.aiplatform.v1beta1.ISpecialistPool|null} [specialistPool] CreateSpecialistPoolRequest specialistPool + */ + + /** + * Constructs a new CreateSpecialistPoolRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CreateSpecialistPoolRequest. + * @implements ICreateSpecialistPoolRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolRequest=} [properties] Properties to set + */ + function CreateSpecialistPoolRequest(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]]; + } + + /** + * CreateSpecialistPoolRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest + * @instance + */ + CreateSpecialistPoolRequest.prototype.parent = ""; + + /** + * CreateSpecialistPoolRequest specialistPool. + * @member {google.cloud.aiplatform.v1beta1.ISpecialistPool|null|undefined} specialistPool + * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest + * @instance + */ + CreateSpecialistPoolRequest.prototype.specialistPool = null; + + /** + * Creates a new CreateSpecialistPoolRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest} CreateSpecialistPoolRequest instance + */ + CreateSpecialistPoolRequest.create = function create(properties) { + return new CreateSpecialistPoolRequest(properties); + }; + + /** + * Encodes the specified CreateSpecialistPoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolRequest} message CreateSpecialistPoolRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateSpecialistPoolRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.specialistPool != null && Object.hasOwnProperty.call(message, "specialistPool")) + $root.google.cloud.aiplatform.v1beta1.SpecialistPool.encode(message.specialistPool, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateSpecialistPoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolRequest} message CreateSpecialistPoolRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateSpecialistPoolRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateSpecialistPoolRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest} CreateSpecialistPoolRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateSpecialistPoolRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.specialistPool = $root.google.cloud.aiplatform.v1beta1.SpecialistPool.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateSpecialistPoolRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest} CreateSpecialistPoolRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateSpecialistPoolRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateSpecialistPoolRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateSpecialistPoolRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.specialistPool != null && message.hasOwnProperty("specialistPool")) { + var error = $root.google.cloud.aiplatform.v1beta1.SpecialistPool.verify(message.specialistPool); + if (error) + return "specialistPool." + error; + } + return null; + }; + + /** + * Creates a CreateSpecialistPoolRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest} CreateSpecialistPoolRequest + */ + CreateSpecialistPoolRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.specialistPool != null) { + if (typeof object.specialistPool !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest.specialistPool: object expected"); + message.specialistPool = $root.google.cloud.aiplatform.v1beta1.SpecialistPool.fromObject(object.specialistPool); + } + return message; + }; + + /** + * Creates a plain object from a CreateSpecialistPoolRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest} message CreateSpecialistPoolRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateSpecialistPoolRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.specialistPool = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.specialistPool != null && message.hasOwnProperty("specialistPool")) + object.specialistPool = $root.google.cloud.aiplatform.v1beta1.SpecialistPool.toObject(message.specialistPool, options); + return object; + }; + + /** + * Converts this CreateSpecialistPoolRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest + * @instance + * @returns {Object.} JSON object + */ + CreateSpecialistPoolRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CreateSpecialistPoolRequest; + })(); + + v1beta1.CreateSpecialistPoolOperationMetadata = (function() { + + /** + * Properties of a CreateSpecialistPoolOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ICreateSpecialistPoolOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateSpecialistPoolOperationMetadata genericMetadata + */ + + /** + * Constructs a new CreateSpecialistPoolOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CreateSpecialistPoolOperationMetadata. + * @implements ICreateSpecialistPoolOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolOperationMetadata=} [properties] Properties to set + */ + function CreateSpecialistPoolOperationMetadata(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]]; + } + + /** + * CreateSpecialistPoolOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata + * @instance + */ + CreateSpecialistPoolOperationMetadata.prototype.genericMetadata = null; + + /** + * Creates a new CreateSpecialistPoolOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata} CreateSpecialistPoolOperationMetadata instance + */ + CreateSpecialistPoolOperationMetadata.create = function create(properties) { + return new CreateSpecialistPoolOperationMetadata(properties); + }; + + /** + * Encodes the specified CreateSpecialistPoolOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolOperationMetadata} message CreateSpecialistPoolOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateSpecialistPoolOperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateSpecialistPoolOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolOperationMetadata} message CreateSpecialistPoolOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateSpecialistPoolOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateSpecialistPoolOperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata} CreateSpecialistPoolOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateSpecialistPoolOperationMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateSpecialistPoolOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata} CreateSpecialistPoolOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateSpecialistPoolOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateSpecialistPoolOperationMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateSpecialistPoolOperationMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + return null; + }; + + /** + * Creates a CreateSpecialistPoolOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata} CreateSpecialistPoolOperationMetadata + */ + CreateSpecialistPoolOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + return message; + }; + + /** + * Creates a plain object from a CreateSpecialistPoolOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata} message CreateSpecialistPoolOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateSpecialistPoolOperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + return object; + }; + + /** + * Converts this CreateSpecialistPoolOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + CreateSpecialistPoolOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CreateSpecialistPoolOperationMetadata; + })(); + + v1beta1.GetSpecialistPoolRequest = (function() { + + /** + * Properties of a GetSpecialistPoolRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IGetSpecialistPoolRequest + * @property {string|null} [name] GetSpecialistPoolRequest name + */ + + /** + * Constructs a new GetSpecialistPoolRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a GetSpecialistPoolRequest. + * @implements IGetSpecialistPoolRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IGetSpecialistPoolRequest=} [properties] Properties to set + */ + function GetSpecialistPoolRequest(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]]; + } + + /** + * GetSpecialistPoolRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest + * @instance + */ + GetSpecialistPoolRequest.prototype.name = ""; + + /** + * Creates a new GetSpecialistPoolRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetSpecialistPoolRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest} GetSpecialistPoolRequest instance + */ + GetSpecialistPoolRequest.create = function create(properties) { + return new GetSpecialistPoolRequest(properties); + }; + + /** + * Encodes the specified GetSpecialistPoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetSpecialistPoolRequest} message GetSpecialistPoolRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetSpecialistPoolRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetSpecialistPoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetSpecialistPoolRequest} message GetSpecialistPoolRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetSpecialistPoolRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetSpecialistPoolRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest} GetSpecialistPoolRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetSpecialistPoolRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetSpecialistPoolRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest} GetSpecialistPoolRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetSpecialistPoolRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetSpecialistPoolRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetSpecialistPoolRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetSpecialistPoolRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest} GetSpecialistPoolRequest + */ + GetSpecialistPoolRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetSpecialistPoolRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest} message GetSpecialistPoolRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetSpecialistPoolRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetSpecialistPoolRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest + * @instance + * @returns {Object.} JSON object + */ + GetSpecialistPoolRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetSpecialistPoolRequest; + })(); + + v1beta1.ListSpecialistPoolsRequest = (function() { + + /** + * Properties of a ListSpecialistPoolsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IListSpecialistPoolsRequest + * @property {string|null} [parent] ListSpecialistPoolsRequest parent + * @property {number|null} [pageSize] ListSpecialistPoolsRequest pageSize + * @property {string|null} [pageToken] ListSpecialistPoolsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListSpecialistPoolsRequest readMask + */ + + /** + * Constructs a new ListSpecialistPoolsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ListSpecialistPoolsRequest. + * @implements IListSpecialistPoolsRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IListSpecialistPoolsRequest=} [properties] Properties to set + */ + function ListSpecialistPoolsRequest(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]]; + } + + /** + * ListSpecialistPoolsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest + * @instance + */ + ListSpecialistPoolsRequest.prototype.parent = ""; + + /** + * ListSpecialistPoolsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest + * @instance + */ + ListSpecialistPoolsRequest.prototype.pageSize = 0; + + /** + * ListSpecialistPoolsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest + * @instance + */ + ListSpecialistPoolsRequest.prototype.pageToken = ""; + + /** + * ListSpecialistPoolsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest + * @instance + */ + ListSpecialistPoolsRequest.prototype.readMask = null; + + /** + * Creates a new ListSpecialistPoolsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListSpecialistPoolsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest} ListSpecialistPoolsRequest instance + */ + ListSpecialistPoolsRequest.create = function create(properties) { + return new ListSpecialistPoolsRequest(properties); + }; + + /** + * Encodes the specified ListSpecialistPoolsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListSpecialistPoolsRequest} message ListSpecialistPoolsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListSpecialistPoolsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ListSpecialistPoolsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListSpecialistPoolsRequest} message ListSpecialistPoolsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListSpecialistPoolsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListSpecialistPoolsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest} ListSpecialistPoolsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListSpecialistPoolsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); + break; + case 4: + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListSpecialistPoolsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest} ListSpecialistPoolsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListSpecialistPoolsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListSpecialistPoolsRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListSpecialistPoolsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (error) + return "readMask." + error; + } + return null; + }; + + /** + * Creates a ListSpecialistPoolsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest} ListSpecialistPoolsRequest + */ + ListSpecialistPoolsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + } + return message; + }; + + /** + * Creates a plain object from a ListSpecialistPoolsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest} message ListSpecialistPoolsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListSpecialistPoolsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + return object; + }; + + /** + * Converts this ListSpecialistPoolsRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest + * @instance + * @returns {Object.} JSON object + */ + ListSpecialistPoolsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListSpecialistPoolsRequest; + })(); + + v1beta1.ListSpecialistPoolsResponse = (function() { + + /** + * Properties of a ListSpecialistPoolsResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IListSpecialistPoolsResponse + * @property {Array.|null} [specialistPools] ListSpecialistPoolsResponse specialistPools + * @property {string|null} [nextPageToken] ListSpecialistPoolsResponse nextPageToken + */ + + /** + * Constructs a new ListSpecialistPoolsResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ListSpecialistPoolsResponse. + * @implements IListSpecialistPoolsResponse + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IListSpecialistPoolsResponse=} [properties] Properties to set + */ + function ListSpecialistPoolsResponse(properties) { + this.specialistPools = []; + 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]]; + } + + /** + * ListSpecialistPoolsResponse specialistPools. + * @member {Array.} specialistPools + * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse + * @instance + */ + ListSpecialistPoolsResponse.prototype.specialistPools = $util.emptyArray; + + /** + * ListSpecialistPoolsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse + * @instance + */ + ListSpecialistPoolsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListSpecialistPoolsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListSpecialistPoolsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse} ListSpecialistPoolsResponse instance + */ + ListSpecialistPoolsResponse.create = function create(properties) { + return new ListSpecialistPoolsResponse(properties); + }; + + /** + * Encodes the specified ListSpecialistPoolsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListSpecialistPoolsResponse} message ListSpecialistPoolsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListSpecialistPoolsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.specialistPools != null && message.specialistPools.length) + for (var i = 0; i < message.specialistPools.length; ++i) + $root.google.cloud.aiplatform.v1beta1.SpecialistPool.encode(message.specialistPools[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; + + /** + * Encodes the specified ListSpecialistPoolsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListSpecialistPoolsResponse} message ListSpecialistPoolsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListSpecialistPoolsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListSpecialistPoolsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse} ListSpecialistPoolsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListSpecialistPoolsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.specialistPools && message.specialistPools.length)) + message.specialistPools = []; + message.specialistPools.push($root.google.cloud.aiplatform.v1beta1.SpecialistPool.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListSpecialistPoolsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse} ListSpecialistPoolsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListSpecialistPoolsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListSpecialistPoolsResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListSpecialistPoolsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.specialistPools != null && message.hasOwnProperty("specialistPools")) { + if (!Array.isArray(message.specialistPools)) + return "specialistPools: array expected"; + for (var i = 0; i < message.specialistPools.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.SpecialistPool.verify(message.specialistPools[i]); + if (error) + return "specialistPools." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListSpecialistPoolsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse} ListSpecialistPoolsResponse + */ + ListSpecialistPoolsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse(); + if (object.specialistPools) { + if (!Array.isArray(object.specialistPools)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse.specialistPools: array expected"); + message.specialistPools = []; + for (var i = 0; i < object.specialistPools.length; ++i) { + if (typeof object.specialistPools[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse.specialistPools: object expected"); + message.specialistPools[i] = $root.google.cloud.aiplatform.v1beta1.SpecialistPool.fromObject(object.specialistPools[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListSpecialistPoolsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse} message ListSpecialistPoolsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListSpecialistPoolsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.specialistPools = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.specialistPools && message.specialistPools.length) { + object.specialistPools = []; + for (var j = 0; j < message.specialistPools.length; ++j) + object.specialistPools[j] = $root.google.cloud.aiplatform.v1beta1.SpecialistPool.toObject(message.specialistPools[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListSpecialistPoolsResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse + * @instance + * @returns {Object.} JSON object + */ + ListSpecialistPoolsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListSpecialistPoolsResponse; + })(); + + v1beta1.DeleteSpecialistPoolRequest = (function() { + + /** + * Properties of a DeleteSpecialistPoolRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IDeleteSpecialistPoolRequest + * @property {string|null} [name] DeleteSpecialistPoolRequest name + * @property {boolean|null} [force] DeleteSpecialistPoolRequest force + */ + + /** + * Constructs a new DeleteSpecialistPoolRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a DeleteSpecialistPoolRequest. + * @implements IDeleteSpecialistPoolRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IDeleteSpecialistPoolRequest=} [properties] Properties to set + */ + function DeleteSpecialistPoolRequest(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]]; + } + + /** + * DeleteSpecialistPoolRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest + * @instance + */ + DeleteSpecialistPoolRequest.prototype.name = ""; + + /** + * DeleteSpecialistPoolRequest force. + * @member {boolean} force + * @memberof google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest + * @instance + */ + DeleteSpecialistPoolRequest.prototype.force = false; + + /** + * Creates a new DeleteSpecialistPoolRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteSpecialistPoolRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest} DeleteSpecialistPoolRequest instance + */ + DeleteSpecialistPoolRequest.create = function create(properties) { + return new DeleteSpecialistPoolRequest(properties); + }; + + /** + * Encodes the specified DeleteSpecialistPoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteSpecialistPoolRequest} message DeleteSpecialistPoolRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteSpecialistPoolRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); + return writer; + }; + + /** + * Encodes the specified DeleteSpecialistPoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteSpecialistPoolRequest} message DeleteSpecialistPoolRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteSpecialistPoolRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteSpecialistPoolRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest} DeleteSpecialistPoolRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteSpecialistPoolRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.force = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteSpecialistPoolRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest} DeleteSpecialistPoolRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteSpecialistPoolRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteSpecialistPoolRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteSpecialistPoolRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; + return null; + }; + + /** + * Creates a DeleteSpecialistPoolRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest} DeleteSpecialistPoolRequest + */ + DeleteSpecialistPoolRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.force != null) + message.force = Boolean(object.force); + return message; + }; + + /** + * Creates a plain object from a DeleteSpecialistPoolRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest} message DeleteSpecialistPoolRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteSpecialistPoolRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.force = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; + return object; + }; + + /** + * Converts this DeleteSpecialistPoolRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteSpecialistPoolRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteSpecialistPoolRequest; + })(); + + v1beta1.UpdateSpecialistPoolRequest = (function() { + + /** + * Properties of an UpdateSpecialistPoolRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IUpdateSpecialistPoolRequest + * @property {google.cloud.aiplatform.v1beta1.ISpecialistPool|null} [specialistPool] UpdateSpecialistPoolRequest specialistPool + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSpecialistPoolRequest updateMask + */ + + /** + * Constructs a new UpdateSpecialistPoolRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an UpdateSpecialistPoolRequest. + * @implements IUpdateSpecialistPoolRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolRequest=} [properties] Properties to set + */ + function UpdateSpecialistPoolRequest(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]]; + } + + /** + * UpdateSpecialistPoolRequest specialistPool. + * @member {google.cloud.aiplatform.v1beta1.ISpecialistPool|null|undefined} specialistPool + * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest + * @instance + */ + UpdateSpecialistPoolRequest.prototype.specialistPool = null; + + /** + * UpdateSpecialistPoolRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest + * @instance + */ + UpdateSpecialistPoolRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateSpecialistPoolRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest} UpdateSpecialistPoolRequest instance + */ + UpdateSpecialistPoolRequest.create = function create(properties) { + return new UpdateSpecialistPoolRequest(properties); + }; + + /** + * Encodes the specified UpdateSpecialistPoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolRequest} message UpdateSpecialistPoolRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateSpecialistPoolRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.specialistPool != null && Object.hasOwnProperty.call(message, "specialistPool")) + $root.google.cloud.aiplatform.v1beta1.SpecialistPool.encode(message.specialistPool, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified UpdateSpecialistPoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolRequest} message UpdateSpecialistPoolRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateSpecialistPoolRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateSpecialistPoolRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest} UpdateSpecialistPoolRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateSpecialistPoolRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.specialistPool = $root.google.cloud.aiplatform.v1beta1.SpecialistPool.decode(reader, reader.uint32()); + break; + case 2: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateSpecialistPoolRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest} UpdateSpecialistPoolRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateSpecialistPoolRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateSpecialistPoolRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateSpecialistPoolRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.specialistPool != null && message.hasOwnProperty("specialistPool")) { + var error = $root.google.cloud.aiplatform.v1beta1.SpecialistPool.verify(message.specialistPool); + if (error) + return "specialistPool." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + return null; + }; + + /** + * Creates an UpdateSpecialistPoolRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest} UpdateSpecialistPoolRequest + */ + UpdateSpecialistPoolRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest(); + if (object.specialistPool != null) { + if (typeof object.specialistPool !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest.specialistPool: object expected"); + message.specialistPool = $root.google.cloud.aiplatform.v1beta1.SpecialistPool.fromObject(object.specialistPool); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; + + /** + * Creates a plain object from an UpdateSpecialistPoolRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest} message UpdateSpecialistPoolRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateSpecialistPoolRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.specialistPool = null; + object.updateMask = null; + } + if (message.specialistPool != null && message.hasOwnProperty("specialistPool")) + object.specialistPool = $root.google.cloud.aiplatform.v1beta1.SpecialistPool.toObject(message.specialistPool, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; + + /** + * Converts this UpdateSpecialistPoolRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateSpecialistPoolRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateSpecialistPoolRequest; + })(); + + v1beta1.UpdateSpecialistPoolOperationMetadata = (function() { + + /** + * Properties of an UpdateSpecialistPoolOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IUpdateSpecialistPoolOperationMetadata + * @property {string|null} [specialistPool] UpdateSpecialistPoolOperationMetadata specialistPool + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UpdateSpecialistPoolOperationMetadata genericMetadata + */ + + /** + * Constructs a new UpdateSpecialistPoolOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an UpdateSpecialistPoolOperationMetadata. + * @implements IUpdateSpecialistPoolOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolOperationMetadata=} [properties] Properties to set + */ + function UpdateSpecialistPoolOperationMetadata(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]]; + } + + /** + * UpdateSpecialistPoolOperationMetadata specialistPool. + * @member {string} specialistPool + * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata + * @instance + */ + UpdateSpecialistPoolOperationMetadata.prototype.specialistPool = ""; + + /** + * UpdateSpecialistPoolOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata + * @instance + */ + UpdateSpecialistPoolOperationMetadata.prototype.genericMetadata = null; + + /** + * Creates a new UpdateSpecialistPoolOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata} UpdateSpecialistPoolOperationMetadata instance + */ + UpdateSpecialistPoolOperationMetadata.create = function create(properties) { + return new UpdateSpecialistPoolOperationMetadata(properties); + }; + + /** + * Encodes the specified UpdateSpecialistPoolOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolOperationMetadata} message UpdateSpecialistPoolOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateSpecialistPoolOperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.specialistPool != null && Object.hasOwnProperty.call(message, "specialistPool")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.specialistPool); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified UpdateSpecialistPoolOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolOperationMetadata} message UpdateSpecialistPoolOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateSpecialistPoolOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateSpecialistPoolOperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata} UpdateSpecialistPoolOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateSpecialistPoolOperationMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.specialistPool = reader.string(); + break; + case 2: + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateSpecialistPoolOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata} UpdateSpecialistPoolOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateSpecialistPoolOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateSpecialistPoolOperationMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateSpecialistPoolOperationMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.specialistPool != null && message.hasOwnProperty("specialistPool")) + if (!$util.isString(message.specialistPool)) + return "specialistPool: string expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + return null; + }; + + /** + * Creates an UpdateSpecialistPoolOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata} UpdateSpecialistPoolOperationMetadata + */ + UpdateSpecialistPoolOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata(); + if (object.specialistPool != null) + message.specialistPool = String(object.specialistPool); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + return message; + }; + + /** + * Creates a plain object from an UpdateSpecialistPoolOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata} message UpdateSpecialistPoolOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateSpecialistPoolOperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.specialistPool = ""; + object.genericMetadata = null; + } + if (message.specialistPool != null && message.hasOwnProperty("specialistPool")) + object.specialistPool = message.specialistPool; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + return object; + }; + + /** + * Converts this UpdateSpecialistPoolOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + UpdateSpecialistPoolOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateSpecialistPoolOperationMetadata; + })(); + + return v1beta1; + })(); + + return aiplatform; + })(); + + return cloud; + })(); + + google.api = (function() { + + /** + * Namespace api. + * @memberof google + * @namespace + */ + var api = {}; + + api.Http = (function() { + + /** + * Properties of a Http. + * @memberof google.api + * @interface IHttp + * @property {Array.|null} [rules] Http rules + * @property {boolean|null} [fullyDecodeReservedExpansion] Http fullyDecodeReservedExpansion + */ + + /** + * Constructs a new Http. + * @memberof google.api + * @classdesc Represents a Http. + * @implements IHttp + * @constructor + * @param {google.api.IHttp=} [properties] Properties to set + */ + function Http(properties) { + this.rules = []; + 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]]; + } + + /** + * Http rules. + * @member {Array.} rules + * @memberof google.api.Http + * @instance + */ + Http.prototype.rules = $util.emptyArray; + + /** + * Http fullyDecodeReservedExpansion. + * @member {boolean} fullyDecodeReservedExpansion + * @memberof google.api.Http + * @instance + */ + Http.prototype.fullyDecodeReservedExpansion = false; + + /** + * Creates a new Http instance using the specified properties. + * @function create + * @memberof google.api.Http + * @static + * @param {google.api.IHttp=} [properties] Properties to set + * @returns {google.api.Http} Http instance + */ + Http.create = function create(properties) { + return new Http(properties); + }; + + /** + * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @function encode + * @memberof google.api.Http + * @static + * @param {google.api.IHttp} message Http message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Http.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rules != null && message.rules.length) + for (var i = 0; i < message.rules.length; ++i) + $root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.fullyDecodeReservedExpansion != null && Object.hasOwnProperty.call(message, "fullyDecodeReservedExpansion")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.fullyDecodeReservedExpansion); + return writer; + }; + + /** + * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.Http + * @static + * @param {google.api.IHttp} message Http message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Http.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Http message from the specified reader or buffer. + * @function decode + * @memberof google.api.Http + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.Http} Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Http.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.api.Http(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.rules && message.rules.length)) + message.rules = []; + message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + break; + case 2: + message.fullyDecodeReservedExpansion = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Http message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.Http + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.Http} Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Http.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Http message. + * @function verify + * @memberof google.api.Http + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Http.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.rules != null && message.hasOwnProperty("rules")) { + if (!Array.isArray(message.rules)) + return "rules: array expected"; + for (var i = 0; i < message.rules.length; ++i) { + var error = $root.google.api.HttpRule.verify(message.rules[i]); + if (error) + return "rules." + error; + } + } + if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion")) + if (typeof message.fullyDecodeReservedExpansion !== "boolean") + return "fullyDecodeReservedExpansion: boolean expected"; + return null; + }; + + /** + * Creates a Http message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.Http + * @static + * @param {Object.} object Plain object + * @returns {google.api.Http} Http + */ + Http.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.Http) + return object; + var message = new $root.google.api.Http(); + if (object.rules) { + if (!Array.isArray(object.rules)) + throw TypeError(".google.api.Http.rules: array expected"); + message.rules = []; + for (var i = 0; i < object.rules.length; ++i) { + if (typeof object.rules[i] !== "object") + throw TypeError(".google.api.Http.rules: object expected"); + message.rules[i] = $root.google.api.HttpRule.fromObject(object.rules[i]); + } + } + if (object.fullyDecodeReservedExpansion != null) + message.fullyDecodeReservedExpansion = Boolean(object.fullyDecodeReservedExpansion); + return message; + }; + + /** + * Creates a plain object from a Http message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.Http + * @static + * @param {google.api.Http} message Http + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Http.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.rules = []; + if (options.defaults) + object.fullyDecodeReservedExpansion = false; + if (message.rules && message.rules.length) { + object.rules = []; + for (var j = 0; j < message.rules.length; ++j) + object.rules[j] = $root.google.api.HttpRule.toObject(message.rules[j], options); + } + if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion")) + object.fullyDecodeReservedExpansion = message.fullyDecodeReservedExpansion; + return object; + }; + + /** + * Converts this Http to JSON. + * @function toJSON + * @memberof google.api.Http + * @instance + * @returns {Object.} JSON object + */ + Http.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Http; + })(); + + api.HttpRule = (function() { + + /** + * Properties of a HttpRule. + * @memberof google.api + * @interface IHttpRule + * @property {string|null} [selector] HttpRule selector + * @property {string|null} [get] HttpRule get + * @property {string|null} [put] HttpRule put + * @property {string|null} [post] HttpRule post + * @property {string|null} ["delete"] HttpRule delete + * @property {string|null} [patch] HttpRule patch + * @property {google.api.ICustomHttpPattern|null} [custom] HttpRule custom + * @property {string|null} [body] HttpRule body + * @property {string|null} [responseBody] HttpRule responseBody + * @property {Array.|null} [additionalBindings] HttpRule additionalBindings + */ + + /** + * Constructs a new HttpRule. + * @memberof google.api + * @classdesc Represents a HttpRule. + * @implements IHttpRule + * @constructor + * @param {google.api.IHttpRule=} [properties] Properties to set + */ + function HttpRule(properties) { + this.additionalBindings = []; + 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]]; + } + + /** + * HttpRule selector. + * @member {string} selector + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.selector = ""; + + /** + * HttpRule get. + * @member {string} get + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.get = ""; + + /** + * HttpRule put. + * @member {string} put + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.put = ""; + + /** + * HttpRule post. + * @member {string} post + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.post = ""; + + /** + * HttpRule delete. + * @member {string} delete + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype["delete"] = ""; + + /** + * HttpRule patch. + * @member {string} patch + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.patch = ""; + + /** + * HttpRule custom. + * @member {google.api.ICustomHttpPattern|null|undefined} custom + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.custom = null; + + /** + * HttpRule body. + * @member {string} body + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.body = ""; + + /** + * HttpRule responseBody. + * @member {string} responseBody + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.responseBody = ""; + + /** + * HttpRule additionalBindings. + * @member {Array.} additionalBindings + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.additionalBindings = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * HttpRule pattern. + * @member {"get"|"put"|"post"|"delete"|"patch"|"custom"|undefined} pattern + * @memberof google.api.HttpRule + * @instance + */ + Object.defineProperty(HttpRule.prototype, "pattern", { + get: $util.oneOfGetter($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new HttpRule instance using the specified properties. + * @function create + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule=} [properties] Properties to set + * @returns {google.api.HttpRule} HttpRule instance + */ + HttpRule.create = function create(properties) { + return new HttpRule(properties); + }; + + /** + * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @function encode + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule} message HttpRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HttpRule.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.selector != null && Object.hasOwnProperty.call(message, "selector")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector); + if (message.get != null && Object.hasOwnProperty.call(message, "get")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.get); + if (message.put != null && Object.hasOwnProperty.call(message, "put")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.put); + if (message.post != null && Object.hasOwnProperty.call(message, "post")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.post); + if (message["delete"] != null && Object.hasOwnProperty.call(message, "delete")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message["delete"]); + if (message.patch != null && Object.hasOwnProperty.call(message, "patch")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.patch); + if (message.body != null && Object.hasOwnProperty.call(message, "body")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.body); + if (message.custom != null && Object.hasOwnProperty.call(message, "custom")) + $root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.additionalBindings != null && message.additionalBindings.length) + for (var i = 0; i < message.additionalBindings.length; ++i) + $root.google.api.HttpRule.encode(message.additionalBindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.responseBody != null && Object.hasOwnProperty.call(message, "responseBody")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.responseBody); + return writer; + }; + + /** + * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule} message HttpRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HttpRule.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HttpRule message from the specified reader or buffer. + * @function decode + * @memberof google.api.HttpRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.HttpRule} HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HttpRule.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.api.HttpRule(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.selector = reader.string(); + break; + case 2: + message.get = reader.string(); + break; + case 3: + message.put = reader.string(); + break; + case 4: + message.post = reader.string(); + break; + case 5: + message["delete"] = reader.string(); + break; + case 6: + message.patch = reader.string(); + break; + case 8: + message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32()); + break; + case 7: + message.body = reader.string(); + break; + case 12: + message.responseBody = reader.string(); + break; + case 11: + if (!(message.additionalBindings && message.additionalBindings.length)) + message.additionalBindings = []; + message.additionalBindings.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a HttpRule message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.HttpRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.HttpRule} HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HttpRule.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HttpRule message. + * @function verify + * @memberof google.api.HttpRule + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HttpRule.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.selector != null && message.hasOwnProperty("selector")) + if (!$util.isString(message.selector)) + return "selector: string expected"; + if (message.get != null && message.hasOwnProperty("get")) { + properties.pattern = 1; + if (!$util.isString(message.get)) + return "get: string expected"; + } + if (message.put != null && message.hasOwnProperty("put")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.put)) + return "put: string expected"; + } + if (message.post != null && message.hasOwnProperty("post")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.post)) + return "post: string expected"; + } + if (message["delete"] != null && message.hasOwnProperty("delete")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message["delete"])) + return "delete: string expected"; + } + if (message.patch != null && message.hasOwnProperty("patch")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.patch)) + return "patch: string expected"; + } + if (message.custom != null && message.hasOwnProperty("custom")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + { + var error = $root.google.api.CustomHttpPattern.verify(message.custom); + if (error) + return "custom." + error; + } + } + if (message.body != null && message.hasOwnProperty("body")) + if (!$util.isString(message.body)) + return "body: string expected"; + if (message.responseBody != null && message.hasOwnProperty("responseBody")) + if (!$util.isString(message.responseBody)) + return "responseBody: string expected"; + if (message.additionalBindings != null && message.hasOwnProperty("additionalBindings")) { + if (!Array.isArray(message.additionalBindings)) + return "additionalBindings: array expected"; + for (var i = 0; i < message.additionalBindings.length; ++i) { + var error = $root.google.api.HttpRule.verify(message.additionalBindings[i]); + if (error) + return "additionalBindings." + error; + } + } + return null; + }; + + /** + * Creates a HttpRule message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.HttpRule + * @static + * @param {Object.} object Plain object + * @returns {google.api.HttpRule} HttpRule + */ + HttpRule.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.HttpRule) + return object; + var message = new $root.google.api.HttpRule(); + if (object.selector != null) + message.selector = String(object.selector); + if (object.get != null) + message.get = String(object.get); + if (object.put != null) + message.put = String(object.put); + if (object.post != null) + message.post = String(object.post); + if (object["delete"] != null) + message["delete"] = String(object["delete"]); + if (object.patch != null) + message.patch = String(object.patch); + if (object.custom != null) { + if (typeof object.custom !== "object") + throw TypeError(".google.api.HttpRule.custom: object expected"); + message.custom = $root.google.api.CustomHttpPattern.fromObject(object.custom); + } + if (object.body != null) + message.body = String(object.body); + if (object.responseBody != null) + message.responseBody = String(object.responseBody); + if (object.additionalBindings) { + if (!Array.isArray(object.additionalBindings)) + throw TypeError(".google.api.HttpRule.additionalBindings: array expected"); + message.additionalBindings = []; + for (var i = 0; i < object.additionalBindings.length; ++i) { + if (typeof object.additionalBindings[i] !== "object") + throw TypeError(".google.api.HttpRule.additionalBindings: object expected"); + message.additionalBindings[i] = $root.google.api.HttpRule.fromObject(object.additionalBindings[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a HttpRule message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.HttpRule + * @static + * @param {google.api.HttpRule} message HttpRule + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HttpRule.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.additionalBindings = []; + if (options.defaults) { + object.selector = ""; + object.body = ""; + object.responseBody = ""; + } + if (message.selector != null && message.hasOwnProperty("selector")) + object.selector = message.selector; + if (message.get != null && message.hasOwnProperty("get")) { + object.get = message.get; + if (options.oneofs) + object.pattern = "get"; + } + if (message.put != null && message.hasOwnProperty("put")) { + object.put = message.put; + if (options.oneofs) + object.pattern = "put"; + } + if (message.post != null && message.hasOwnProperty("post")) { + object.post = message.post; + if (options.oneofs) + object.pattern = "post"; + } + if (message["delete"] != null && message.hasOwnProperty("delete")) { + object["delete"] = message["delete"]; + if (options.oneofs) + object.pattern = "delete"; + } + if (message.patch != null && message.hasOwnProperty("patch")) { + object.patch = message.patch; + if (options.oneofs) + object.pattern = "patch"; + } + if (message.body != null && message.hasOwnProperty("body")) + object.body = message.body; + if (message.custom != null && message.hasOwnProperty("custom")) { + object.custom = $root.google.api.CustomHttpPattern.toObject(message.custom, options); + if (options.oneofs) + object.pattern = "custom"; + } + if (message.additionalBindings && message.additionalBindings.length) { + object.additionalBindings = []; + for (var j = 0; j < message.additionalBindings.length; ++j) + object.additionalBindings[j] = $root.google.api.HttpRule.toObject(message.additionalBindings[j], options); + } + if (message.responseBody != null && message.hasOwnProperty("responseBody")) + object.responseBody = message.responseBody; + return object; + }; + + /** + * Converts this HttpRule to JSON. + * @function toJSON + * @memberof google.api.HttpRule + * @instance + * @returns {Object.} JSON object + */ + HttpRule.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return HttpRule; + })(); + + api.CustomHttpPattern = (function() { + + /** + * Properties of a CustomHttpPattern. + * @memberof google.api + * @interface ICustomHttpPattern + * @property {string|null} [kind] CustomHttpPattern kind + * @property {string|null} [path] CustomHttpPattern path + */ + + /** + * Constructs a new CustomHttpPattern. + * @memberof google.api + * @classdesc Represents a CustomHttpPattern. + * @implements ICustomHttpPattern + * @constructor + * @param {google.api.ICustomHttpPattern=} [properties] Properties to set + */ + function CustomHttpPattern(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]]; + } + + /** + * CustomHttpPattern kind. + * @member {string} kind + * @memberof google.api.CustomHttpPattern + * @instance + */ + CustomHttpPattern.prototype.kind = ""; + + /** + * CustomHttpPattern path. + * @member {string} path + * @memberof google.api.CustomHttpPattern + * @instance + */ + CustomHttpPattern.prototype.path = ""; + + /** + * Creates a new CustomHttpPattern instance using the specified properties. + * @function create + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern=} [properties] Properties to set + * @returns {google.api.CustomHttpPattern} CustomHttpPattern instance + */ + CustomHttpPattern.create = function create(properties) { + return new CustomHttpPattern(properties); + }; + + /** + * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @function encode + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomHttpPattern.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); + return writer; + }; + + /** + * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomHttpPattern.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer. + * @function decode + * @memberof google.api.CustomHttpPattern + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomHttpPattern.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.api.CustomHttpPattern(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.kind = reader.string(); + break; + case 2: + message.path = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.CustomHttpPattern + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomHttpPattern.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CustomHttpPattern message. + * @function verify + * @memberof google.api.CustomHttpPattern + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CustomHttpPattern.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.kind != null && message.hasOwnProperty("kind")) + if (!$util.isString(message.kind)) + return "kind: string expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; + return null; + }; + + /** + * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.CustomHttpPattern + * @static + * @param {Object.} object Plain object + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + */ + CustomHttpPattern.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.CustomHttpPattern) + return object; + var message = new $root.google.api.CustomHttpPattern(); + if (object.kind != null) + message.kind = String(object.kind); + if (object.path != null) + message.path = String(object.path); + return message; + }; + + /** + * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.CustomHttpPattern} message CustomHttpPattern + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CustomHttpPattern.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.kind = ""; + object.path = ""; + } + if (message.kind != null && message.hasOwnProperty("kind")) + object.kind = message.kind; + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; + return object; + }; + + /** + * Converts this CustomHttpPattern to JSON. + * @function toJSON + * @memberof google.api.CustomHttpPattern + * @instance + * @returns {Object.} JSON object + */ + CustomHttpPattern.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CustomHttpPattern; + })(); + + /** + * FieldBehavior enum. + * @name google.api.FieldBehavior + * @enum {number} + * @property {number} FIELD_BEHAVIOR_UNSPECIFIED=0 FIELD_BEHAVIOR_UNSPECIFIED value + * @property {number} OPTIONAL=1 OPTIONAL value + * @property {number} REQUIRED=2 REQUIRED value + * @property {number} OUTPUT_ONLY=3 OUTPUT_ONLY value + * @property {number} INPUT_ONLY=4 INPUT_ONLY value + * @property {number} IMMUTABLE=5 IMMUTABLE value + */ + api.FieldBehavior = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "FIELD_BEHAVIOR_UNSPECIFIED"] = 0; + values[valuesById[1] = "OPTIONAL"] = 1; + values[valuesById[2] = "REQUIRED"] = 2; + values[valuesById[3] = "OUTPUT_ONLY"] = 3; + values[valuesById[4] = "INPUT_ONLY"] = 4; + values[valuesById[5] = "IMMUTABLE"] = 5; + return values; + })(); + + api.ResourceDescriptor = (function() { + + /** + * Properties of a ResourceDescriptor. + * @memberof google.api + * @interface IResourceDescriptor + * @property {string|null} [type] ResourceDescriptor type + * @property {Array.|null} [pattern] ResourceDescriptor pattern + * @property {string|null} [nameField] ResourceDescriptor nameField + * @property {google.api.ResourceDescriptor.History|null} [history] ResourceDescriptor history + * @property {string|null} [plural] ResourceDescriptor plural + * @property {string|null} [singular] ResourceDescriptor singular + */ + + /** + * Constructs a new ResourceDescriptor. + * @memberof google.api + * @classdesc Represents a ResourceDescriptor. + * @implements IResourceDescriptor + * @constructor + * @param {google.api.IResourceDescriptor=} [properties] Properties to set + */ + function ResourceDescriptor(properties) { + this.pattern = []; + 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]]; + } + + /** + * ResourceDescriptor type. + * @member {string} type + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.type = ""; + + /** + * ResourceDescriptor pattern. + * @member {Array.} pattern + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.pattern = $util.emptyArray; + + /** + * ResourceDescriptor nameField. + * @member {string} nameField + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.nameField = ""; + + /** + * ResourceDescriptor history. + * @member {google.api.ResourceDescriptor.History} history + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.history = 0; + + /** + * ResourceDescriptor plural. + * @member {string} plural + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.plural = ""; + + /** + * ResourceDescriptor singular. + * @member {string} singular + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.singular = ""; + + /** + * Creates a new ResourceDescriptor instance using the specified properties. + * @function create + * @memberof google.api.ResourceDescriptor + * @static + * @param {google.api.IResourceDescriptor=} [properties] Properties to set + * @returns {google.api.ResourceDescriptor} ResourceDescriptor instance + */ + ResourceDescriptor.create = function create(properties) { + return new ResourceDescriptor(properties); + }; + + /** + * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. + * @function encode + * @memberof google.api.ResourceDescriptor + * @static + * @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceDescriptor.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); + if (message.pattern != null && message.pattern.length) + for (var i = 0; i < message.pattern.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.pattern[i]); + if (message.nameField != null && Object.hasOwnProperty.call(message, "nameField")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.nameField); + if (message.history != null && Object.hasOwnProperty.call(message, "history")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.history); + if (message.plural != null && Object.hasOwnProperty.call(message, "plural")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.plural); + if (message.singular != null && Object.hasOwnProperty.call(message, "singular")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.singular); + return writer; + }; + + /** + * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.ResourceDescriptor + * @static + * @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceDescriptor.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ResourceDescriptor message from the specified reader or buffer. + * @function decode + * @memberof google.api.ResourceDescriptor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.ResourceDescriptor} ResourceDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceDescriptor.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.api.ResourceDescriptor(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = reader.string(); + break; + case 2: + if (!(message.pattern && message.pattern.length)) + message.pattern = []; + message.pattern.push(reader.string()); + break; + case 3: + message.nameField = reader.string(); + break; + case 4: + message.history = reader.int32(); + break; + case 5: + message.plural = reader.string(); + break; + case 6: + message.singular = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.ResourceDescriptor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.ResourceDescriptor} ResourceDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceDescriptor.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ResourceDescriptor message. + * @function verify + * @memberof google.api.ResourceDescriptor + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResourceDescriptor.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.pattern != null && message.hasOwnProperty("pattern")) { + if (!Array.isArray(message.pattern)) + return "pattern: array expected"; + for (var i = 0; i < message.pattern.length; ++i) + if (!$util.isString(message.pattern[i])) + return "pattern: string[] expected"; + } + if (message.nameField != null && message.hasOwnProperty("nameField")) + if (!$util.isString(message.nameField)) + return "nameField: string expected"; + if (message.history != null && message.hasOwnProperty("history")) + switch (message.history) { + default: + return "history: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.plural != null && message.hasOwnProperty("plural")) + if (!$util.isString(message.plural)) + return "plural: string expected"; + if (message.singular != null && message.hasOwnProperty("singular")) + if (!$util.isString(message.singular)) + return "singular: string expected"; + return null; + }; + + /** + * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.ResourceDescriptor + * @static + * @param {Object.} object Plain object + * @returns {google.api.ResourceDescriptor} ResourceDescriptor + */ + ResourceDescriptor.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.ResourceDescriptor) + return object; + var message = new $root.google.api.ResourceDescriptor(); + if (object.type != null) + message.type = String(object.type); + if (object.pattern) { + if (!Array.isArray(object.pattern)) + throw TypeError(".google.api.ResourceDescriptor.pattern: array expected"); + message.pattern = []; + for (var i = 0; i < object.pattern.length; ++i) + message.pattern[i] = String(object.pattern[i]); + } + if (object.nameField != null) + message.nameField = String(object.nameField); + switch (object.history) { + case "HISTORY_UNSPECIFIED": + case 0: + message.history = 0; + break; + case "ORIGINALLY_SINGLE_PATTERN": + case 1: + message.history = 1; + break; + case "FUTURE_MULTI_PATTERN": + case 2: + message.history = 2; + break; + } + if (object.plural != null) + message.plural = String(object.plural); + if (object.singular != null) + message.singular = String(object.singular); + return message; + }; + + /** + * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.ResourceDescriptor + * @static + * @param {google.api.ResourceDescriptor} message ResourceDescriptor + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ResourceDescriptor.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.pattern = []; + if (options.defaults) { + object.type = ""; + object.nameField = ""; + object.history = options.enums === String ? "HISTORY_UNSPECIFIED" : 0; + object.plural = ""; + object.singular = ""; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.pattern && message.pattern.length) { + object.pattern = []; + for (var j = 0; j < message.pattern.length; ++j) + object.pattern[j] = message.pattern[j]; + } + if (message.nameField != null && message.hasOwnProperty("nameField")) + object.nameField = message.nameField; + if (message.history != null && message.hasOwnProperty("history")) + object.history = options.enums === String ? $root.google.api.ResourceDescriptor.History[message.history] : message.history; + if (message.plural != null && message.hasOwnProperty("plural")) + object.plural = message.plural; + if (message.singular != null && message.hasOwnProperty("singular")) + object.singular = message.singular; + return object; + }; + + /** + * Converts this ResourceDescriptor to JSON. + * @function toJSON + * @memberof google.api.ResourceDescriptor + * @instance + * @returns {Object.} JSON object + */ + ResourceDescriptor.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * History enum. + * @name google.api.ResourceDescriptor.History + * @enum {number} + * @property {number} HISTORY_UNSPECIFIED=0 HISTORY_UNSPECIFIED value + * @property {number} ORIGINALLY_SINGLE_PATTERN=1 ORIGINALLY_SINGLE_PATTERN value + * @property {number} FUTURE_MULTI_PATTERN=2 FUTURE_MULTI_PATTERN value + */ + ResourceDescriptor.History = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "HISTORY_UNSPECIFIED"] = 0; + values[valuesById[1] = "ORIGINALLY_SINGLE_PATTERN"] = 1; + values[valuesById[2] = "FUTURE_MULTI_PATTERN"] = 2; + return values; + })(); + + return ResourceDescriptor; + })(); + + api.ResourceReference = (function() { + + /** + * Properties of a ResourceReference. + * @memberof google.api + * @interface IResourceReference + * @property {string|null} [type] ResourceReference type + * @property {string|null} [childType] ResourceReference childType + */ + + /** + * Constructs a new ResourceReference. + * @memberof google.api + * @classdesc Represents a ResourceReference. + * @implements IResourceReference + * @constructor + * @param {google.api.IResourceReference=} [properties] Properties to set + */ + function ResourceReference(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]]; + } + + /** + * ResourceReference type. + * @member {string} type + * @memberof google.api.ResourceReference + * @instance + */ + ResourceReference.prototype.type = ""; + + /** + * ResourceReference childType. + * @member {string} childType + * @memberof google.api.ResourceReference + * @instance + */ + ResourceReference.prototype.childType = ""; + + /** + * Creates a new ResourceReference instance using the specified properties. + * @function create + * @memberof google.api.ResourceReference + * @static + * @param {google.api.IResourceReference=} [properties] Properties to set + * @returns {google.api.ResourceReference} ResourceReference instance + */ + ResourceReference.create = function create(properties) { + return new ResourceReference(properties); + }; + + /** + * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. + * @function encode + * @memberof google.api.ResourceReference + * @static + * @param {google.api.IResourceReference} message ResourceReference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceReference.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); + if (message.childType != null && Object.hasOwnProperty.call(message, "childType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.childType); + return writer; + }; + + /** + * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.ResourceReference + * @static + * @param {google.api.IResourceReference} message ResourceReference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceReference.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ResourceReference message from the specified reader or buffer. + * @function decode + * @memberof google.api.ResourceReference + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.ResourceReference} ResourceReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceReference.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.api.ResourceReference(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = reader.string(); + break; + case 2: + message.childType = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ResourceReference message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.ResourceReference + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.ResourceReference} ResourceReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceReference.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ResourceReference message. + * @function verify + * @memberof google.api.ResourceReference + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResourceReference.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.childType != null && message.hasOwnProperty("childType")) + if (!$util.isString(message.childType)) + return "childType: string expected"; + return null; + }; + + /** + * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.ResourceReference + * @static + * @param {Object.} object Plain object + * @returns {google.api.ResourceReference} ResourceReference + */ + ResourceReference.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.ResourceReference) + return object; + var message = new $root.google.api.ResourceReference(); + if (object.type != null) + message.type = String(object.type); + if (object.childType != null) + message.childType = String(object.childType); + return message; + }; + + /** + * Creates a plain object from a ResourceReference message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.ResourceReference + * @static + * @param {google.api.ResourceReference} message ResourceReference + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ResourceReference.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.type = ""; + object.childType = ""; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.childType != null && message.hasOwnProperty("childType")) + object.childType = message.childType; + return object; + }; + + /** + * Converts this ResourceReference to JSON. + * @function toJSON + * @memberof google.api.ResourceReference + * @instance + * @returns {Object.} JSON object + */ + ResourceReference.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ResourceReference; + })(); + + return api; + })(); + + google.protobuf = (function() { + + /** + * Namespace protobuf. + * @memberof google + * @namespace + */ + var protobuf = {}; + + protobuf.FileDescriptorSet = (function() { + + /** + * Properties of a FileDescriptorSet. + * @memberof google.protobuf + * @interface IFileDescriptorSet + * @property {Array.|null} [file] FileDescriptorSet file + */ + + /** + * Constructs a new FileDescriptorSet. + * @memberof google.protobuf + * @classdesc Represents a FileDescriptorSet. + * @implements IFileDescriptorSet + * @constructor + * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set + */ + function FileDescriptorSet(properties) { + this.file = []; + 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]]; + } + + /** + * FileDescriptorSet file. + * @member {Array.} file + * @memberof google.protobuf.FileDescriptorSet + * @instance + */ + FileDescriptorSet.prototype.file = $util.emptyArray; + + /** + * Creates a new FileDescriptorSet instance using the specified properties. + * @function create + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet instance + */ + FileDescriptorSet.create = function create(properties) { + return new FileDescriptorSet(properties); + }; + + /** + * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorSet.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.file != null && message.file.length) + for (var i = 0; i < message.file.length; ++i) + $root.google.protobuf.FileDescriptorProto.encode(message.file[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorSet.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorSet.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.protobuf.FileDescriptorSet(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.file && message.file.length)) + message.file = []; + message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorSet.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FileDescriptorSet message. + * @function verify + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FileDescriptorSet.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.file != null && message.hasOwnProperty("file")) { + if (!Array.isArray(message.file)) + return "file: array expected"; + for (var i = 0; i < message.file.length; ++i) { + var error = $root.google.protobuf.FileDescriptorProto.verify(message.file[i]); + if (error) + return "file." + error; + } + } + return null; + }; + + /** + * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + */ + FileDescriptorSet.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileDescriptorSet) + return object; + var message = new $root.google.protobuf.FileDescriptorSet(); + if (object.file) { + if (!Array.isArray(object.file)) + throw TypeError(".google.protobuf.FileDescriptorSet.file: array expected"); + message.file = []; + for (var i = 0; i < object.file.length; ++i) { + if (typeof object.file[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected"); + message.file[i] = $root.google.protobuf.FileDescriptorProto.fromObject(object.file[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.FileDescriptorSet} message FileDescriptorSet + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FileDescriptorSet.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.file = []; + if (message.file && message.file.length) { + object.file = []; + for (var j = 0; j < message.file.length; ++j) + object.file[j] = $root.google.protobuf.FileDescriptorProto.toObject(message.file[j], options); + } + return object; + }; + + /** + * Converts this FileDescriptorSet to JSON. + * @function toJSON + * @memberof google.protobuf.FileDescriptorSet + * @instance + * @returns {Object.} JSON object + */ + FileDescriptorSet.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return FileDescriptorSet; + })(); + + protobuf.FileDescriptorProto = (function() { + + /** + * Properties of a FileDescriptorProto. + * @memberof google.protobuf + * @interface IFileDescriptorProto + * @property {string|null} [name] FileDescriptorProto name + * @property {string|null} ["package"] FileDescriptorProto package + * @property {Array.|null} [dependency] FileDescriptorProto dependency + * @property {Array.|null} [publicDependency] FileDescriptorProto publicDependency + * @property {Array.|null} [weakDependency] FileDescriptorProto weakDependency + * @property {Array.|null} [messageType] FileDescriptorProto messageType + * @property {Array.|null} [enumType] FileDescriptorProto enumType + * @property {Array.|null} [service] FileDescriptorProto service + * @property {Array.|null} [extension] FileDescriptorProto extension + * @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options + * @property {google.protobuf.ISourceCodeInfo|null} [sourceCodeInfo] FileDescriptorProto sourceCodeInfo + * @property {string|null} [syntax] FileDescriptorProto syntax + */ + + /** + * Constructs a new FileDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a FileDescriptorProto. + * @implements IFileDescriptorProto + * @constructor + * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set + */ + function FileDescriptorProto(properties) { + this.dependency = []; + this.publicDependency = []; + this.weakDependency = []; + this.messageType = []; + this.enumType = []; + this.service = []; + this.extension = []; + 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]]; + } + + /** + * FileDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.name = ""; + + /** + * FileDescriptorProto package. + * @member {string} package + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype["package"] = ""; + + /** + * FileDescriptorProto dependency. + * @member {Array.} dependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.dependency = $util.emptyArray; + + /** + * FileDescriptorProto publicDependency. + * @member {Array.} publicDependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.publicDependency = $util.emptyArray; + + /** + * FileDescriptorProto weakDependency. + * @member {Array.} weakDependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.weakDependency = $util.emptyArray; + + /** + * FileDescriptorProto messageType. + * @member {Array.} messageType + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.messageType = $util.emptyArray; + + /** + * FileDescriptorProto enumType. + * @member {Array.} enumType + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.enumType = $util.emptyArray; + + /** + * FileDescriptorProto service. + * @member {Array.} service + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.service = $util.emptyArray; + + /** + * FileDescriptorProto extension. + * @member {Array.} extension + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.extension = $util.emptyArray; + + /** + * FileDescriptorProto options. + * @member {google.protobuf.IFileOptions|null|undefined} options + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.options = null; + + /** + * FileDescriptorProto sourceCodeInfo. + * @member {google.protobuf.ISourceCodeInfo|null|undefined} sourceCodeInfo + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.sourceCodeInfo = null; + + /** + * FileDescriptorProto syntax. + * @member {string} syntax + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.syntax = ""; + + /** + * Creates a new FileDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto instance + */ + FileDescriptorProto.create = function create(properties) { + return new FileDescriptorProto(properties); + }; + + /** + * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message["package"] != null && Object.hasOwnProperty.call(message, "package")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message["package"]); + if (message.dependency != null && message.dependency.length) + for (var i = 0; i < message.dependency.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.dependency[i]); + if (message.messageType != null && message.messageType.length) + for (var i = 0; i < message.messageType.length; ++i) + $root.google.protobuf.DescriptorProto.encode(message.messageType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.enumType != null && message.enumType.length) + for (var i = 0; i < message.enumType.length; ++i) + $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.service != null && message.service.length) + for (var i = 0; i < message.service.length; ++i) + $root.google.protobuf.ServiceDescriptorProto.encode(message.service[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.extension != null && message.extension.length) + for (var i = 0; i < message.extension.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.FileOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.sourceCodeInfo != null && Object.hasOwnProperty.call(message, "sourceCodeInfo")) + $root.google.protobuf.SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.publicDependency != null && message.publicDependency.length) + for (var i = 0; i < message.publicDependency.length; ++i) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.publicDependency[i]); + if (message.weakDependency != null && message.weakDependency.length) + for (var i = 0; i < message.weakDependency.length; ++i) + writer.uint32(/* id 11, wireType 0 =*/88).int32(message.weakDependency[i]); + if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax); + return writer; + }; + + /** + * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorProto.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.protobuf.FileDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message["package"] = reader.string(); + break; + case 3: + if (!(message.dependency && message.dependency.length)) + message.dependency = []; + message.dependency.push(reader.string()); + break; + case 10: + if (!(message.publicDependency && message.publicDependency.length)) + message.publicDependency = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.publicDependency.push(reader.int32()); + } else + message.publicDependency.push(reader.int32()); + break; + case 11: + if (!(message.weakDependency && message.weakDependency.length)) + message.weakDependency = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.weakDependency.push(reader.int32()); + } else + message.weakDependency.push(reader.int32()); + break; + case 4: + if (!(message.messageType && message.messageType.length)) + message.messageType = []; + message.messageType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); + break; + case 5: + if (!(message.enumType && message.enumType.length)) + message.enumType = []; + message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); + break; + case 6: + if (!(message.service && message.service.length)) + message.service = []; + message.service.push($root.google.protobuf.ServiceDescriptorProto.decode(reader, reader.uint32())); + break; + case 7: + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + case 8: + message.options = $root.google.protobuf.FileOptions.decode(reader, reader.uint32()); + break; + case 9: + message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.decode(reader, reader.uint32()); + break; + case 12: + message.syntax = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FileDescriptorProto message. + * @function verify + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FileDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message["package"] != null && message.hasOwnProperty("package")) + if (!$util.isString(message["package"])) + return "package: string expected"; + if (message.dependency != null && message.hasOwnProperty("dependency")) { + if (!Array.isArray(message.dependency)) + return "dependency: array expected"; + for (var i = 0; i < message.dependency.length; ++i) + if (!$util.isString(message.dependency[i])) + return "dependency: string[] expected"; + } + if (message.publicDependency != null && message.hasOwnProperty("publicDependency")) { + if (!Array.isArray(message.publicDependency)) + return "publicDependency: array expected"; + for (var i = 0; i < message.publicDependency.length; ++i) + if (!$util.isInteger(message.publicDependency[i])) + return "publicDependency: integer[] expected"; + } + if (message.weakDependency != null && message.hasOwnProperty("weakDependency")) { + if (!Array.isArray(message.weakDependency)) + return "weakDependency: array expected"; + for (var i = 0; i < message.weakDependency.length; ++i) + if (!$util.isInteger(message.weakDependency[i])) + return "weakDependency: integer[] expected"; + } + if (message.messageType != null && message.hasOwnProperty("messageType")) { + if (!Array.isArray(message.messageType)) + return "messageType: array expected"; + for (var i = 0; i < message.messageType.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.verify(message.messageType[i]); + if (error) + return "messageType." + error; + } + } + if (message.enumType != null && message.hasOwnProperty("enumType")) { + if (!Array.isArray(message.enumType)) + return "enumType: array expected"; + for (var i = 0; i < message.enumType.length; ++i) { + var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); + if (error) + return "enumType." + error; + } + } + if (message.service != null && message.hasOwnProperty("service")) { + if (!Array.isArray(message.service)) + return "service: array expected"; + for (var i = 0; i < message.service.length; ++i) { + var error = $root.google.protobuf.ServiceDescriptorProto.verify(message.service[i]); + if (error) + return "service." + error; + } + } + if (message.extension != null && message.hasOwnProperty("extension")) { + if (!Array.isArray(message.extension)) + return "extension: array expected"; + for (var i = 0; i < message.extension.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); + if (error) + return "extension." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.FileOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) { + var error = $root.google.protobuf.SourceCodeInfo.verify(message.sourceCodeInfo); + if (error) + return "sourceCodeInfo." + error; + } + if (message.syntax != null && message.hasOwnProperty("syntax")) + if (!$util.isString(message.syntax)) + return "syntax: string expected"; + return null; + }; + + /** + * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + */ + FileDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileDescriptorProto) + return object; + var message = new $root.google.protobuf.FileDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object["package"] != null) + message["package"] = String(object["package"]); + if (object.dependency) { + if (!Array.isArray(object.dependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.dependency: array expected"); + message.dependency = []; + for (var i = 0; i < object.dependency.length; ++i) + message.dependency[i] = String(object.dependency[i]); + } + if (object.publicDependency) { + if (!Array.isArray(object.publicDependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.publicDependency: array expected"); + message.publicDependency = []; + for (var i = 0; i < object.publicDependency.length; ++i) + message.publicDependency[i] = object.publicDependency[i] | 0; + } + if (object.weakDependency) { + if (!Array.isArray(object.weakDependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.weakDependency: array expected"); + message.weakDependency = []; + for (var i = 0; i < object.weakDependency.length; ++i) + message.weakDependency[i] = object.weakDependency[i] | 0; + } + if (object.messageType) { + if (!Array.isArray(object.messageType)) + throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected"); + message.messageType = []; + for (var i = 0; i < object.messageType.length; ++i) { + if (typeof object.messageType[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.messageType: object expected"); + message.messageType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.messageType[i]); + } + } + if (object.enumType) { + if (!Array.isArray(object.enumType)) + throw TypeError(".google.protobuf.FileDescriptorProto.enumType: array expected"); + message.enumType = []; + for (var i = 0; i < object.enumType.length; ++i) { + if (typeof object.enumType[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.enumType: object expected"); + message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]); + } + } + if (object.service) { + if (!Array.isArray(object.service)) + throw TypeError(".google.protobuf.FileDescriptorProto.service: array expected"); + message.service = []; + for (var i = 0; i < object.service.length; ++i) { + if (typeof object.service[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.service: object expected"); + message.service[i] = $root.google.protobuf.ServiceDescriptorProto.fromObject(object.service[i]); + } + } + if (object.extension) { + if (!Array.isArray(object.extension)) + throw TypeError(".google.protobuf.FileDescriptorProto.extension: array expected"); + message.extension = []; + for (var i = 0; i < object.extension.length; ++i) { + if (typeof object.extension[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.extension: object expected"); + message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.FileOptions.fromObject(object.options); + } + if (object.sourceCodeInfo != null) { + if (typeof object.sourceCodeInfo !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.sourceCodeInfo: object expected"); + message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.fromObject(object.sourceCodeInfo); + } + if (object.syntax != null) + message.syntax = String(object.syntax); + return message; + }; + + /** + * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.FileDescriptorProto} message FileDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FileDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.dependency = []; + object.messageType = []; + object.enumType = []; + object.service = []; + object.extension = []; + object.publicDependency = []; + object.weakDependency = []; + } + if (options.defaults) { + object.name = ""; + object["package"] = ""; + object.options = null; + object.sourceCodeInfo = null; + object.syntax = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message["package"] != null && message.hasOwnProperty("package")) + object["package"] = message["package"]; + if (message.dependency && message.dependency.length) { + object.dependency = []; + for (var j = 0; j < message.dependency.length; ++j) + object.dependency[j] = message.dependency[j]; + } + if (message.messageType && message.messageType.length) { + object.messageType = []; + for (var j = 0; j < message.messageType.length; ++j) + object.messageType[j] = $root.google.protobuf.DescriptorProto.toObject(message.messageType[j], options); + } + if (message.enumType && message.enumType.length) { + object.enumType = []; + for (var j = 0; j < message.enumType.length; ++j) + object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options); + } + if (message.service && message.service.length) { + object.service = []; + for (var j = 0; j < message.service.length; ++j) + object.service[j] = $root.google.protobuf.ServiceDescriptorProto.toObject(message.service[j], options); + } + if (message.extension && message.extension.length) { + object.extension = []; + for (var j = 0; j < message.extension.length; ++j) + object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.FileOptions.toObject(message.options, options); + if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) + object.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.toObject(message.sourceCodeInfo, options); + if (message.publicDependency && message.publicDependency.length) { + object.publicDependency = []; + for (var j = 0; j < message.publicDependency.length; ++j) + object.publicDependency[j] = message.publicDependency[j]; + } + if (message.weakDependency && message.weakDependency.length) { + object.weakDependency = []; + for (var j = 0; j < message.weakDependency.length; ++j) + object.weakDependency[j] = message.weakDependency[j]; + } + if (message.syntax != null && message.hasOwnProperty("syntax")) + object.syntax = message.syntax; + return object; + }; + + /** + * Converts this FileDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.FileDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + FileDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return FileDescriptorProto; + })(); + + protobuf.DescriptorProto = (function() { + + /** + * Properties of a DescriptorProto. + * @memberof google.protobuf + * @interface IDescriptorProto + * @property {string|null} [name] DescriptorProto name + * @property {Array.|null} [field] DescriptorProto field + * @property {Array.|null} [extension] DescriptorProto extension + * @property {Array.|null} [nestedType] DescriptorProto nestedType + * @property {Array.|null} [enumType] DescriptorProto enumType + * @property {Array.|null} [extensionRange] DescriptorProto extensionRange + * @property {Array.|null} [oneofDecl] DescriptorProto oneofDecl + * @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options + * @property {Array.|null} [reservedRange] DescriptorProto reservedRange + * @property {Array.|null} [reservedName] DescriptorProto reservedName + */ + + /** + * Constructs a new DescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a DescriptorProto. + * @implements IDescriptorProto + * @constructor + * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set + */ + function DescriptorProto(properties) { + this.field = []; + this.extension = []; + this.nestedType = []; + this.enumType = []; + this.extensionRange = []; + this.oneofDecl = []; + this.reservedRange = []; + this.reservedName = []; + 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]]; + } + + /** + * DescriptorProto name. + * @member {string} name + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.name = ""; + + /** + * DescriptorProto field. + * @member {Array.} field + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.field = $util.emptyArray; + + /** + * DescriptorProto extension. + * @member {Array.} extension + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.extension = $util.emptyArray; + + /** + * DescriptorProto nestedType. + * @member {Array.} nestedType + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.nestedType = $util.emptyArray; + + /** + * DescriptorProto enumType. + * @member {Array.} enumType + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.enumType = $util.emptyArray; + + /** + * DescriptorProto extensionRange. + * @member {Array.} extensionRange + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.extensionRange = $util.emptyArray; + + /** + * DescriptorProto oneofDecl. + * @member {Array.} oneofDecl + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.oneofDecl = $util.emptyArray; + + /** + * DescriptorProto options. + * @member {google.protobuf.IMessageOptions|null|undefined} options + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.options = null; + + /** + * DescriptorProto reservedRange. + * @member {Array.} reservedRange + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.reservedRange = $util.emptyArray; + + /** + * DescriptorProto reservedName. + * @member {Array.} reservedName + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.reservedName = $util.emptyArray; + + /** + * Creates a new DescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto} DescriptorProto instance + */ + DescriptorProto.create = function create(properties) { + return new DescriptorProto(properties); + }; + + /** + * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.field != null && message.field.length) + for (var i = 0; i < message.field.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.field[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.nestedType != null && message.nestedType.length) + for (var i = 0; i < message.nestedType.length; ++i) + $root.google.protobuf.DescriptorProto.encode(message.nestedType[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.enumType != null && message.enumType.length) + for (var i = 0; i < message.enumType.length; ++i) + $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.extensionRange != null && message.extensionRange.length) + for (var i = 0; i < message.extensionRange.length; ++i) + $root.google.protobuf.DescriptorProto.ExtensionRange.encode(message.extensionRange[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.extension != null && message.extension.length) + for (var i = 0; i < message.extension.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.MessageOptions.encode(message.options, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.oneofDecl != null && message.oneofDecl.length) + for (var i = 0; i < message.oneofDecl.length; ++i) + $root.google.protobuf.OneofDescriptorProto.encode(message.oneofDecl[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.reservedRange != null && message.reservedRange.length) + for (var i = 0; i < message.reservedRange.length; ++i) + $root.google.protobuf.DescriptorProto.ReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.reservedName != null && message.reservedName.length) + for (var i = 0; i < message.reservedName.length; ++i) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedName[i]); + return writer; + }; + + /** + * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto} DescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DescriptorProto.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.protobuf.DescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + if (!(message.field && message.field.length)) + message.field = []; + message.field.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + case 6: + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + case 3: + if (!(message.nestedType && message.nestedType.length)) + message.nestedType = []; + message.nestedType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); + break; + case 4: + if (!(message.enumType && message.enumType.length)) + message.enumType = []; + message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); + break; + case 5: + if (!(message.extensionRange && message.extensionRange.length)) + message.extensionRange = []; + message.extensionRange.push($root.google.protobuf.DescriptorProto.ExtensionRange.decode(reader, reader.uint32())); + break; + case 8: + if (!(message.oneofDecl && message.oneofDecl.length)) + message.oneofDecl = []; + message.oneofDecl.push($root.google.protobuf.OneofDescriptorProto.decode(reader, reader.uint32())); + break; + case 7: + message.options = $root.google.protobuf.MessageOptions.decode(reader, reader.uint32()); + break; + case 9: + if (!(message.reservedRange && message.reservedRange.length)) + message.reservedRange = []; + message.reservedRange.push($root.google.protobuf.DescriptorProto.ReservedRange.decode(reader, reader.uint32())); + break; + case 10: + if (!(message.reservedName && message.reservedName.length)) + message.reservedName = []; + message.reservedName.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DescriptorProto} DescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DescriptorProto message. + * @function verify + * @memberof google.protobuf.DescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.field != null && message.hasOwnProperty("field")) { + if (!Array.isArray(message.field)) + return "field: array expected"; + for (var i = 0; i < message.field.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.field[i]); + if (error) + return "field." + error; + } + } + if (message.extension != null && message.hasOwnProperty("extension")) { + if (!Array.isArray(message.extension)) + return "extension: array expected"; + for (var i = 0; i < message.extension.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); + if (error) + return "extension." + error; + } + } + if (message.nestedType != null && message.hasOwnProperty("nestedType")) { + if (!Array.isArray(message.nestedType)) + return "nestedType: array expected"; + for (var i = 0; i < message.nestedType.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.verify(message.nestedType[i]); + if (error) + return "nestedType." + error; + } + } + if (message.enumType != null && message.hasOwnProperty("enumType")) { + if (!Array.isArray(message.enumType)) + return "enumType: array expected"; + for (var i = 0; i < message.enumType.length; ++i) { + var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); + if (error) + return "enumType." + error; + } + } + if (message.extensionRange != null && message.hasOwnProperty("extensionRange")) { + if (!Array.isArray(message.extensionRange)) + return "extensionRange: array expected"; + for (var i = 0; i < message.extensionRange.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.ExtensionRange.verify(message.extensionRange[i]); + if (error) + return "extensionRange." + error; + } + } + if (message.oneofDecl != null && message.hasOwnProperty("oneofDecl")) { + if (!Array.isArray(message.oneofDecl)) + return "oneofDecl: array expected"; + for (var i = 0; i < message.oneofDecl.length; ++i) { + var error = $root.google.protobuf.OneofDescriptorProto.verify(message.oneofDecl[i]); + if (error) + return "oneofDecl." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.MessageOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.reservedRange != null && message.hasOwnProperty("reservedRange")) { + if (!Array.isArray(message.reservedRange)) + return "reservedRange: array expected"; + for (var i = 0; i < message.reservedRange.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.ReservedRange.verify(message.reservedRange[i]); + if (error) + return "reservedRange." + error; + } + } + if (message.reservedName != null && message.hasOwnProperty("reservedName")) { + if (!Array.isArray(message.reservedName)) + return "reservedName: array expected"; + for (var i = 0; i < message.reservedName.length; ++i) + if (!$util.isString(message.reservedName[i])) + return "reservedName: string[] expected"; + } + return null; + }; + + /** + * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto} DescriptorProto + */ + DescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto) + return object; + var message = new $root.google.protobuf.DescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.field) { + if (!Array.isArray(object.field)) + throw TypeError(".google.protobuf.DescriptorProto.field: array expected"); + message.field = []; + for (var i = 0; i < object.field.length; ++i) { + if (typeof object.field[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.field: object expected"); + message.field[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.field[i]); + } + } + if (object.extension) { + if (!Array.isArray(object.extension)) + throw TypeError(".google.protobuf.DescriptorProto.extension: array expected"); + message.extension = []; + for (var i = 0; i < object.extension.length; ++i) { + if (typeof object.extension[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.extension: object expected"); + message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); + } + } + if (object.nestedType) { + if (!Array.isArray(object.nestedType)) + throw TypeError(".google.protobuf.DescriptorProto.nestedType: array expected"); + message.nestedType = []; + for (var i = 0; i < object.nestedType.length; ++i) { + if (typeof object.nestedType[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.nestedType: object expected"); + message.nestedType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.nestedType[i]); + } + } + if (object.enumType) { + if (!Array.isArray(object.enumType)) + throw TypeError(".google.protobuf.DescriptorProto.enumType: array expected"); + message.enumType = []; + for (var i = 0; i < object.enumType.length; ++i) { + if (typeof object.enumType[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.enumType: object expected"); + message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]); + } + } + if (object.extensionRange) { + if (!Array.isArray(object.extensionRange)) + throw TypeError(".google.protobuf.DescriptorProto.extensionRange: array expected"); + message.extensionRange = []; + for (var i = 0; i < object.extensionRange.length; ++i) { + if (typeof object.extensionRange[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.extensionRange: object expected"); + message.extensionRange[i] = $root.google.protobuf.DescriptorProto.ExtensionRange.fromObject(object.extensionRange[i]); + } + } + if (object.oneofDecl) { + if (!Array.isArray(object.oneofDecl)) + throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: array expected"); + message.oneofDecl = []; + for (var i = 0; i < object.oneofDecl.length; ++i) { + if (typeof object.oneofDecl[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: object expected"); + message.oneofDecl[i] = $root.google.protobuf.OneofDescriptorProto.fromObject(object.oneofDecl[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.DescriptorProto.options: object expected"); + message.options = $root.google.protobuf.MessageOptions.fromObject(object.options); + } + if (object.reservedRange) { + if (!Array.isArray(object.reservedRange)) + throw TypeError(".google.protobuf.DescriptorProto.reservedRange: array expected"); + message.reservedRange = []; + for (var i = 0; i < object.reservedRange.length; ++i) { + if (typeof object.reservedRange[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.reservedRange: object expected"); + message.reservedRange[i] = $root.google.protobuf.DescriptorProto.ReservedRange.fromObject(object.reservedRange[i]); + } + } + if (object.reservedName) { + if (!Array.isArray(object.reservedName)) + throw TypeError(".google.protobuf.DescriptorProto.reservedName: array expected"); + message.reservedName = []; + for (var i = 0; i < object.reservedName.length; ++i) + message.reservedName[i] = String(object.reservedName[i]); + } + return message; + }; + + /** + * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.DescriptorProto} message DescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.field = []; + object.nestedType = []; + object.enumType = []; + object.extensionRange = []; + object.extension = []; + object.oneofDecl = []; + object.reservedRange = []; + object.reservedName = []; + } + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.field && message.field.length) { + object.field = []; + for (var j = 0; j < message.field.length; ++j) + object.field[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.field[j], options); + } + if (message.nestedType && message.nestedType.length) { + object.nestedType = []; + for (var j = 0; j < message.nestedType.length; ++j) + object.nestedType[j] = $root.google.protobuf.DescriptorProto.toObject(message.nestedType[j], options); + } + if (message.enumType && message.enumType.length) { + object.enumType = []; + for (var j = 0; j < message.enumType.length; ++j) + object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options); + } + if (message.extensionRange && message.extensionRange.length) { + object.extensionRange = []; + for (var j = 0; j < message.extensionRange.length; ++j) + object.extensionRange[j] = $root.google.protobuf.DescriptorProto.ExtensionRange.toObject(message.extensionRange[j], options); + } + if (message.extension && message.extension.length) { + object.extension = []; + for (var j = 0; j < message.extension.length; ++j) + object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.MessageOptions.toObject(message.options, options); + if (message.oneofDecl && message.oneofDecl.length) { + object.oneofDecl = []; + for (var j = 0; j < message.oneofDecl.length; ++j) + object.oneofDecl[j] = $root.google.protobuf.OneofDescriptorProto.toObject(message.oneofDecl[j], options); + } + if (message.reservedRange && message.reservedRange.length) { + object.reservedRange = []; + for (var j = 0; j < message.reservedRange.length; ++j) + object.reservedRange[j] = $root.google.protobuf.DescriptorProto.ReservedRange.toObject(message.reservedRange[j], options); + } + if (message.reservedName && message.reservedName.length) { + object.reservedName = []; + for (var j = 0; j < message.reservedName.length; ++j) + object.reservedName[j] = message.reservedName[j]; + } + return object; + }; + + /** + * Converts this DescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto + * @instance + * @returns {Object.} JSON object + */ + DescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + DescriptorProto.ExtensionRange = (function() { + + /** + * Properties of an ExtensionRange. + * @memberof google.protobuf.DescriptorProto + * @interface IExtensionRange + * @property {number|null} [start] ExtensionRange start + * @property {number|null} [end] ExtensionRange end + * @property {google.protobuf.IExtensionRangeOptions|null} [options] ExtensionRange options + */ + + /** + * Constructs a new ExtensionRange. + * @memberof google.protobuf.DescriptorProto + * @classdesc Represents an ExtensionRange. + * @implements IExtensionRange + * @constructor + * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set + */ + function ExtensionRange(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]]; + } + + /** + * ExtensionRange start. + * @member {number} start + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.start = 0; + + /** + * ExtensionRange end. + * @member {number} end + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.end = 0; + + /** + * ExtensionRange options. + * @member {google.protobuf.IExtensionRangeOptions|null|undefined} options + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.options = null; + + /** + * Creates a new ExtensionRange instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange instance + */ + ExtensionRange.create = function create(properties) { + return new ExtensionRange(properties); + }; + + /** + * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && Object.hasOwnProperty.call(message, "start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.ExtensionRangeOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRange.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.protobuf.DescriptorProto.ExtensionRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.start = reader.int32(); + break; + case 2: + message.end = reader.int32(); + break; + case 3: + message.options = $root.google.protobuf.ExtensionRangeOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExtensionRange message. + * @function verify + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExtensionRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.ExtensionRangeOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + */ + ExtensionRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto.ExtensionRange) + return object; + var message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange.options: object expected"); + message.options = $root.google.protobuf.ExtensionRangeOptions.fromObject(object.options); + } + return message; + }; + + /** + * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.ExtensionRange} message ExtensionRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExtensionRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; + object.options = null; + } + if (message.start != null && message.hasOwnProperty("start")) + object.start = message.start; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.ExtensionRangeOptions.toObject(message.options, options); + return object; + }; + + /** + * Converts this ExtensionRange to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + * @returns {Object.} JSON object + */ + ExtensionRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ExtensionRange; + })(); + + DescriptorProto.ReservedRange = (function() { + + /** + * Properties of a ReservedRange. + * @memberof google.protobuf.DescriptorProto + * @interface IReservedRange + * @property {number|null} [start] ReservedRange start + * @property {number|null} [end] ReservedRange end + */ + + /** + * Constructs a new ReservedRange. + * @memberof google.protobuf.DescriptorProto + * @classdesc Represents a ReservedRange. + * @implements IReservedRange + * @constructor + * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set + */ + function ReservedRange(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]]; + } + + /** + * ReservedRange start. + * @member {number} start + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + */ + ReservedRange.prototype.start = 0; + + /** + * ReservedRange end. + * @member {number} end + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + */ + ReservedRange.prototype.end = 0; + + /** + * Creates a new ReservedRange instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange instance + */ + ReservedRange.create = function create(properties) { + return new ReservedRange(properties); + }; + + /** + * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservedRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && Object.hasOwnProperty.call(message, "start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + return writer; + }; + + /** + * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservedRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReservedRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservedRange.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.protobuf.DescriptorProto.ReservedRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.start = reader.int32(); + break; + case 2: + message.end = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReservedRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservedRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReservedRange message. + * @function verify + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReservedRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; + + /** + * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + */ + ReservedRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto.ReservedRange) + return object; + var message = new $root.google.protobuf.DescriptorProto.ReservedRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + return message; + }; + + /** + * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.ReservedRange} message ReservedRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReservedRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; + } + if (message.start != null && message.hasOwnProperty("start")) + object.start = message.start; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + return object; + }; + + /** + * Converts this ReservedRange to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + * @returns {Object.} JSON object + */ + ReservedRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ReservedRange; + })(); + + return DescriptorProto; + })(); + + protobuf.ExtensionRangeOptions = (function() { + + /** + * Properties of an ExtensionRangeOptions. + * @memberof google.protobuf + * @interface IExtensionRangeOptions + * @property {Array.|null} [uninterpretedOption] ExtensionRangeOptions uninterpretedOption + */ + + /** + * Constructs a new ExtensionRangeOptions. + * @memberof google.protobuf + * @classdesc Represents an ExtensionRangeOptions. + * @implements IExtensionRangeOptions + * @constructor + * @param {google.protobuf.IExtensionRangeOptions=} [properties] Properties to set + */ + function ExtensionRangeOptions(properties) { + this.uninterpretedOption = []; + 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]]; + } + + /** + * ExtensionRangeOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.ExtensionRangeOptions + * @instance + */ + ExtensionRangeOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new ExtensionRangeOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.IExtensionRangeOptions=} [properties] Properties to set + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions instance + */ + ExtensionRangeOptions.create = function create(properties) { + return new ExtensionRangeOptions(properties); + }; + + /** + * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.IExtensionRangeOptions} message ExtensionRangeOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRangeOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.IExtensionRangeOptions} message ExtensionRangeOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRangeOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExtensionRangeOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRangeOptions.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.protobuf.ExtensionRangeOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRangeOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExtensionRangeOptions message. + * @function verify + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExtensionRangeOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + */ + ExtensionRangeOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ExtensionRangeOptions) + return object; + var message = new $root.google.protobuf.ExtensionRangeOptions(); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.ExtensionRangeOptions} message ExtensionRangeOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExtensionRangeOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + return object; + }; + + /** + * Converts this ExtensionRangeOptions to JSON. + * @function toJSON + * @memberof google.protobuf.ExtensionRangeOptions + * @instance + * @returns {Object.} JSON object + */ + ExtensionRangeOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ExtensionRangeOptions; + })(); + + protobuf.FieldDescriptorProto = (function() { + + /** + * Properties of a FieldDescriptorProto. + * @memberof google.protobuf + * @interface IFieldDescriptorProto + * @property {string|null} [name] FieldDescriptorProto name + * @property {number|null} [number] FieldDescriptorProto number + * @property {google.protobuf.FieldDescriptorProto.Label|null} [label] FieldDescriptorProto label + * @property {google.protobuf.FieldDescriptorProto.Type|null} [type] FieldDescriptorProto type + * @property {string|null} [typeName] FieldDescriptorProto typeName + * @property {string|null} [extendee] FieldDescriptorProto extendee + * @property {string|null} [defaultValue] FieldDescriptorProto defaultValue + * @property {number|null} [oneofIndex] FieldDescriptorProto oneofIndex + * @property {string|null} [jsonName] FieldDescriptorProto jsonName + * @property {google.protobuf.IFieldOptions|null} [options] FieldDescriptorProto options + * @property {boolean|null} [proto3Optional] FieldDescriptorProto proto3Optional + */ + + /** + * Constructs a new FieldDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a FieldDescriptorProto. + * @implements IFieldDescriptorProto + * @constructor + * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set + */ + function FieldDescriptorProto(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]]; + } + + /** + * FieldDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.name = ""; + + /** + * FieldDescriptorProto number. + * @member {number} number + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.number = 0; + + /** + * FieldDescriptorProto label. + * @member {google.protobuf.FieldDescriptorProto.Label} label + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.label = 1; + + /** + * FieldDescriptorProto type. + * @member {google.protobuf.FieldDescriptorProto.Type} type + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.type = 1; + + /** + * FieldDescriptorProto typeName. + * @member {string} typeName + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.typeName = ""; + + /** + * FieldDescriptorProto extendee. + * @member {string} extendee + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.extendee = ""; + + /** + * FieldDescriptorProto defaultValue. + * @member {string} defaultValue + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.defaultValue = ""; + + /** + * FieldDescriptorProto oneofIndex. + * @member {number} oneofIndex + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.oneofIndex = 0; + + /** + * FieldDescriptorProto jsonName. + * @member {string} jsonName + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.jsonName = ""; + + /** + * FieldDescriptorProto options. + * @member {google.protobuf.IFieldOptions|null|undefined} options + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.options = null; + + /** + * FieldDescriptorProto proto3Optional. + * @member {boolean} proto3Optional + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.proto3Optional = false; + + /** + * Creates a new FieldDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto instance + */ + FieldDescriptorProto.create = function create(properties) { + return new FieldDescriptorProto(properties); + }; + + /** + * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.extendee != null && Object.hasOwnProperty.call(message, "extendee")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.extendee); + if (message.number != null && Object.hasOwnProperty.call(message, "number")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.number); + if (message.label != null && Object.hasOwnProperty.call(message, "label")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.label); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.type); + if (message.typeName != null && Object.hasOwnProperty.call(message, "typeName")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.typeName); + if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.defaultValue); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.FieldOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.oneofIndex != null && Object.hasOwnProperty.call(message, "oneofIndex")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.oneofIndex); + if (message.jsonName != null && Object.hasOwnProperty.call(message, "jsonName")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.jsonName); + if (message.proto3Optional != null && Object.hasOwnProperty.call(message, "proto3Optional")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.proto3Optional); + return writer; + }; + + /** + * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldDescriptorProto.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.protobuf.FieldDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 3: + message.number = reader.int32(); + break; + case 4: + message.label = reader.int32(); + break; + case 5: + message.type = reader.int32(); + break; + case 6: + message.typeName = reader.string(); + break; + case 2: + message.extendee = reader.string(); + break; + case 7: + message.defaultValue = reader.string(); + break; + case 9: + message.oneofIndex = reader.int32(); + break; + case 10: + message.jsonName = reader.string(); + break; + case 8: + message.options = $root.google.protobuf.FieldOptions.decode(reader, reader.uint32()); + break; + case 17: + message.proto3Optional = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FieldDescriptorProto message. + * @function verify + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FieldDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.number != null && message.hasOwnProperty("number")) + if (!$util.isInteger(message.number)) + return "number: integer expected"; + if (message.label != null && message.hasOwnProperty("label")) + switch (message.label) { + default: + return "label: enum value expected"; + case 1: + case 2: + case 3: + break; + } + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + break; + } + if (message.typeName != null && message.hasOwnProperty("typeName")) + if (!$util.isString(message.typeName)) + return "typeName: string expected"; + if (message.extendee != null && message.hasOwnProperty("extendee")) + if (!$util.isString(message.extendee)) + return "extendee: string expected"; + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) + if (!$util.isString(message.defaultValue)) + return "defaultValue: string expected"; + if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) + if (!$util.isInteger(message.oneofIndex)) + return "oneofIndex: integer expected"; + if (message.jsonName != null && message.hasOwnProperty("jsonName")) + if (!$util.isString(message.jsonName)) + return "jsonName: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.FieldOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional")) + if (typeof message.proto3Optional !== "boolean") + return "proto3Optional: boolean expected"; + return null; + }; + + /** + * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + */ + FieldDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldDescriptorProto) + return object; + var message = new $root.google.protobuf.FieldDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.number != null) + message.number = object.number | 0; + switch (object.label) { + case "LABEL_OPTIONAL": + case 1: + message.label = 1; + break; + case "LABEL_REQUIRED": + case 2: + message.label = 2; + break; + case "LABEL_REPEATED": + case 3: + message.label = 3; + break; + } + switch (object.type) { + case "TYPE_DOUBLE": + case 1: + message.type = 1; + break; + case "TYPE_FLOAT": + case 2: + message.type = 2; + break; + case "TYPE_INT64": + case 3: + message.type = 3; + break; + case "TYPE_UINT64": + case 4: + message.type = 4; + break; + case "TYPE_INT32": + case 5: + message.type = 5; + break; + case "TYPE_FIXED64": + case 6: + message.type = 6; + break; + case "TYPE_FIXED32": + case 7: + message.type = 7; + break; + case "TYPE_BOOL": + case 8: + message.type = 8; + break; + case "TYPE_STRING": + case 9: + message.type = 9; + break; + case "TYPE_GROUP": + case 10: + message.type = 10; + break; + case "TYPE_MESSAGE": + case 11: + message.type = 11; + break; + case "TYPE_BYTES": + case 12: + message.type = 12; + break; + case "TYPE_UINT32": + case 13: + message.type = 13; + break; + case "TYPE_ENUM": + case 14: + message.type = 14; + break; + case "TYPE_SFIXED32": + case 15: + message.type = 15; + break; + case "TYPE_SFIXED64": + case 16: + message.type = 16; + break; + case "TYPE_SINT32": + case 17: + message.type = 17; + break; + case "TYPE_SINT64": + case 18: + message.type = 18; + break; + } + if (object.typeName != null) + message.typeName = String(object.typeName); + if (object.extendee != null) + message.extendee = String(object.extendee); + if (object.defaultValue != null) + message.defaultValue = String(object.defaultValue); + if (object.oneofIndex != null) + message.oneofIndex = object.oneofIndex | 0; + if (object.jsonName != null) + message.jsonName = String(object.jsonName); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.FieldOptions.fromObject(object.options); + } + if (object.proto3Optional != null) + message.proto3Optional = Boolean(object.proto3Optional); + return message; + }; + + /** + * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.FieldDescriptorProto} message FieldDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FieldDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.extendee = ""; + object.number = 0; + object.label = options.enums === String ? "LABEL_OPTIONAL" : 1; + object.type = options.enums === String ? "TYPE_DOUBLE" : 1; + object.typeName = ""; + object.defaultValue = ""; + object.options = null; + object.oneofIndex = 0; + object.jsonName = ""; + object.proto3Optional = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.extendee != null && message.hasOwnProperty("extendee")) + object.extendee = message.extendee; + if (message.number != null && message.hasOwnProperty("number")) + object.number = message.number; + if (message.label != null && message.hasOwnProperty("label")) + object.label = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Label[message.label] : message.label; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Type[message.type] : message.type; + if (message.typeName != null && message.hasOwnProperty("typeName")) + object.typeName = message.typeName; + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) + object.defaultValue = message.defaultValue; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.FieldOptions.toObject(message.options, options); + if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) + object.oneofIndex = message.oneofIndex; + if (message.jsonName != null && message.hasOwnProperty("jsonName")) + object.jsonName = message.jsonName; + if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional")) + object.proto3Optional = message.proto3Optional; + return object; + }; + + /** + * Converts this FieldDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.FieldDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + FieldDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Type enum. + * @name google.protobuf.FieldDescriptorProto.Type + * @enum {number} + * @property {number} TYPE_DOUBLE=1 TYPE_DOUBLE value + * @property {number} TYPE_FLOAT=2 TYPE_FLOAT value + * @property {number} TYPE_INT64=3 TYPE_INT64 value + * @property {number} TYPE_UINT64=4 TYPE_UINT64 value + * @property {number} TYPE_INT32=5 TYPE_INT32 value + * @property {number} TYPE_FIXED64=6 TYPE_FIXED64 value + * @property {number} TYPE_FIXED32=7 TYPE_FIXED32 value + * @property {number} TYPE_BOOL=8 TYPE_BOOL value + * @property {number} TYPE_STRING=9 TYPE_STRING value + * @property {number} TYPE_GROUP=10 TYPE_GROUP value + * @property {number} TYPE_MESSAGE=11 TYPE_MESSAGE value + * @property {number} TYPE_BYTES=12 TYPE_BYTES value + * @property {number} TYPE_UINT32=13 TYPE_UINT32 value + * @property {number} TYPE_ENUM=14 TYPE_ENUM value + * @property {number} TYPE_SFIXED32=15 TYPE_SFIXED32 value + * @property {number} TYPE_SFIXED64=16 TYPE_SFIXED64 value + * @property {number} TYPE_SINT32=17 TYPE_SINT32 value + * @property {number} TYPE_SINT64=18 TYPE_SINT64 value + */ + FieldDescriptorProto.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "TYPE_DOUBLE"] = 1; + values[valuesById[2] = "TYPE_FLOAT"] = 2; + values[valuesById[3] = "TYPE_INT64"] = 3; + values[valuesById[4] = "TYPE_UINT64"] = 4; + values[valuesById[5] = "TYPE_INT32"] = 5; + values[valuesById[6] = "TYPE_FIXED64"] = 6; + values[valuesById[7] = "TYPE_FIXED32"] = 7; + values[valuesById[8] = "TYPE_BOOL"] = 8; + values[valuesById[9] = "TYPE_STRING"] = 9; + values[valuesById[10] = "TYPE_GROUP"] = 10; + values[valuesById[11] = "TYPE_MESSAGE"] = 11; + values[valuesById[12] = "TYPE_BYTES"] = 12; + values[valuesById[13] = "TYPE_UINT32"] = 13; + values[valuesById[14] = "TYPE_ENUM"] = 14; + values[valuesById[15] = "TYPE_SFIXED32"] = 15; + values[valuesById[16] = "TYPE_SFIXED64"] = 16; + values[valuesById[17] = "TYPE_SINT32"] = 17; + values[valuesById[18] = "TYPE_SINT64"] = 18; + return values; + })(); + + /** + * Label enum. + * @name google.protobuf.FieldDescriptorProto.Label + * @enum {number} + * @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value + * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value + * @property {number} LABEL_REPEATED=3 LABEL_REPEATED value + */ + FieldDescriptorProto.Label = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "LABEL_OPTIONAL"] = 1; + values[valuesById[2] = "LABEL_REQUIRED"] = 2; + values[valuesById[3] = "LABEL_REPEATED"] = 3; + return values; + })(); + + return FieldDescriptorProto; + })(); + + protobuf.OneofDescriptorProto = (function() { + + /** + * Properties of an OneofDescriptorProto. + * @memberof google.protobuf + * @interface IOneofDescriptorProto + * @property {string|null} [name] OneofDescriptorProto name + * @property {google.protobuf.IOneofOptions|null} [options] OneofDescriptorProto options + */ + + /** + * Constructs a new OneofDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an OneofDescriptorProto. + * @implements IOneofDescriptorProto + * @constructor + * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set + */ + function OneofDescriptorProto(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]]; + } + + /** + * OneofDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.OneofDescriptorProto + * @instance + */ + OneofDescriptorProto.prototype.name = ""; + + /** + * OneofDescriptorProto options. + * @member {google.protobuf.IOneofOptions|null|undefined} options + * @memberof google.protobuf.OneofDescriptorProto + * @instance + */ + OneofDescriptorProto.prototype.options = null; + + /** + * Creates a new OneofDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto instance + */ + OneofDescriptorProto.create = function create(properties) { + return new OneofDescriptorProto(properties); + }; + + /** + * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.OneofOptions.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofDescriptorProto.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.protobuf.OneofDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.options = $root.google.protobuf.OneofOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.OneofDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FileDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + OneofDescriptorProto.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FileDescriptorProto message. + * Verifies an OneofDescriptorProto message. * @function verify - * @memberof google.protobuf.FileDescriptorProto + * @memberof google.protobuf.OneofDescriptorProto * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FileDescriptorProto.verify = function verify(message) { + OneofDescriptorProto.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message["package"] != null && message.hasOwnProperty("package")) - if (!$util.isString(message["package"])) - return "package: string expected"; - if (message.dependency != null && message.hasOwnProperty("dependency")) { - if (!Array.isArray(message.dependency)) - return "dependency: array expected"; - for (var i = 0; i < message.dependency.length; ++i) - if (!$util.isString(message.dependency[i])) - return "dependency: string[] expected"; - } - if (message.publicDependency != null && message.hasOwnProperty("publicDependency")) { - if (!Array.isArray(message.publicDependency)) - return "publicDependency: array expected"; - for (var i = 0; i < message.publicDependency.length; ++i) - if (!$util.isInteger(message.publicDependency[i])) - return "publicDependency: integer[] expected"; - } - if (message.weakDependency != null && message.hasOwnProperty("weakDependency")) { - if (!Array.isArray(message.weakDependency)) - return "weakDependency: array expected"; - for (var i = 0; i < message.weakDependency.length; ++i) - if (!$util.isInteger(message.weakDependency[i])) - return "weakDependency: integer[] expected"; - } - if (message.messageType != null && message.hasOwnProperty("messageType")) { - if (!Array.isArray(message.messageType)) - return "messageType: array expected"; - for (var i = 0; i < message.messageType.length; ++i) { - var error = $root.google.protobuf.DescriptorProto.verify(message.messageType[i]); - if (error) - return "messageType." + error; - } - } - if (message.enumType != null && message.hasOwnProperty("enumType")) { - if (!Array.isArray(message.enumType)) - return "enumType: array expected"; - for (var i = 0; i < message.enumType.length; ++i) { - var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); - if (error) - return "enumType." + error; - } - } - if (message.service != null && message.hasOwnProperty("service")) { - if (!Array.isArray(message.service)) - return "service: array expected"; - for (var i = 0; i < message.service.length; ++i) { - var error = $root.google.protobuf.ServiceDescriptorProto.verify(message.service[i]); - if (error) - return "service." + error; - } - } - if (message.extension != null && message.hasOwnProperty("extension")) { - if (!Array.isArray(message.extension)) - return "extension: array expected"; - for (var i = 0; i < message.extension.length; ++i) { - var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); - if (error) - return "extension." + error; - } - } if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.FileOptions.verify(message.options); + var error = $root.google.protobuf.OneofOptions.verify(message.options); if (error) return "options." + error; } - if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) { - var error = $root.google.protobuf.SourceCodeInfo.verify(message.sourceCodeInfo); - if (error) - return "sourceCodeInfo." + error; - } - if (message.syntax != null && message.hasOwnProperty("syntax")) - if (!$util.isString(message.syntax)) - return "syntax: string expected"; return null; }; /** - * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.FileDescriptorProto + * @memberof google.protobuf.OneofDescriptorProto * @static * @param {Object.} object Plain object - * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto - */ - FileDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FileDescriptorProto) - return object; - var message = new $root.google.protobuf.FileDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object["package"] != null) - message["package"] = String(object["package"]); - if (object.dependency) { - if (!Array.isArray(object.dependency)) - throw TypeError(".google.protobuf.FileDescriptorProto.dependency: array expected"); - message.dependency = []; - for (var i = 0; i < object.dependency.length; ++i) - message.dependency[i] = String(object.dependency[i]); - } - if (object.publicDependency) { - if (!Array.isArray(object.publicDependency)) - throw TypeError(".google.protobuf.FileDescriptorProto.publicDependency: array expected"); - message.publicDependency = []; - for (var i = 0; i < object.publicDependency.length; ++i) - message.publicDependency[i] = object.publicDependency[i] | 0; - } - if (object.weakDependency) { - if (!Array.isArray(object.weakDependency)) - throw TypeError(".google.protobuf.FileDescriptorProto.weakDependency: array expected"); - message.weakDependency = []; - for (var i = 0; i < object.weakDependency.length; ++i) - message.weakDependency[i] = object.weakDependency[i] | 0; - } - if (object.messageType) { - if (!Array.isArray(object.messageType)) - throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected"); - message.messageType = []; - for (var i = 0; i < object.messageType.length; ++i) { - if (typeof object.messageType[i] !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.messageType: object expected"); - message.messageType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.messageType[i]); - } - } - if (object.enumType) { - if (!Array.isArray(object.enumType)) - throw TypeError(".google.protobuf.FileDescriptorProto.enumType: array expected"); - message.enumType = []; - for (var i = 0; i < object.enumType.length; ++i) { - if (typeof object.enumType[i] !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.enumType: object expected"); - message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]); - } - } - if (object.service) { - if (!Array.isArray(object.service)) - throw TypeError(".google.protobuf.FileDescriptorProto.service: array expected"); - message.service = []; - for (var i = 0; i < object.service.length; ++i) { - if (typeof object.service[i] !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.service: object expected"); - message.service[i] = $root.google.protobuf.ServiceDescriptorProto.fromObject(object.service[i]); - } - } - if (object.extension) { - if (!Array.isArray(object.extension)) - throw TypeError(".google.protobuf.FileDescriptorProto.extension: array expected"); - message.extension = []; - for (var i = 0; i < object.extension.length; ++i) { - if (typeof object.extension[i] !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.extension: object expected"); - message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); - } - } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.FileOptions.fromObject(object.options); - } - if (object.sourceCodeInfo != null) { - if (typeof object.sourceCodeInfo !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.sourceCodeInfo: object expected"); - message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.fromObject(object.sourceCodeInfo); - } - if (object.syntax != null) - message.syntax = String(object.syntax); - return message; - }; - - /** - * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {google.protobuf.FileDescriptorProto} message FileDescriptorProto - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FileDescriptorProto.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.dependency = []; - object.messageType = []; - object.enumType = []; - object.service = []; - object.extension = []; - object.publicDependency = []; - object.weakDependency = []; - } - if (options.defaults) { - object.name = ""; - object["package"] = ""; - object.options = null; - object.sourceCodeInfo = null; - object.syntax = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message["package"] != null && message.hasOwnProperty("package")) - object["package"] = message["package"]; - if (message.dependency && message.dependency.length) { - object.dependency = []; - for (var j = 0; j < message.dependency.length; ++j) - object.dependency[j] = message.dependency[j]; - } - if (message.messageType && message.messageType.length) { - object.messageType = []; - for (var j = 0; j < message.messageType.length; ++j) - object.messageType[j] = $root.google.protobuf.DescriptorProto.toObject(message.messageType[j], options); - } - if (message.enumType && message.enumType.length) { - object.enumType = []; - for (var j = 0; j < message.enumType.length; ++j) - object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options); - } - if (message.service && message.service.length) { - object.service = []; - for (var j = 0; j < message.service.length; ++j) - object.service[j] = $root.google.protobuf.ServiceDescriptorProto.toObject(message.service[j], options); - } - if (message.extension && message.extension.length) { - object.extension = []; - for (var j = 0; j < message.extension.length; ++j) - object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); - } - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.FileOptions.toObject(message.options, options); - if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) - object.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.toObject(message.sourceCodeInfo, options); - if (message.publicDependency && message.publicDependency.length) { - object.publicDependency = []; - for (var j = 0; j < message.publicDependency.length; ++j) - object.publicDependency[j] = message.publicDependency[j]; + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + */ + OneofDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.OneofDescriptorProto) + return object; + var message = new $root.google.protobuf.OneofDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.OneofOptions.fromObject(object.options); } - if (message.weakDependency && message.weakDependency.length) { - object.weakDependency = []; - for (var j = 0; j < message.weakDependency.length; ++j) - object.weakDependency[j] = message.weakDependency[j]; + return message; + }; + + /** + * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.OneofDescriptorProto} message OneofDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OneofDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.options = null; } - if (message.syntax != null && message.hasOwnProperty("syntax")) - object.syntax = message.syntax; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.OneofOptions.toObject(message.options, options); return object; }; /** - * Converts this FileDescriptorProto to JSON. + * Converts this OneofDescriptorProto to JSON. * @function toJSON - * @memberof google.protobuf.FileDescriptorProto + * @memberof google.protobuf.OneofDescriptorProto * @instance * @returns {Object.} JSON object */ - FileDescriptorProto.prototype.toJSON = function toJSON() { + OneofDescriptorProto.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FileDescriptorProto; + return OneofDescriptorProto; })(); - protobuf.DescriptorProto = (function() { + protobuf.EnumDescriptorProto = (function() { /** - * Properties of a DescriptorProto. + * Properties of an EnumDescriptorProto. * @memberof google.protobuf - * @interface IDescriptorProto - * @property {string|null} [name] DescriptorProto name - * @property {Array.|null} [field] DescriptorProto field - * @property {Array.|null} [extension] DescriptorProto extension - * @property {Array.|null} [nestedType] DescriptorProto nestedType - * @property {Array.|null} [enumType] DescriptorProto enumType - * @property {Array.|null} [extensionRange] DescriptorProto extensionRange - * @property {Array.|null} [oneofDecl] DescriptorProto oneofDecl - * @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options - * @property {Array.|null} [reservedRange] DescriptorProto reservedRange - * @property {Array.|null} [reservedName] DescriptorProto reservedName + * @interface IEnumDescriptorProto + * @property {string|null} [name] EnumDescriptorProto name + * @property {Array.|null} [value] EnumDescriptorProto value + * @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options + * @property {Array.|null} [reservedRange] EnumDescriptorProto reservedRange + * @property {Array.|null} [reservedName] EnumDescriptorProto reservedName */ /** - * Constructs a new DescriptorProto. + * Constructs a new EnumDescriptorProto. * @memberof google.protobuf - * @classdesc Represents a DescriptorProto. - * @implements IDescriptorProto + * @classdesc Represents an EnumDescriptorProto. + * @implements IEnumDescriptorProto * @constructor - * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set + * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set */ - function DescriptorProto(properties) { - this.field = []; - this.extension = []; - this.nestedType = []; - this.enumType = []; - this.extensionRange = []; - this.oneofDecl = []; + function EnumDescriptorProto(properties) { + this.value = []; this.reservedRange = []; this.reservedName = []; if (properties) @@ -54989,168 +88841,113 @@ } /** - * DescriptorProto name. + * EnumDescriptorProto name. * @member {string} name - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.name = ""; - - /** - * DescriptorProto field. - * @member {Array.} field - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.field = $util.emptyArray; - - /** - * DescriptorProto extension. - * @member {Array.} extension - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.extension = $util.emptyArray; - - /** - * DescriptorProto nestedType. - * @member {Array.} nestedType - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.nestedType = $util.emptyArray; - - /** - * DescriptorProto enumType. - * @member {Array.} enumType - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.enumType = $util.emptyArray; - - /** - * DescriptorProto extensionRange. - * @member {Array.} extensionRange - * @memberof google.protobuf.DescriptorProto + * @memberof google.protobuf.EnumDescriptorProto * @instance */ - DescriptorProto.prototype.extensionRange = $util.emptyArray; + EnumDescriptorProto.prototype.name = ""; /** - * DescriptorProto oneofDecl. - * @member {Array.} oneofDecl - * @memberof google.protobuf.DescriptorProto + * EnumDescriptorProto value. + * @member {Array.} value + * @memberof google.protobuf.EnumDescriptorProto * @instance */ - DescriptorProto.prototype.oneofDecl = $util.emptyArray; + EnumDescriptorProto.prototype.value = $util.emptyArray; /** - * DescriptorProto options. - * @member {google.protobuf.IMessageOptions|null|undefined} options - * @memberof google.protobuf.DescriptorProto + * EnumDescriptorProto options. + * @member {google.protobuf.IEnumOptions|null|undefined} options + * @memberof google.protobuf.EnumDescriptorProto * @instance */ - DescriptorProto.prototype.options = null; + EnumDescriptorProto.prototype.options = null; /** - * DescriptorProto reservedRange. - * @member {Array.} reservedRange - * @memberof google.protobuf.DescriptorProto + * EnumDescriptorProto reservedRange. + * @member {Array.} reservedRange + * @memberof google.protobuf.EnumDescriptorProto * @instance */ - DescriptorProto.prototype.reservedRange = $util.emptyArray; + EnumDescriptorProto.prototype.reservedRange = $util.emptyArray; /** - * DescriptorProto reservedName. + * EnumDescriptorProto reservedName. * @member {Array.} reservedName - * @memberof google.protobuf.DescriptorProto + * @memberof google.protobuf.EnumDescriptorProto * @instance */ - DescriptorProto.prototype.reservedName = $util.emptyArray; + EnumDescriptorProto.prototype.reservedName = $util.emptyArray; /** - * Creates a new DescriptorProto instance using the specified properties. + * Creates a new EnumDescriptorProto instance using the specified properties. * @function create - * @memberof google.protobuf.DescriptorProto + * @memberof google.protobuf.EnumDescriptorProto * @static - * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.DescriptorProto} DescriptorProto instance + * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto instance */ - DescriptorProto.create = function create(properties) { - return new DescriptorProto(properties); + EnumDescriptorProto.create = function create(properties) { + return new EnumDescriptorProto(properties); }; /** - * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. * @function encode - * @memberof google.protobuf.DescriptorProto + * @memberof google.protobuf.EnumDescriptorProto * @static - * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode + * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DescriptorProto.encode = function encode(message, writer) { + EnumDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.field != null && message.field.length) - for (var i = 0; i < message.field.length; ++i) - $root.google.protobuf.FieldDescriptorProto.encode(message.field[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.nestedType != null && message.nestedType.length) - for (var i = 0; i < message.nestedType.length; ++i) - $root.google.protobuf.DescriptorProto.encode(message.nestedType[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.enumType != null && message.enumType.length) - for (var i = 0; i < message.enumType.length; ++i) - $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.extensionRange != null && message.extensionRange.length) - for (var i = 0; i < message.extensionRange.length; ++i) - $root.google.protobuf.DescriptorProto.ExtensionRange.encode(message.extensionRange[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.extension != null && message.extension.length) - for (var i = 0; i < message.extension.length; ++i) - $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.value != null && message.value.length) + for (var i = 0; i < message.value.length; ++i) + $root.google.protobuf.EnumValueDescriptorProto.encode(message.value[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.MessageOptions.encode(message.options, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.oneofDecl != null && message.oneofDecl.length) - for (var i = 0; i < message.oneofDecl.length; ++i) - $root.google.protobuf.OneofDescriptorProto.encode(message.oneofDecl[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + $root.google.protobuf.EnumOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.reservedRange != null && message.reservedRange.length) for (var i = 0; i < message.reservedRange.length; ++i) - $root.google.protobuf.DescriptorProto.ReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.reservedName != null && message.reservedName.length) for (var i = 0; i < message.reservedName.length; ++i) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedName[i]); + writer.uint32(/* id 5, wireType 2 =*/42).string(message.reservedName[i]); return writer; }; /** - * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.DescriptorProto + * @memberof google.protobuf.EnumDescriptorProto * @static - * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode + * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + EnumDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DescriptorProto message from the specified reader or buffer. + * Decodes an EnumDescriptorProto message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.DescriptorProto + * @memberof google.protobuf.EnumDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.DescriptorProto} DescriptorProto + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DescriptorProto.decode = function decode(reader, length) { + EnumDescriptorProto.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.protobuf.DescriptorProto(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -55158,44 +88955,19 @@ message.name = reader.string(); break; case 2: - if (!(message.field && message.field.length)) - message.field = []; - message.field.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); - break; - case 6: - if (!(message.extension && message.extension.length)) - message.extension = []; - message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); - break; - case 3: - if (!(message.nestedType && message.nestedType.length)) - message.nestedType = []; - message.nestedType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); - break; - case 4: - if (!(message.enumType && message.enumType.length)) - message.enumType = []; - message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); - break; - case 5: - if (!(message.extensionRange && message.extensionRange.length)) - message.extensionRange = []; - message.extensionRange.push($root.google.protobuf.DescriptorProto.ExtensionRange.decode(reader, reader.uint32())); - break; - case 8: - if (!(message.oneofDecl && message.oneofDecl.length)) - message.oneofDecl = []; - message.oneofDecl.push($root.google.protobuf.OneofDescriptorProto.decode(reader, reader.uint32())); + if (!(message.value && message.value.length)) + message.value = []; + message.value.push($root.google.protobuf.EnumValueDescriptorProto.decode(reader, reader.uint32())); break; - case 7: - message.options = $root.google.protobuf.MessageOptions.decode(reader, reader.uint32()); + case 3: + message.options = $root.google.protobuf.EnumOptions.decode(reader, reader.uint32()); break; - case 9: + case 4: if (!(message.reservedRange && message.reservedRange.length)) message.reservedRange = []; - message.reservedRange.push($root.google.protobuf.DescriptorProto.ReservedRange.decode(reader, reader.uint32())); + message.reservedRange.push($root.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(reader, reader.uint32())); break; - case 10: + case 5: if (!(message.reservedName && message.reservedName.length)) message.reservedName = []; message.reservedName.push(reader.string()); @@ -55209,91 +88981,46 @@ }; /** - * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. + * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.DescriptorProto + * @memberof google.protobuf.EnumDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.DescriptorProto} DescriptorProto + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DescriptorProto.decodeDelimited = function decodeDelimited(reader) { + EnumDescriptorProto.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DescriptorProto message. + * Verifies an EnumDescriptorProto message. * @function verify - * @memberof google.protobuf.DescriptorProto + * @memberof google.protobuf.EnumDescriptorProto * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DescriptorProto.verify = function verify(message) { + EnumDescriptorProto.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.field != null && message.hasOwnProperty("field")) { - if (!Array.isArray(message.field)) - return "field: array expected"; - for (var i = 0; i < message.field.length; ++i) { - var error = $root.google.protobuf.FieldDescriptorProto.verify(message.field[i]); - if (error) - return "field." + error; - } - } - if (message.extension != null && message.hasOwnProperty("extension")) { - if (!Array.isArray(message.extension)) - return "extension: array expected"; - for (var i = 0; i < message.extension.length; ++i) { - var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); - if (error) - return "extension." + error; - } - } - if (message.nestedType != null && message.hasOwnProperty("nestedType")) { - if (!Array.isArray(message.nestedType)) - return "nestedType: array expected"; - for (var i = 0; i < message.nestedType.length; ++i) { - var error = $root.google.protobuf.DescriptorProto.verify(message.nestedType[i]); - if (error) - return "nestedType." + error; - } - } - if (message.enumType != null && message.hasOwnProperty("enumType")) { - if (!Array.isArray(message.enumType)) - return "enumType: array expected"; - for (var i = 0; i < message.enumType.length; ++i) { - var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); - if (error) - return "enumType." + error; - } - } - if (message.extensionRange != null && message.hasOwnProperty("extensionRange")) { - if (!Array.isArray(message.extensionRange)) - return "extensionRange: array expected"; - for (var i = 0; i < message.extensionRange.length; ++i) { - var error = $root.google.protobuf.DescriptorProto.ExtensionRange.verify(message.extensionRange[i]); - if (error) - return "extensionRange." + error; - } - } - if (message.oneofDecl != null && message.hasOwnProperty("oneofDecl")) { - if (!Array.isArray(message.oneofDecl)) - return "oneofDecl: array expected"; - for (var i = 0; i < message.oneofDecl.length; ++i) { - var error = $root.google.protobuf.OneofDescriptorProto.verify(message.oneofDecl[i]); + if (message.value != null && message.hasOwnProperty("value")) { + if (!Array.isArray(message.value)) + return "value: array expected"; + for (var i = 0; i < message.value.length; ++i) { + var error = $root.google.protobuf.EnumValueDescriptorProto.verify(message.value[i]); if (error) - return "oneofDecl." + error; + return "value." + error; } } if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.MessageOptions.verify(message.options); + var error = $root.google.protobuf.EnumOptions.verify(message.options); if (error) return "options." + error; } @@ -55301,7 +89028,7 @@ if (!Array.isArray(message.reservedRange)) return "reservedRange: array expected"; for (var i = 0; i < message.reservedRange.length; ++i) { - var error = $root.google.protobuf.DescriptorProto.ReservedRange.verify(message.reservedRange[i]); + var error = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.verify(message.reservedRange[i]); if (error) return "reservedRange." + error; } @@ -55317,97 +89044,47 @@ }; /** - * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.DescriptorProto + * @memberof google.protobuf.EnumDescriptorProto * @static * @param {Object.} object Plain object - * @returns {google.protobuf.DescriptorProto} DescriptorProto + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto */ - DescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.DescriptorProto) + EnumDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumDescriptorProto) return object; - var message = new $root.google.protobuf.DescriptorProto(); + var message = new $root.google.protobuf.EnumDescriptorProto(); if (object.name != null) message.name = String(object.name); - if (object.field) { - if (!Array.isArray(object.field)) - throw TypeError(".google.protobuf.DescriptorProto.field: array expected"); - message.field = []; - for (var i = 0; i < object.field.length; ++i) { - if (typeof object.field[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.field: object expected"); - message.field[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.field[i]); - } - } - if (object.extension) { - if (!Array.isArray(object.extension)) - throw TypeError(".google.protobuf.DescriptorProto.extension: array expected"); - message.extension = []; - for (var i = 0; i < object.extension.length; ++i) { - if (typeof object.extension[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.extension: object expected"); - message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); - } - } - if (object.nestedType) { - if (!Array.isArray(object.nestedType)) - throw TypeError(".google.protobuf.DescriptorProto.nestedType: array expected"); - message.nestedType = []; - for (var i = 0; i < object.nestedType.length; ++i) { - if (typeof object.nestedType[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.nestedType: object expected"); - message.nestedType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.nestedType[i]); - } - } - if (object.enumType) { - if (!Array.isArray(object.enumType)) - throw TypeError(".google.protobuf.DescriptorProto.enumType: array expected"); - message.enumType = []; - for (var i = 0; i < object.enumType.length; ++i) { - if (typeof object.enumType[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.enumType: object expected"); - message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]); - } - } - if (object.extensionRange) { - if (!Array.isArray(object.extensionRange)) - throw TypeError(".google.protobuf.DescriptorProto.extensionRange: array expected"); - message.extensionRange = []; - for (var i = 0; i < object.extensionRange.length; ++i) { - if (typeof object.extensionRange[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.extensionRange: object expected"); - message.extensionRange[i] = $root.google.protobuf.DescriptorProto.ExtensionRange.fromObject(object.extensionRange[i]); - } - } - if (object.oneofDecl) { - if (!Array.isArray(object.oneofDecl)) - throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: array expected"); - message.oneofDecl = []; - for (var i = 0; i < object.oneofDecl.length; ++i) { - if (typeof object.oneofDecl[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: object expected"); - message.oneofDecl[i] = $root.google.protobuf.OneofDescriptorProto.fromObject(object.oneofDecl[i]); + if (object.value) { + if (!Array.isArray(object.value)) + throw TypeError(".google.protobuf.EnumDescriptorProto.value: array expected"); + message.value = []; + for (var i = 0; i < object.value.length; ++i) { + if (typeof object.value[i] !== "object") + throw TypeError(".google.protobuf.EnumDescriptorProto.value: object expected"); + message.value[i] = $root.google.protobuf.EnumValueDescriptorProto.fromObject(object.value[i]); } } if (object.options != null) { if (typeof object.options !== "object") - throw TypeError(".google.protobuf.DescriptorProto.options: object expected"); - message.options = $root.google.protobuf.MessageOptions.fromObject(object.options); + throw TypeError(".google.protobuf.EnumDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.EnumOptions.fromObject(object.options); } if (object.reservedRange) { if (!Array.isArray(object.reservedRange)) - throw TypeError(".google.protobuf.DescriptorProto.reservedRange: array expected"); + throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: array expected"); message.reservedRange = []; for (var i = 0; i < object.reservedRange.length; ++i) { if (typeof object.reservedRange[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.reservedRange: object expected"); - message.reservedRange[i] = $root.google.protobuf.DescriptorProto.ReservedRange.fromObject(object.reservedRange[i]); + throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: object expected"); + message.reservedRange[i] = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.fromObject(object.reservedRange[i]); } } if (object.reservedName) { if (!Array.isArray(object.reservedName)) - throw TypeError(".google.protobuf.DescriptorProto.reservedName: array expected"); + throw TypeError(".google.protobuf.EnumDescriptorProto.reservedName: array expected"); message.reservedName = []; for (var i = 0; i < object.reservedName.length; ++i) message.reservedName[i] = String(object.reservedName[i]); @@ -55416,25 +89093,20 @@ }; /** - * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. + * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.DescriptorProto + * @memberof google.protobuf.EnumDescriptorProto * @static - * @param {google.protobuf.DescriptorProto} message DescriptorProto + * @param {google.protobuf.EnumDescriptorProto} message EnumDescriptorProto * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DescriptorProto.toObject = function toObject(message, options) { + EnumDescriptorProto.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) { - object.field = []; - object.nestedType = []; - object.enumType = []; - object.extensionRange = []; - object.extension = []; - object.oneofDecl = []; + object.value = []; object.reservedRange = []; object.reservedName = []; } @@ -55444,42 +89116,17 @@ } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.field && message.field.length) { - object.field = []; - for (var j = 0; j < message.field.length; ++j) - object.field[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.field[j], options); - } - if (message.nestedType && message.nestedType.length) { - object.nestedType = []; - for (var j = 0; j < message.nestedType.length; ++j) - object.nestedType[j] = $root.google.protobuf.DescriptorProto.toObject(message.nestedType[j], options); - } - if (message.enumType && message.enumType.length) { - object.enumType = []; - for (var j = 0; j < message.enumType.length; ++j) - object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options); - } - if (message.extensionRange && message.extensionRange.length) { - object.extensionRange = []; - for (var j = 0; j < message.extensionRange.length; ++j) - object.extensionRange[j] = $root.google.protobuf.DescriptorProto.ExtensionRange.toObject(message.extensionRange[j], options); - } - if (message.extension && message.extension.length) { - object.extension = []; - for (var j = 0; j < message.extension.length; ++j) - object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); + if (message.value && message.value.length) { + object.value = []; + for (var j = 0; j < message.value.length; ++j) + object.value[j] = $root.google.protobuf.EnumValueDescriptorProto.toObject(message.value[j], options); } if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.MessageOptions.toObject(message.options, options); - if (message.oneofDecl && message.oneofDecl.length) { - object.oneofDecl = []; - for (var j = 0; j < message.oneofDecl.length; ++j) - object.oneofDecl[j] = $root.google.protobuf.OneofDescriptorProto.toObject(message.oneofDecl[j], options); - } + object.options = $root.google.protobuf.EnumOptions.toObject(message.options, options); if (message.reservedRange && message.reservedRange.length) { object.reservedRange = []; for (var j = 0; j < message.reservedRange.length; ++j) - object.reservedRange[j] = $root.google.protobuf.DescriptorProto.ReservedRange.toObject(message.reservedRange[j], options); + object.reservedRange[j] = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject(message.reservedRange[j], options); } if (message.reservedName && message.reservedName.length) { object.reservedName = []; @@ -55490,36 +89137,35 @@ }; /** - * Converts this DescriptorProto to JSON. + * Converts this EnumDescriptorProto to JSON. * @function toJSON - * @memberof google.protobuf.DescriptorProto + * @memberof google.protobuf.EnumDescriptorProto * @instance * @returns {Object.} JSON object */ - DescriptorProto.prototype.toJSON = function toJSON() { + EnumDescriptorProto.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - DescriptorProto.ExtensionRange = (function() { + EnumDescriptorProto.EnumReservedRange = (function() { /** - * Properties of an ExtensionRange. - * @memberof google.protobuf.DescriptorProto - * @interface IExtensionRange - * @property {number|null} [start] ExtensionRange start - * @property {number|null} [end] ExtensionRange end - * @property {google.protobuf.IExtensionRangeOptions|null} [options] ExtensionRange options + * Properties of an EnumReservedRange. + * @memberof google.protobuf.EnumDescriptorProto + * @interface IEnumReservedRange + * @property {number|null} [start] EnumReservedRange start + * @property {number|null} [end] EnumReservedRange end */ /** - * Constructs a new ExtensionRange. - * @memberof google.protobuf.DescriptorProto - * @classdesc Represents an ExtensionRange. - * @implements IExtensionRange + * Constructs a new EnumReservedRange. + * @memberof google.protobuf.EnumDescriptorProto + * @classdesc Represents an EnumReservedRange. + * @implements IEnumReservedRange * @constructor - * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange=} [properties] Properties to set */ - function ExtensionRange(properties) { + function EnumReservedRange(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -55527,90 +89173,80 @@ } /** - * ExtensionRange start. + * EnumReservedRange start. * @member {number} start - * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange * @instance */ - ExtensionRange.prototype.start = 0; + EnumReservedRange.prototype.start = 0; /** - * ExtensionRange end. + * EnumReservedRange end. * @member {number} end - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @instance - */ - ExtensionRange.prototype.end = 0; - - /** - * ExtensionRange options. - * @member {google.protobuf.IExtensionRangeOptions|null|undefined} options - * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange * @instance */ - ExtensionRange.prototype.options = null; + EnumReservedRange.prototype.end = 0; /** - * Creates a new ExtensionRange instance using the specified properties. + * Creates a new EnumReservedRange instance using the specified properties. * @function create - * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange * @static - * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set - * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange instance + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange=} [properties] Properties to set + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange instance */ - ExtensionRange.create = function create(properties) { - return new ExtensionRange(properties); + EnumReservedRange.create = function create(properties) { + return new EnumReservedRange(properties); }; /** - * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. * @function encode - * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange * @static - * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange} message EnumReservedRange message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExtensionRange.encode = function encode(message, writer) { + EnumReservedRange.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.start != null && Object.hasOwnProperty.call(message, "start")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); if (message.end != null && Object.hasOwnProperty.call(message, "end")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.ExtensionRangeOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange * @static - * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange} message EnumReservedRange message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExtensionRange.encodeDelimited = function encodeDelimited(message, writer) { + EnumReservedRange.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExtensionRange message from the specified reader or buffer. + * Decodes an EnumReservedRange message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExtensionRange.decode = function decode(reader, length) { + EnumReservedRange.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.protobuf.DescriptorProto.ExtensionRange(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto.EnumReservedRange(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -55620,9 +89256,6 @@ case 2: message.end = reader.int32(); break; - case 3: - message.options = $root.google.protobuf.ExtensionRangeOptions.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -55632,30 +89265,30 @@ }; /** - * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. + * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExtensionRange.decodeDelimited = function decodeDelimited(reader) { + EnumReservedRange.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExtensionRange message. + * Verifies an EnumReservedRange message. * @function verify - * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExtensionRange.verify = function verify(message) { + EnumReservedRange.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.start != null && message.hasOwnProperty("start")) @@ -55664,311 +89297,588 @@ if (message.end != null && message.hasOwnProperty("end")) if (!$util.isInteger(message.end)) return "end: integer expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.ExtensionRangeOptions.verify(message.options); - if (error) - return "options." + error; + return null; + }; + + /** + * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange + */ + EnumReservedRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumDescriptorProto.EnumReservedRange) + return object; + var message = new $root.google.protobuf.EnumDescriptorProto.EnumReservedRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + return message; + }; + + /** + * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.EnumReservedRange} message EnumReservedRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumReservedRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; + } + if (message.start != null && message.hasOwnProperty("start")) + object.start = message.start; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + return object; + }; + + /** + * Converts this EnumReservedRange to JSON. + * @function toJSON + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @instance + * @returns {Object.} JSON object + */ + EnumReservedRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return EnumReservedRange; + })(); + + return EnumDescriptorProto; + })(); + + protobuf.EnumValueDescriptorProto = (function() { + + /** + * Properties of an EnumValueDescriptorProto. + * @memberof google.protobuf + * @interface IEnumValueDescriptorProto + * @property {string|null} [name] EnumValueDescriptorProto name + * @property {number|null} [number] EnumValueDescriptorProto number + * @property {google.protobuf.IEnumValueOptions|null} [options] EnumValueDescriptorProto options + */ + + /** + * Constructs a new EnumValueDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an EnumValueDescriptorProto. + * @implements IEnumValueDescriptorProto + * @constructor + * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set + */ + function EnumValueDescriptorProto(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]]; + } + + /** + * EnumValueDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.name = ""; + + /** + * EnumValueDescriptorProto number. + * @member {number} number + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.number = 0; + + /** + * EnumValueDescriptorProto options. + * @member {google.protobuf.IEnumValueOptions|null|undefined} options + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.options = null; + + /** + * Creates a new EnumValueDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto instance + */ + EnumValueDescriptorProto.create = function create(properties) { + return new EnumValueDescriptorProto(properties); + }; + + /** + * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.number != null && Object.hasOwnProperty.call(message, "number")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.number); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.EnumValueOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueDescriptorProto.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.protobuf.EnumValueDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.number = reader.int32(); + break; + case 3: + message.options = $root.google.protobuf.EnumValueOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; } - return null; - }; + } + return message; + }; - /** - * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange - */ - ExtensionRange.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.DescriptorProto.ExtensionRange) - return object; - var message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); - if (object.start != null) - message.start = object.start | 0; - if (object.end != null) - message.end = object.end | 0; - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange.options: object expected"); - message.options = $root.google.protobuf.ExtensionRangeOptions.fromObject(object.options); - } - return message; - }; + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {google.protobuf.DescriptorProto.ExtensionRange} message ExtensionRange - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ExtensionRange.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.start = 0; - object.end = 0; - object.options = null; - } - if (message.start != null && message.hasOwnProperty("start")) - object.start = message.start; - if (message.end != null && message.hasOwnProperty("end")) - object.end = message.end; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.ExtensionRangeOptions.toObject(message.options, options); - return object; - }; + /** + * Verifies an EnumValueDescriptorProto message. + * @function verify + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumValueDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.number != null && message.hasOwnProperty("number")) + if (!$util.isInteger(message.number)) + return "number: integer expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.EnumValueOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; - /** - * Converts this ExtensionRange to JSON. - * @function toJSON - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @instance - * @returns {Object.} JSON object - */ - ExtensionRange.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + */ + EnumValueDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumValueDescriptorProto) + return object; + var message = new $root.google.protobuf.EnumValueDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.number != null) + message.number = object.number | 0; + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.EnumValueOptions.fromObject(object.options); + } + return message; + }; - return ExtensionRange; - })(); + /** + * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.EnumValueDescriptorProto} message EnumValueDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumValueDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.number = 0; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.number != null && message.hasOwnProperty("number")) + object.number = message.number; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.EnumValueOptions.toObject(message.options, options); + return object; + }; - DescriptorProto.ReservedRange = (function() { + /** + * Converts this EnumValueDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + EnumValueDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Properties of a ReservedRange. - * @memberof google.protobuf.DescriptorProto - * @interface IReservedRange - * @property {number|null} [start] ReservedRange start - * @property {number|null} [end] ReservedRange end - */ + return EnumValueDescriptorProto; + })(); - /** - * Constructs a new ReservedRange. - * @memberof google.protobuf.DescriptorProto - * @classdesc Represents a ReservedRange. - * @implements IReservedRange - * @constructor - * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set - */ - function ReservedRange(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]]; - } + protobuf.ServiceDescriptorProto = (function() { - /** - * ReservedRange start. - * @member {number} start - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @instance - */ - ReservedRange.prototype.start = 0; + /** + * Properties of a ServiceDescriptorProto. + * @memberof google.protobuf + * @interface IServiceDescriptorProto + * @property {string|null} [name] ServiceDescriptorProto name + * @property {Array.|null} [method] ServiceDescriptorProto method + * @property {google.protobuf.IServiceOptions|null} [options] ServiceDescriptorProto options + */ - /** - * ReservedRange end. - * @member {number} end - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @instance - */ - ReservedRange.prototype.end = 0; + /** + * Constructs a new ServiceDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a ServiceDescriptorProto. + * @implements IServiceDescriptorProto + * @constructor + * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set + */ + function ServiceDescriptorProto(properties) { + this.method = []; + 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]]; + } - /** - * Creates a new ReservedRange instance using the specified properties. - * @function create - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set - * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange instance - */ - ReservedRange.create = function create(properties) { - return new ReservedRange(properties); - }; + /** + * ServiceDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.name = ""; - /** - * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. - * @function encode - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReservedRange.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.start != null && Object.hasOwnProperty.call(message, "start")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); - if (message.end != null && Object.hasOwnProperty.call(message, "end")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); - return writer; - }; + /** + * ServiceDescriptorProto method. + * @member {Array.} method + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.method = $util.emptyArray; - /** - * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReservedRange.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * ServiceDescriptorProto options. + * @member {google.protobuf.IServiceOptions|null|undefined} options + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.options = null; - /** - * Decodes a ReservedRange message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReservedRange.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.protobuf.DescriptorProto.ReservedRange(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.start = reader.int32(); - break; - case 2: - message.end = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a new ServiceDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto instance + */ + ServiceDescriptorProto.create = function create(properties) { + return new ServiceDescriptorProto(properties); + }; - /** - * Decodes a ReservedRange message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReservedRange.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.method != null && message.method.length) + for (var i = 0; i < message.method.length; ++i) + $root.google.protobuf.MethodDescriptorProto.encode(message.method[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.ServiceOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; - /** - * Verifies a ReservedRange message. - * @function verify - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ReservedRange.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.start != null && message.hasOwnProperty("start")) - if (!$util.isInteger(message.start)) - return "start: integer expected"; - if (message.end != null && message.hasOwnProperty("end")) - if (!$util.isInteger(message.end)) - return "end: integer expected"; - return null; - }; + /** + * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange - */ - ReservedRange.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.DescriptorProto.ReservedRange) - return object; - var message = new $root.google.protobuf.DescriptorProto.ReservedRange(); - if (object.start != null) - message.start = object.start | 0; - if (object.end != null) - message.end = object.end | 0; - return message; - }; + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceDescriptorProto.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.protobuf.ServiceDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + if (!(message.method && message.method.length)) + message.method = []; + message.method.push($root.google.protobuf.MethodDescriptorProto.decode(reader, reader.uint32())); + break; + case 3: + message.options = $root.google.protobuf.ServiceOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {google.protobuf.DescriptorProto.ReservedRange} message ReservedRange - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ReservedRange.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.start = 0; - object.end = 0; + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ServiceDescriptorProto message. + * @function verify + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ServiceDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.method != null && message.hasOwnProperty("method")) { + if (!Array.isArray(message.method)) + return "method: array expected"; + for (var i = 0; i < message.method.length; ++i) { + var error = $root.google.protobuf.MethodDescriptorProto.verify(message.method[i]); + if (error) + return "method." + error; } - if (message.start != null && message.hasOwnProperty("start")) - object.start = message.start; - if (message.end != null && message.hasOwnProperty("end")) - object.end = message.end; + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.ServiceOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + */ + ServiceDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ServiceDescriptorProto) return object; - }; + var message = new $root.google.protobuf.ServiceDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.method) { + if (!Array.isArray(object.method)) + throw TypeError(".google.protobuf.ServiceDescriptorProto.method: array expected"); + message.method = []; + for (var i = 0; i < object.method.length; ++i) { + if (typeof object.method[i] !== "object") + throw TypeError(".google.protobuf.ServiceDescriptorProto.method: object expected"); + message.method[i] = $root.google.protobuf.MethodDescriptorProto.fromObject(object.method[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.ServiceDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.ServiceOptions.fromObject(object.options); + } + return message; + }; - /** - * Converts this ReservedRange to JSON. - * @function toJSON - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @instance - * @returns {Object.} JSON object - */ - ReservedRange.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.ServiceDescriptorProto} message ServiceDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ServiceDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.method = []; + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.method && message.method.length) { + object.method = []; + for (var j = 0; j < message.method.length; ++j) + object.method[j] = $root.google.protobuf.MethodDescriptorProto.toObject(message.method[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.ServiceOptions.toObject(message.options, options); + return object; + }; - return ReservedRange; - })(); + /** + * Converts this ServiceDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + ServiceDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return DescriptorProto; + return ServiceDescriptorProto; })(); - protobuf.ExtensionRangeOptions = (function() { + protobuf.MethodDescriptorProto = (function() { /** - * Properties of an ExtensionRangeOptions. + * Properties of a MethodDescriptorProto. * @memberof google.protobuf - * @interface IExtensionRangeOptions - * @property {Array.|null} [uninterpretedOption] ExtensionRangeOptions uninterpretedOption + * @interface IMethodDescriptorProto + * @property {string|null} [name] MethodDescriptorProto name + * @property {string|null} [inputType] MethodDescriptorProto inputType + * @property {string|null} [outputType] MethodDescriptorProto outputType + * @property {google.protobuf.IMethodOptions|null} [options] MethodDescriptorProto options + * @property {boolean|null} [clientStreaming] MethodDescriptorProto clientStreaming + * @property {boolean|null} [serverStreaming] MethodDescriptorProto serverStreaming */ /** - * Constructs a new ExtensionRangeOptions. + * Constructs a new MethodDescriptorProto. * @memberof google.protobuf - * @classdesc Represents an ExtensionRangeOptions. - * @implements IExtensionRangeOptions + * @classdesc Represents a MethodDescriptorProto. + * @implements IMethodDescriptorProto * @constructor - * @param {google.protobuf.IExtensionRangeOptions=} [properties] Properties to set + * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set */ - function ExtensionRangeOptions(properties) { - this.uninterpretedOption = []; + function MethodDescriptorProto(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -55976,78 +89886,140 @@ } /** - * ExtensionRangeOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.ExtensionRangeOptions + * MethodDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.MethodDescriptorProto * @instance */ - ExtensionRangeOptions.prototype.uninterpretedOption = $util.emptyArray; + MethodDescriptorProto.prototype.name = ""; /** - * Creates a new ExtensionRangeOptions instance using the specified properties. + * MethodDescriptorProto inputType. + * @member {string} inputType + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.inputType = ""; + + /** + * MethodDescriptorProto outputType. + * @member {string} outputType + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.outputType = ""; + + /** + * MethodDescriptorProto options. + * @member {google.protobuf.IMethodOptions|null|undefined} options + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.options = null; + + /** + * MethodDescriptorProto clientStreaming. + * @member {boolean} clientStreaming + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.clientStreaming = false; + + /** + * MethodDescriptorProto serverStreaming. + * @member {boolean} serverStreaming + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.serverStreaming = false; + + /** + * Creates a new MethodDescriptorProto instance using the specified properties. * @function create - * @memberof google.protobuf.ExtensionRangeOptions + * @memberof google.protobuf.MethodDescriptorProto * @static - * @param {google.protobuf.IExtensionRangeOptions=} [properties] Properties to set - * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions instance + * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto instance */ - ExtensionRangeOptions.create = function create(properties) { - return new ExtensionRangeOptions(properties); + MethodDescriptorProto.create = function create(properties) { + return new MethodDescriptorProto(properties); }; /** - * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. * @function encode - * @memberof google.protobuf.ExtensionRangeOptions + * @memberof google.protobuf.MethodDescriptorProto * @static - * @param {google.protobuf.IExtensionRangeOptions} message ExtensionRangeOptions message or plain object to encode + * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExtensionRangeOptions.encode = function encode(message, writer) { + MethodDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.inputType != null && Object.hasOwnProperty.call(message, "inputType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputType); + if (message.outputType != null && Object.hasOwnProperty.call(message, "outputType")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputType); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.MethodOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.clientStreaming != null && Object.hasOwnProperty.call(message, "clientStreaming")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.clientStreaming); + if (message.serverStreaming != null && Object.hasOwnProperty.call(message, "serverStreaming")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.serverStreaming); return writer; }; /** - * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.ExtensionRangeOptions + * @memberof google.protobuf.MethodDescriptorProto * @static - * @param {google.protobuf.IExtensionRangeOptions} message ExtensionRangeOptions message or plain object to encode + * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExtensionRangeOptions.encodeDelimited = function encodeDelimited(message, writer) { + MethodDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExtensionRangeOptions message from the specified reader or buffer. + * Decodes a MethodDescriptorProto message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.ExtensionRangeOptions + * @memberof google.protobuf.MethodDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExtensionRangeOptions.decode = function decode(reader, length) { + MethodDescriptorProto.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.protobuf.ExtensionRangeOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodDescriptorProto(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + case 1: + message.name = reader.string(); + break; + case 2: + message.inputType = reader.string(); + break; + case 3: + message.outputType = reader.string(); + break; + case 4: + message.options = $root.google.protobuf.MethodOptions.decode(reader, reader.uint32()); + break; + case 5: + message.clientStreaming = reader.bool(); + break; + case 6: + message.serverStreaming = reader.bool(); break; default: reader.skipType(tag & 7); @@ -56058,134 +90030,176 @@ }; /** - * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited. + * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.ExtensionRangeOptions + * @memberof google.protobuf.MethodDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExtensionRangeOptions.decodeDelimited = function decodeDelimited(reader) { + MethodDescriptorProto.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExtensionRangeOptions message. + * Verifies a MethodDescriptorProto message. * @function verify - * @memberof google.protobuf.ExtensionRangeOptions + * @memberof google.protobuf.MethodDescriptorProto * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExtensionRangeOptions.verify = function verify(message) { + MethodDescriptorProto.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.inputType != null && message.hasOwnProperty("inputType")) + if (!$util.isString(message.inputType)) + return "inputType: string expected"; + if (message.outputType != null && message.hasOwnProperty("outputType")) + if (!$util.isString(message.outputType)) + return "outputType: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.MethodOptions.verify(message.options); + if (error) + return "options." + error; } + if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) + if (typeof message.clientStreaming !== "boolean") + return "clientStreaming: boolean expected"; + if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) + if (typeof message.serverStreaming !== "boolean") + return "serverStreaming: boolean expected"; return null; }; /** - * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types. + * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.ExtensionRangeOptions + * @memberof google.protobuf.MethodDescriptorProto * @static * @param {Object.} object Plain object - * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto */ - ExtensionRangeOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.ExtensionRangeOptions) + MethodDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MethodDescriptorProto) return object; - var message = new $root.google.protobuf.ExtensionRangeOptions(); - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); - } + var message = new $root.google.protobuf.MethodDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.inputType != null) + message.inputType = String(object.inputType); + if (object.outputType != null) + message.outputType = String(object.outputType); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.MethodOptions.fromObject(object.options); } + if (object.clientStreaming != null) + message.clientStreaming = Boolean(object.clientStreaming); + if (object.serverStreaming != null) + message.serverStreaming = Boolean(object.serverStreaming); return message; }; /** - * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified. + * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.ExtensionRangeOptions + * @memberof google.protobuf.MethodDescriptorProto * @static - * @param {google.protobuf.ExtensionRangeOptions} message ExtensionRangeOptions + * @param {google.protobuf.MethodDescriptorProto} message MethodDescriptorProto * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExtensionRangeOptions.toObject = function toObject(message, options) { + MethodDescriptorProto.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.uninterpretedOption = []; - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + if (options.defaults) { + object.name = ""; + object.inputType = ""; + object.outputType = ""; + object.options = null; + object.clientStreaming = false; + object.serverStreaming = false; } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.inputType != null && message.hasOwnProperty("inputType")) + object.inputType = message.inputType; + if (message.outputType != null && message.hasOwnProperty("outputType")) + object.outputType = message.outputType; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.MethodOptions.toObject(message.options, options); + if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) + object.clientStreaming = message.clientStreaming; + if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) + object.serverStreaming = message.serverStreaming; return object; }; /** - * Converts this ExtensionRangeOptions to JSON. + * Converts this MethodDescriptorProto to JSON. * @function toJSON - * @memberof google.protobuf.ExtensionRangeOptions + * @memberof google.protobuf.MethodDescriptorProto * @instance * @returns {Object.} JSON object */ - ExtensionRangeOptions.prototype.toJSON = function toJSON() { + MethodDescriptorProto.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ExtensionRangeOptions; + return MethodDescriptorProto; })(); - protobuf.FieldDescriptorProto = (function() { + protobuf.FileOptions = (function() { /** - * Properties of a FieldDescriptorProto. + * Properties of a FileOptions. * @memberof google.protobuf - * @interface IFieldDescriptorProto - * @property {string|null} [name] FieldDescriptorProto name - * @property {number|null} [number] FieldDescriptorProto number - * @property {google.protobuf.FieldDescriptorProto.Label|null} [label] FieldDescriptorProto label - * @property {google.protobuf.FieldDescriptorProto.Type|null} [type] FieldDescriptorProto type - * @property {string|null} [typeName] FieldDescriptorProto typeName - * @property {string|null} [extendee] FieldDescriptorProto extendee - * @property {string|null} [defaultValue] FieldDescriptorProto defaultValue - * @property {number|null} [oneofIndex] FieldDescriptorProto oneofIndex - * @property {string|null} [jsonName] FieldDescriptorProto jsonName - * @property {google.protobuf.IFieldOptions|null} [options] FieldDescriptorProto options - * @property {boolean|null} [proto3Optional] FieldDescriptorProto proto3Optional + * @interface IFileOptions + * @property {string|null} [javaPackage] FileOptions javaPackage + * @property {string|null} [javaOuterClassname] FileOptions javaOuterClassname + * @property {boolean|null} [javaMultipleFiles] FileOptions javaMultipleFiles + * @property {boolean|null} [javaGenerateEqualsAndHash] FileOptions javaGenerateEqualsAndHash + * @property {boolean|null} [javaStringCheckUtf8] FileOptions javaStringCheckUtf8 + * @property {google.protobuf.FileOptions.OptimizeMode|null} [optimizeFor] FileOptions optimizeFor + * @property {string|null} [goPackage] FileOptions goPackage + * @property {boolean|null} [ccGenericServices] FileOptions ccGenericServices + * @property {boolean|null} [javaGenericServices] FileOptions javaGenericServices + * @property {boolean|null} [pyGenericServices] FileOptions pyGenericServices + * @property {boolean|null} [phpGenericServices] FileOptions phpGenericServices + * @property {boolean|null} [deprecated] FileOptions deprecated + * @property {boolean|null} [ccEnableArenas] FileOptions ccEnableArenas + * @property {string|null} [objcClassPrefix] FileOptions objcClassPrefix + * @property {string|null} [csharpNamespace] FileOptions csharpNamespace + * @property {string|null} [swiftPrefix] FileOptions swiftPrefix + * @property {string|null} [phpClassPrefix] FileOptions phpClassPrefix + * @property {string|null} [phpNamespace] FileOptions phpNamespace + * @property {string|null} [phpMetadataNamespace] FileOptions phpMetadataNamespace + * @property {string|null} [rubyPackage] FileOptions rubyPackage + * @property {Array.|null} [uninterpretedOption] FileOptions uninterpretedOption + * @property {Array.|null} [".google.api.resourceDefinition"] FileOptions .google.api.resourceDefinition */ /** - * Constructs a new FieldDescriptorProto. + * Constructs a new FileOptions. * @memberof google.protobuf - * @classdesc Represents a FieldDescriptorProto. - * @implements IFieldDescriptorProto + * @classdesc Represents a FileOptions. + * @implements IFileOptions * @constructor - * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set + * @param {google.protobuf.IFileOptions=} [properties] Properties to set */ - function FieldDescriptorProto(properties) { + function FileOptions(properties) { + this.uninterpretedOption = []; + this[".google.api.resourceDefinition"] = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56193,205 +90207,354 @@ } /** - * FieldDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.FieldDescriptorProto + * FileOptions javaPackage. + * @member {string} javaPackage + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaPackage = ""; + + /** + * FileOptions javaOuterClassname. + * @member {string} javaOuterClassname + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaOuterClassname = ""; + + /** + * FileOptions javaMultipleFiles. + * @member {boolean} javaMultipleFiles + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaMultipleFiles = false; + + /** + * FileOptions javaGenerateEqualsAndHash. + * @member {boolean} javaGenerateEqualsAndHash + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaGenerateEqualsAndHash = false; + + /** + * FileOptions javaStringCheckUtf8. + * @member {boolean} javaStringCheckUtf8 + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaStringCheckUtf8 = false; + + /** + * FileOptions optimizeFor. + * @member {google.protobuf.FileOptions.OptimizeMode} optimizeFor + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.optimizeFor = 1; + + /** + * FileOptions goPackage. + * @member {string} goPackage + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.goPackage = ""; + + /** + * FileOptions ccGenericServices. + * @member {boolean} ccGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.ccGenericServices = false; + + /** + * FileOptions javaGenericServices. + * @member {boolean} javaGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaGenericServices = false; + + /** + * FileOptions pyGenericServices. + * @member {boolean} pyGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.pyGenericServices = false; + + /** + * FileOptions phpGenericServices. + * @member {boolean} phpGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpGenericServices = false; + + /** + * FileOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.FileOptions * @instance */ - FieldDescriptorProto.prototype.name = ""; + FileOptions.prototype.deprecated = false; /** - * FieldDescriptorProto number. - * @member {number} number - * @memberof google.protobuf.FieldDescriptorProto + * FileOptions ccEnableArenas. + * @member {boolean} ccEnableArenas + * @memberof google.protobuf.FileOptions * @instance */ - FieldDescriptorProto.prototype.number = 0; + FileOptions.prototype.ccEnableArenas = true; /** - * FieldDescriptorProto label. - * @member {google.protobuf.FieldDescriptorProto.Label} label - * @memberof google.protobuf.FieldDescriptorProto + * FileOptions objcClassPrefix. + * @member {string} objcClassPrefix + * @memberof google.protobuf.FileOptions * @instance */ - FieldDescriptorProto.prototype.label = 1; + FileOptions.prototype.objcClassPrefix = ""; /** - * FieldDescriptorProto type. - * @member {google.protobuf.FieldDescriptorProto.Type} type - * @memberof google.protobuf.FieldDescriptorProto + * FileOptions csharpNamespace. + * @member {string} csharpNamespace + * @memberof google.protobuf.FileOptions * @instance */ - FieldDescriptorProto.prototype.type = 1; + FileOptions.prototype.csharpNamespace = ""; /** - * FieldDescriptorProto typeName. - * @member {string} typeName - * @memberof google.protobuf.FieldDescriptorProto + * FileOptions swiftPrefix. + * @member {string} swiftPrefix + * @memberof google.protobuf.FileOptions * @instance */ - FieldDescriptorProto.prototype.typeName = ""; + FileOptions.prototype.swiftPrefix = ""; /** - * FieldDescriptorProto extendee. - * @member {string} extendee - * @memberof google.protobuf.FieldDescriptorProto + * FileOptions phpClassPrefix. + * @member {string} phpClassPrefix + * @memberof google.protobuf.FileOptions * @instance */ - FieldDescriptorProto.prototype.extendee = ""; + FileOptions.prototype.phpClassPrefix = ""; /** - * FieldDescriptorProto defaultValue. - * @member {string} defaultValue - * @memberof google.protobuf.FieldDescriptorProto + * FileOptions phpNamespace. + * @member {string} phpNamespace + * @memberof google.protobuf.FileOptions * @instance */ - FieldDescriptorProto.prototype.defaultValue = ""; + FileOptions.prototype.phpNamespace = ""; /** - * FieldDescriptorProto oneofIndex. - * @member {number} oneofIndex - * @memberof google.protobuf.FieldDescriptorProto + * FileOptions phpMetadataNamespace. + * @member {string} phpMetadataNamespace + * @memberof google.protobuf.FileOptions * @instance */ - FieldDescriptorProto.prototype.oneofIndex = 0; + FileOptions.prototype.phpMetadataNamespace = ""; /** - * FieldDescriptorProto jsonName. - * @member {string} jsonName - * @memberof google.protobuf.FieldDescriptorProto + * FileOptions rubyPackage. + * @member {string} rubyPackage + * @memberof google.protobuf.FileOptions * @instance */ - FieldDescriptorProto.prototype.jsonName = ""; + FileOptions.prototype.rubyPackage = ""; /** - * FieldDescriptorProto options. - * @member {google.protobuf.IFieldOptions|null|undefined} options - * @memberof google.protobuf.FieldDescriptorProto + * FileOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.FileOptions * @instance */ - FieldDescriptorProto.prototype.options = null; + FileOptions.prototype.uninterpretedOption = $util.emptyArray; /** - * FieldDescriptorProto proto3Optional. - * @member {boolean} proto3Optional - * @memberof google.protobuf.FieldDescriptorProto + * FileOptions .google.api.resourceDefinition. + * @member {Array.} .google.api.resourceDefinition + * @memberof google.protobuf.FileOptions * @instance */ - FieldDescriptorProto.prototype.proto3Optional = false; + FileOptions.prototype[".google.api.resourceDefinition"] = $util.emptyArray; /** - * Creates a new FieldDescriptorProto instance using the specified properties. + * Creates a new FileOptions instance using the specified properties. * @function create - * @memberof google.protobuf.FieldDescriptorProto + * @memberof google.protobuf.FileOptions * @static - * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto instance + * @param {google.protobuf.IFileOptions=} [properties] Properties to set + * @returns {google.protobuf.FileOptions} FileOptions instance */ - FieldDescriptorProto.create = function create(properties) { - return new FieldDescriptorProto(properties); + FileOptions.create = function create(properties) { + return new FileOptions(properties); }; /** - * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.FieldDescriptorProto + * @memberof google.protobuf.FileOptions * @static - * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode + * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FieldDescriptorProto.encode = function encode(message, writer) { + FileOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.extendee != null && Object.hasOwnProperty.call(message, "extendee")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.extendee); - if (message.number != null && Object.hasOwnProperty.call(message, "number")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.number); - if (message.label != null && Object.hasOwnProperty.call(message, "label")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.label); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.type); - if (message.typeName != null && Object.hasOwnProperty.call(message, "typeName")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.typeName); - if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.defaultValue); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.FieldOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.oneofIndex != null && Object.hasOwnProperty.call(message, "oneofIndex")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.oneofIndex); - if (message.jsonName != null && Object.hasOwnProperty.call(message, "jsonName")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.jsonName); - if (message.proto3Optional != null && Object.hasOwnProperty.call(message, "proto3Optional")) - writer.uint32(/* id 17, wireType 0 =*/136).bool(message.proto3Optional); + if (message.javaPackage != null && Object.hasOwnProperty.call(message, "javaPackage")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.javaPackage); + if (message.javaOuterClassname != null && Object.hasOwnProperty.call(message, "javaOuterClassname")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.javaOuterClassname); + if (message.optimizeFor != null && Object.hasOwnProperty.call(message, "optimizeFor")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.optimizeFor); + if (message.javaMultipleFiles != null && Object.hasOwnProperty.call(message, "javaMultipleFiles")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.javaMultipleFiles); + if (message.goPackage != null && Object.hasOwnProperty.call(message, "goPackage")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.goPackage); + if (message.ccGenericServices != null && Object.hasOwnProperty.call(message, "ccGenericServices")) + writer.uint32(/* id 16, wireType 0 =*/128).bool(message.ccGenericServices); + if (message.javaGenericServices != null && Object.hasOwnProperty.call(message, "javaGenericServices")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.javaGenericServices); + if (message.pyGenericServices != null && Object.hasOwnProperty.call(message, "pyGenericServices")) + writer.uint32(/* id 18, wireType 0 =*/144).bool(message.pyGenericServices); + if (message.javaGenerateEqualsAndHash != null && Object.hasOwnProperty.call(message, "javaGenerateEqualsAndHash")) + writer.uint32(/* id 20, wireType 0 =*/160).bool(message.javaGenerateEqualsAndHash); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 23, wireType 0 =*/184).bool(message.deprecated); + if (message.javaStringCheckUtf8 != null && Object.hasOwnProperty.call(message, "javaStringCheckUtf8")) + writer.uint32(/* id 27, wireType 0 =*/216).bool(message.javaStringCheckUtf8); + if (message.ccEnableArenas != null && Object.hasOwnProperty.call(message, "ccEnableArenas")) + writer.uint32(/* id 31, wireType 0 =*/248).bool(message.ccEnableArenas); + if (message.objcClassPrefix != null && Object.hasOwnProperty.call(message, "objcClassPrefix")) + writer.uint32(/* id 36, wireType 2 =*/290).string(message.objcClassPrefix); + if (message.csharpNamespace != null && Object.hasOwnProperty.call(message, "csharpNamespace")) + writer.uint32(/* id 37, wireType 2 =*/298).string(message.csharpNamespace); + if (message.swiftPrefix != null && Object.hasOwnProperty.call(message, "swiftPrefix")) + writer.uint32(/* id 39, wireType 2 =*/314).string(message.swiftPrefix); + if (message.phpClassPrefix != null && Object.hasOwnProperty.call(message, "phpClassPrefix")) + writer.uint32(/* id 40, wireType 2 =*/322).string(message.phpClassPrefix); + if (message.phpNamespace != null && Object.hasOwnProperty.call(message, "phpNamespace")) + writer.uint32(/* id 41, wireType 2 =*/330).string(message.phpNamespace); + if (message.phpGenericServices != null && Object.hasOwnProperty.call(message, "phpGenericServices")) + writer.uint32(/* id 42, wireType 0 =*/336).bool(message.phpGenericServices); + if (message.phpMetadataNamespace != null && Object.hasOwnProperty.call(message, "phpMetadataNamespace")) + writer.uint32(/* id 44, wireType 2 =*/354).string(message.phpMetadataNamespace); + if (message.rubyPackage != null && Object.hasOwnProperty.call(message, "rubyPackage")) + writer.uint32(/* id 45, wireType 2 =*/362).string(message.rubyPackage); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.resourceDefinition"] != null && message[".google.api.resourceDefinition"].length) + for (var i = 0; i < message[".google.api.resourceDefinition"].length; ++i) + $root.google.api.ResourceDescriptor.encode(message[".google.api.resourceDefinition"][i], writer.uint32(/* id 1053, wireType 2 =*/8426).fork()).ldelim(); return writer; }; /** - * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.FieldDescriptorProto + * @memberof google.protobuf.FileOptions * @static - * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode + * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FieldDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + FileOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FieldDescriptorProto message from the specified reader or buffer. + * Decodes a FileOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.FieldDescriptorProto + * @memberof google.protobuf.FileOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + * @returns {google.protobuf.FileOptions} FileOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FieldDescriptorProto.decode = function decode(reader, length) { + FileOptions.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.protobuf.FieldDescriptorProto(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.javaPackage = reader.string(); break; - case 3: - message.number = reader.int32(); + case 8: + message.javaOuterClassname = reader.string(); break; - case 4: - message.label = reader.int32(); + case 10: + message.javaMultipleFiles = reader.bool(); break; - case 5: - message.type = reader.int32(); + case 20: + message.javaGenerateEqualsAndHash = reader.bool(); break; - case 6: - message.typeName = reader.string(); + case 27: + message.javaStringCheckUtf8 = reader.bool(); break; - case 2: - message.extendee = reader.string(); + case 9: + message.optimizeFor = reader.int32(); break; - case 7: - message.defaultValue = reader.string(); + case 11: + message.goPackage = reader.string(); break; - case 9: - message.oneofIndex = reader.int32(); + case 16: + message.ccGenericServices = reader.bool(); break; - case 10: - message.jsonName = reader.string(); + case 17: + message.javaGenericServices = reader.bool(); + break; + case 18: + message.pyGenericServices = reader.bool(); + break; + case 42: + message.phpGenericServices = reader.bool(); + break; + case 23: + message.deprecated = reader.bool(); + break; + case 31: + message.ccEnableArenas = reader.bool(); + break; + case 36: + message.objcClassPrefix = reader.string(); + break; + case 37: + message.csharpNamespace = reader.string(); + break; + case 39: + message.swiftPrefix = reader.string(); + break; + case 40: + message.phpClassPrefix = reader.string(); + break; + case 41: + message.phpNamespace = reader.string(); + break; + case 44: + message.phpMetadataNamespace = reader.string(); break; - case 8: - message.options = $root.google.protobuf.FieldOptions.decode(reader, reader.uint32()); + case 45: + message.rubyPackage = reader.string(); break; - case 17: - message.proto3Optional = reader.bool(); + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + case 1053: + if (!(message[".google.api.resourceDefinition"] && message[".google.api.resourceDefinition"].length)) + message[".google.api.resourceDefinition"] = []; + message[".google.api.resourceDefinition"].push($root.google.api.ResourceDescriptor.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -56402,367 +90565,352 @@ }; /** - * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a FileOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.FieldDescriptorProto + * @memberof google.protobuf.FileOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + * @returns {google.protobuf.FileOptions} FileOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FieldDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + FileOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FieldDescriptorProto message. + * Verifies a FileOptions message. * @function verify - * @memberof google.protobuf.FieldDescriptorProto + * @memberof google.protobuf.FileOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FieldDescriptorProto.verify = function verify(message) { + FileOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.number != null && message.hasOwnProperty("number")) - if (!$util.isInteger(message.number)) - return "number: integer expected"; - if (message.label != null && message.hasOwnProperty("label")) - switch (message.label) { + if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) + if (!$util.isString(message.javaPackage)) + return "javaPackage: string expected"; + if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) + if (!$util.isString(message.javaOuterClassname)) + return "javaOuterClassname: string expected"; + if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) + if (typeof message.javaMultipleFiles !== "boolean") + return "javaMultipleFiles: boolean expected"; + if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) + if (typeof message.javaGenerateEqualsAndHash !== "boolean") + return "javaGenerateEqualsAndHash: boolean expected"; + if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) + if (typeof message.javaStringCheckUtf8 !== "boolean") + return "javaStringCheckUtf8: boolean expected"; + if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) + switch (message.optimizeFor) { default: - return "label: enum value expected"; + return "optimizeFor: enum value expected"; case 1: case 2: case 3: break; } - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - break; + if (message.goPackage != null && message.hasOwnProperty("goPackage")) + if (!$util.isString(message.goPackage)) + return "goPackage: string expected"; + if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) + if (typeof message.ccGenericServices !== "boolean") + return "ccGenericServices: boolean expected"; + if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) + if (typeof message.javaGenericServices !== "boolean") + return "javaGenericServices: boolean expected"; + if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) + if (typeof message.pyGenericServices !== "boolean") + return "pyGenericServices: boolean expected"; + if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices")) + if (typeof message.phpGenericServices !== "boolean") + return "phpGenericServices: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) + if (typeof message.ccEnableArenas !== "boolean") + return "ccEnableArenas: boolean expected"; + if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) + if (!$util.isString(message.objcClassPrefix)) + return "objcClassPrefix: string expected"; + if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) + if (!$util.isString(message.csharpNamespace)) + return "csharpNamespace: string expected"; + if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) + if (!$util.isString(message.swiftPrefix)) + return "swiftPrefix: string expected"; + if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) + if (!$util.isString(message.phpClassPrefix)) + return "phpClassPrefix: string expected"; + if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) + if (!$util.isString(message.phpNamespace)) + return "phpNamespace: string expected"; + if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) + if (!$util.isString(message.phpMetadataNamespace)) + return "phpMetadataNamespace: string expected"; + if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) + if (!$util.isString(message.rubyPackage)) + return "rubyPackage: string expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.resourceDefinition"] != null && message.hasOwnProperty(".google.api.resourceDefinition")) { + if (!Array.isArray(message[".google.api.resourceDefinition"])) + return ".google.api.resourceDefinition: array expected"; + for (var i = 0; i < message[".google.api.resourceDefinition"].length; ++i) { + var error = $root.google.api.ResourceDescriptor.verify(message[".google.api.resourceDefinition"][i]); + if (error) + return ".google.api.resourceDefinition." + error; } - if (message.typeName != null && message.hasOwnProperty("typeName")) - if (!$util.isString(message.typeName)) - return "typeName: string expected"; - if (message.extendee != null && message.hasOwnProperty("extendee")) - if (!$util.isString(message.extendee)) - return "extendee: string expected"; - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) - if (!$util.isString(message.defaultValue)) - return "defaultValue: string expected"; - if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) - if (!$util.isInteger(message.oneofIndex)) - return "oneofIndex: integer expected"; - if (message.jsonName != null && message.hasOwnProperty("jsonName")) - if (!$util.isString(message.jsonName)) - return "jsonName: string expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.FieldOptions.verify(message.options); - if (error) - return "options." + error; } - if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional")) - if (typeof message.proto3Optional !== "boolean") - return "proto3Optional: boolean expected"; return null; }; /** - * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a FileOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.FieldDescriptorProto + * @memberof google.protobuf.FileOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + * @returns {google.protobuf.FileOptions} FileOptions */ - FieldDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FieldDescriptorProto) + FileOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileOptions) return object; - var message = new $root.google.protobuf.FieldDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.number != null) - message.number = object.number | 0; - switch (object.label) { - case "LABEL_OPTIONAL": - case 1: - message.label = 1; - break; - case "LABEL_REQUIRED": - case 2: - message.label = 2; - break; - case "LABEL_REPEATED": - case 3: - message.label = 3; - break; - } - switch (object.type) { - case "TYPE_DOUBLE": - case 1: - message.type = 1; - break; - case "TYPE_FLOAT": - case 2: - message.type = 2; - break; - case "TYPE_INT64": - case 3: - message.type = 3; - break; - case "TYPE_UINT64": - case 4: - message.type = 4; - break; - case "TYPE_INT32": - case 5: - message.type = 5; - break; - case "TYPE_FIXED64": - case 6: - message.type = 6; - break; - case "TYPE_FIXED32": - case 7: - message.type = 7; - break; - case "TYPE_BOOL": - case 8: - message.type = 8; - break; - case "TYPE_STRING": - case 9: - message.type = 9; - break; - case "TYPE_GROUP": - case 10: - message.type = 10; - break; - case "TYPE_MESSAGE": - case 11: - message.type = 11; - break; - case "TYPE_BYTES": - case 12: - message.type = 12; - break; - case "TYPE_UINT32": - case 13: - message.type = 13; - break; - case "TYPE_ENUM": - case 14: - message.type = 14; - break; - case "TYPE_SFIXED32": - case 15: - message.type = 15; - break; - case "TYPE_SFIXED64": - case 16: - message.type = 16; + var message = new $root.google.protobuf.FileOptions(); + if (object.javaPackage != null) + message.javaPackage = String(object.javaPackage); + if (object.javaOuterClassname != null) + message.javaOuterClassname = String(object.javaOuterClassname); + if (object.javaMultipleFiles != null) + message.javaMultipleFiles = Boolean(object.javaMultipleFiles); + if (object.javaGenerateEqualsAndHash != null) + message.javaGenerateEqualsAndHash = Boolean(object.javaGenerateEqualsAndHash); + if (object.javaStringCheckUtf8 != null) + message.javaStringCheckUtf8 = Boolean(object.javaStringCheckUtf8); + switch (object.optimizeFor) { + case "SPEED": + case 1: + message.optimizeFor = 1; break; - case "TYPE_SINT32": - case 17: - message.type = 17; + case "CODE_SIZE": + case 2: + message.optimizeFor = 2; break; - case "TYPE_SINT64": - case 18: - message.type = 18; + case "LITE_RUNTIME": + case 3: + message.optimizeFor = 3; break; } - if (object.typeName != null) - message.typeName = String(object.typeName); - if (object.extendee != null) - message.extendee = String(object.extendee); - if (object.defaultValue != null) - message.defaultValue = String(object.defaultValue); - if (object.oneofIndex != null) - message.oneofIndex = object.oneofIndex | 0; - if (object.jsonName != null) - message.jsonName = String(object.jsonName); - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.FieldOptions.fromObject(object.options); + if (object.goPackage != null) + message.goPackage = String(object.goPackage); + if (object.ccGenericServices != null) + message.ccGenericServices = Boolean(object.ccGenericServices); + if (object.javaGenericServices != null) + message.javaGenericServices = Boolean(object.javaGenericServices); + if (object.pyGenericServices != null) + message.pyGenericServices = Boolean(object.pyGenericServices); + if (object.phpGenericServices != null) + message.phpGenericServices = Boolean(object.phpGenericServices); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.ccEnableArenas != null) + message.ccEnableArenas = Boolean(object.ccEnableArenas); + if (object.objcClassPrefix != null) + message.objcClassPrefix = String(object.objcClassPrefix); + if (object.csharpNamespace != null) + message.csharpNamespace = String(object.csharpNamespace); + if (object.swiftPrefix != null) + message.swiftPrefix = String(object.swiftPrefix); + if (object.phpClassPrefix != null) + message.phpClassPrefix = String(object.phpClassPrefix); + if (object.phpNamespace != null) + message.phpNamespace = String(object.phpNamespace); + if (object.phpMetadataNamespace != null) + message.phpMetadataNamespace = String(object.phpMetadataNamespace); + if (object.rubyPackage != null) + message.rubyPackage = String(object.rubyPackage); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.resourceDefinition"]) { + if (!Array.isArray(object[".google.api.resourceDefinition"])) + throw TypeError(".google.protobuf.FileOptions..google.api.resourceDefinition: array expected"); + message[".google.api.resourceDefinition"] = []; + for (var i = 0; i < object[".google.api.resourceDefinition"].length; ++i) { + if (typeof object[".google.api.resourceDefinition"][i] !== "object") + throw TypeError(".google.protobuf.FileOptions..google.api.resourceDefinition: object expected"); + message[".google.api.resourceDefinition"][i] = $root.google.api.ResourceDescriptor.fromObject(object[".google.api.resourceDefinition"][i]); + } } - if (object.proto3Optional != null) - message.proto3Optional = Boolean(object.proto3Optional); return message; }; /** - * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. + * Creates a plain object from a FileOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.FieldDescriptorProto + * @memberof google.protobuf.FileOptions * @static - * @param {google.protobuf.FieldDescriptorProto} message FieldDescriptorProto + * @param {google.protobuf.FileOptions} message FileOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FieldDescriptorProto.toObject = function toObject(message, options) { + FileOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.uninterpretedOption = []; + object[".google.api.resourceDefinition"] = []; + } if (options.defaults) { - object.name = ""; - object.extendee = ""; - object.number = 0; - object.label = options.enums === String ? "LABEL_OPTIONAL" : 1; - object.type = options.enums === String ? "TYPE_DOUBLE" : 1; - object.typeName = ""; - object.defaultValue = ""; - object.options = null; - object.oneofIndex = 0; - object.jsonName = ""; - object.proto3Optional = false; + object.javaPackage = ""; + object.javaOuterClassname = ""; + object.optimizeFor = options.enums === String ? "SPEED" : 1; + object.javaMultipleFiles = false; + object.goPackage = ""; + object.ccGenericServices = false; + object.javaGenericServices = false; + object.pyGenericServices = false; + object.javaGenerateEqualsAndHash = false; + object.deprecated = false; + object.javaStringCheckUtf8 = false; + object.ccEnableArenas = true; + object.objcClassPrefix = ""; + object.csharpNamespace = ""; + object.swiftPrefix = ""; + object.phpClassPrefix = ""; + object.phpNamespace = ""; + object.phpGenericServices = false; + object.phpMetadataNamespace = ""; + object.rubyPackage = ""; + } + if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) + object.javaPackage = message.javaPackage; + if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) + object.javaOuterClassname = message.javaOuterClassname; + if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) + object.optimizeFor = options.enums === String ? $root.google.protobuf.FileOptions.OptimizeMode[message.optimizeFor] : message.optimizeFor; + if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) + object.javaMultipleFiles = message.javaMultipleFiles; + if (message.goPackage != null && message.hasOwnProperty("goPackage")) + object.goPackage = message.goPackage; + if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) + object.ccGenericServices = message.ccGenericServices; + if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) + object.javaGenericServices = message.javaGenericServices; + if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) + object.pyGenericServices = message.pyGenericServices; + if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) + object.javaGenerateEqualsAndHash = message.javaGenerateEqualsAndHash; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) + object.javaStringCheckUtf8 = message.javaStringCheckUtf8; + if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) + object.ccEnableArenas = message.ccEnableArenas; + if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) + object.objcClassPrefix = message.objcClassPrefix; + if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) + object.csharpNamespace = message.csharpNamespace; + if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) + object.swiftPrefix = message.swiftPrefix; + if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) + object.phpClassPrefix = message.phpClassPrefix; + if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) + object.phpNamespace = message.phpNamespace; + if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices")) + object.phpGenericServices = message.phpGenericServices; + if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) + object.phpMetadataNamespace = message.phpMetadataNamespace; + if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) + object.rubyPackage = message.rubyPackage; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.resourceDefinition"] && message[".google.api.resourceDefinition"].length) { + object[".google.api.resourceDefinition"] = []; + for (var j = 0; j < message[".google.api.resourceDefinition"].length; ++j) + object[".google.api.resourceDefinition"][j] = $root.google.api.ResourceDescriptor.toObject(message[".google.api.resourceDefinition"][j], options); } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.extendee != null && message.hasOwnProperty("extendee")) - object.extendee = message.extendee; - if (message.number != null && message.hasOwnProperty("number")) - object.number = message.number; - if (message.label != null && message.hasOwnProperty("label")) - object.label = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Label[message.label] : message.label; - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Type[message.type] : message.type; - if (message.typeName != null && message.hasOwnProperty("typeName")) - object.typeName = message.typeName; - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) - object.defaultValue = message.defaultValue; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.FieldOptions.toObject(message.options, options); - if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) - object.oneofIndex = message.oneofIndex; - if (message.jsonName != null && message.hasOwnProperty("jsonName")) - object.jsonName = message.jsonName; - if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional")) - object.proto3Optional = message.proto3Optional; return object; }; /** - * Converts this FieldDescriptorProto to JSON. - * @function toJSON - * @memberof google.protobuf.FieldDescriptorProto - * @instance - * @returns {Object.} JSON object - */ - FieldDescriptorProto.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Type enum. - * @name google.protobuf.FieldDescriptorProto.Type - * @enum {number} - * @property {number} TYPE_DOUBLE=1 TYPE_DOUBLE value - * @property {number} TYPE_FLOAT=2 TYPE_FLOAT value - * @property {number} TYPE_INT64=3 TYPE_INT64 value - * @property {number} TYPE_UINT64=4 TYPE_UINT64 value - * @property {number} TYPE_INT32=5 TYPE_INT32 value - * @property {number} TYPE_FIXED64=6 TYPE_FIXED64 value - * @property {number} TYPE_FIXED32=7 TYPE_FIXED32 value - * @property {number} TYPE_BOOL=8 TYPE_BOOL value - * @property {number} TYPE_STRING=9 TYPE_STRING value - * @property {number} TYPE_GROUP=10 TYPE_GROUP value - * @property {number} TYPE_MESSAGE=11 TYPE_MESSAGE value - * @property {number} TYPE_BYTES=12 TYPE_BYTES value - * @property {number} TYPE_UINT32=13 TYPE_UINT32 value - * @property {number} TYPE_ENUM=14 TYPE_ENUM value - * @property {number} TYPE_SFIXED32=15 TYPE_SFIXED32 value - * @property {number} TYPE_SFIXED64=16 TYPE_SFIXED64 value - * @property {number} TYPE_SINT32=17 TYPE_SINT32 value - * @property {number} TYPE_SINT64=18 TYPE_SINT64 value - */ - FieldDescriptorProto.Type = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[1] = "TYPE_DOUBLE"] = 1; - values[valuesById[2] = "TYPE_FLOAT"] = 2; - values[valuesById[3] = "TYPE_INT64"] = 3; - values[valuesById[4] = "TYPE_UINT64"] = 4; - values[valuesById[5] = "TYPE_INT32"] = 5; - values[valuesById[6] = "TYPE_FIXED64"] = 6; - values[valuesById[7] = "TYPE_FIXED32"] = 7; - values[valuesById[8] = "TYPE_BOOL"] = 8; - values[valuesById[9] = "TYPE_STRING"] = 9; - values[valuesById[10] = "TYPE_GROUP"] = 10; - values[valuesById[11] = "TYPE_MESSAGE"] = 11; - values[valuesById[12] = "TYPE_BYTES"] = 12; - values[valuesById[13] = "TYPE_UINT32"] = 13; - values[valuesById[14] = "TYPE_ENUM"] = 14; - values[valuesById[15] = "TYPE_SFIXED32"] = 15; - values[valuesById[16] = "TYPE_SFIXED64"] = 16; - values[valuesById[17] = "TYPE_SINT32"] = 17; - values[valuesById[18] = "TYPE_SINT64"] = 18; - return values; - })(); + * Converts this FileOptions to JSON. + * @function toJSON + * @memberof google.protobuf.FileOptions + * @instance + * @returns {Object.} JSON object + */ + FileOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Label enum. - * @name google.protobuf.FieldDescriptorProto.Label + * OptimizeMode enum. + * @name google.protobuf.FileOptions.OptimizeMode * @enum {number} - * @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value - * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value - * @property {number} LABEL_REPEATED=3 LABEL_REPEATED value + * @property {number} SPEED=1 SPEED value + * @property {number} CODE_SIZE=2 CODE_SIZE value + * @property {number} LITE_RUNTIME=3 LITE_RUNTIME value */ - FieldDescriptorProto.Label = (function() { + FileOptions.OptimizeMode = (function() { var valuesById = {}, values = Object.create(valuesById); - values[valuesById[1] = "LABEL_OPTIONAL"] = 1; - values[valuesById[2] = "LABEL_REQUIRED"] = 2; - values[valuesById[3] = "LABEL_REPEATED"] = 3; + values[valuesById[1] = "SPEED"] = 1; + values[valuesById[2] = "CODE_SIZE"] = 2; + values[valuesById[3] = "LITE_RUNTIME"] = 3; return values; })(); - return FieldDescriptorProto; + return FileOptions; })(); - protobuf.OneofDescriptorProto = (function() { + protobuf.MessageOptions = (function() { /** - * Properties of an OneofDescriptorProto. + * Properties of a MessageOptions. * @memberof google.protobuf - * @interface IOneofDescriptorProto - * @property {string|null} [name] OneofDescriptorProto name - * @property {google.protobuf.IOneofOptions|null} [options] OneofDescriptorProto options + * @interface IMessageOptions + * @property {boolean|null} [messageSetWireFormat] MessageOptions messageSetWireFormat + * @property {boolean|null} [noStandardDescriptorAccessor] MessageOptions noStandardDescriptorAccessor + * @property {boolean|null} [deprecated] MessageOptions deprecated + * @property {boolean|null} [mapEntry] MessageOptions mapEntry + * @property {Array.|null} [uninterpretedOption] MessageOptions uninterpretedOption + * @property {google.api.IResourceDescriptor|null} [".google.api.resource"] MessageOptions .google.api.resource */ /** - * Constructs a new OneofDescriptorProto. + * Constructs a new MessageOptions. * @memberof google.protobuf - * @classdesc Represents an OneofDescriptorProto. - * @implements IOneofDescriptorProto + * @classdesc Represents a MessageOptions. + * @implements IMessageOptions * @constructor - * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set + * @param {google.protobuf.IMessageOptions=} [properties] Properties to set */ - function OneofDescriptorProto(properties) { + function MessageOptions(properties) { + this.uninterpretedOption = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56770,88 +90918,143 @@ } /** - * OneofDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.OneofDescriptorProto + * MessageOptions messageSetWireFormat. + * @member {boolean} messageSetWireFormat + * @memberof google.protobuf.MessageOptions * @instance */ - OneofDescriptorProto.prototype.name = ""; + MessageOptions.prototype.messageSetWireFormat = false; /** - * OneofDescriptorProto options. - * @member {google.protobuf.IOneofOptions|null|undefined} options - * @memberof google.protobuf.OneofDescriptorProto + * MessageOptions noStandardDescriptorAccessor. + * @member {boolean} noStandardDescriptorAccessor + * @memberof google.protobuf.MessageOptions * @instance */ - OneofDescriptorProto.prototype.options = null; + MessageOptions.prototype.noStandardDescriptorAccessor = false; /** - * Creates a new OneofDescriptorProto instance using the specified properties. + * MessageOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.deprecated = false; + + /** + * MessageOptions mapEntry. + * @member {boolean} mapEntry + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.mapEntry = false; + + /** + * MessageOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * MessageOptions .google.api.resource. + * @member {google.api.IResourceDescriptor|null|undefined} .google.api.resource + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype[".google.api.resource"] = null; + + /** + * Creates a new MessageOptions instance using the specified properties. * @function create - * @memberof google.protobuf.OneofDescriptorProto + * @memberof google.protobuf.MessageOptions * @static - * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto instance + * @param {google.protobuf.IMessageOptions=} [properties] Properties to set + * @returns {google.protobuf.MessageOptions} MessageOptions instance */ - OneofDescriptorProto.create = function create(properties) { - return new OneofDescriptorProto(properties); + MessageOptions.create = function create(properties) { + return new MessageOptions(properties); }; /** - * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.OneofDescriptorProto + * @memberof google.protobuf.MessageOptions * @static - * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode + * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OneofDescriptorProto.encode = function encode(message, writer) { + MessageOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.OneofOptions.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.messageSetWireFormat != null && Object.hasOwnProperty.call(message, "messageSetWireFormat")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.messageSetWireFormat); + if (message.noStandardDescriptorAccessor != null && Object.hasOwnProperty.call(message, "noStandardDescriptorAccessor")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.noStandardDescriptorAccessor); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.mapEntry != null && Object.hasOwnProperty.call(message, "mapEntry")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.resource"] != null && Object.hasOwnProperty.call(message, ".google.api.resource")) + $root.google.api.ResourceDescriptor.encode(message[".google.api.resource"], writer.uint32(/* id 1053, wireType 2 =*/8426).fork()).ldelim(); return writer; }; /** - * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.OneofDescriptorProto + * @memberof google.protobuf.MessageOptions * @static - * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode + * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OneofDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + MessageOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * Decodes a MessageOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.OneofDescriptorProto + * @memberof google.protobuf.MessageOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + * @returns {google.protobuf.MessageOptions} MessageOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OneofDescriptorProto.decode = function decode(reader, length) { + MessageOptions.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.protobuf.OneofDescriptorProto(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MessageOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.messageSetWireFormat = reader.bool(); break; case 2: - message.options = $root.google.protobuf.OneofOptions.decode(reader, reader.uint32()); + message.noStandardDescriptorAccessor = reader.bool(); + break; + case 3: + message.deprecated = reader.bool(); + break; + case 7: + message.mapEntry = reader.bool(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + case 1053: + message[".google.api.resource"] = $root.google.api.ResourceDescriptor.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -56862,128 +91065,181 @@ }; /** - * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a MessageOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.OneofDescriptorProto + * @memberof google.protobuf.MessageOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + * @returns {google.protobuf.MessageOptions} MessageOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OneofDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + MessageOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an OneofDescriptorProto message. + * Verifies a MessageOptions message. * @function verify - * @memberof google.protobuf.OneofDescriptorProto + * @memberof google.protobuf.MessageOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - OneofDescriptorProto.verify = function verify(message) { + MessageOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.OneofOptions.verify(message.options); + if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) + if (typeof message.messageSetWireFormat !== "boolean") + return "messageSetWireFormat: boolean expected"; + if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) + if (typeof message.noStandardDescriptorAccessor !== "boolean") + return "noStandardDescriptorAccessor: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) + if (typeof message.mapEntry !== "boolean") + return "mapEntry: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.resource"] != null && message.hasOwnProperty(".google.api.resource")) { + var error = $root.google.api.ResourceDescriptor.verify(message[".google.api.resource"]); if (error) - return "options." + error; + return ".google.api.resource." + error; } return null; }; /** - * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.OneofDescriptorProto + * @memberof google.protobuf.MessageOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + * @returns {google.protobuf.MessageOptions} MessageOptions */ - OneofDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.OneofDescriptorProto) + MessageOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MessageOptions) return object; - var message = new $root.google.protobuf.OneofDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.OneofOptions.fromObject(object.options); + var message = new $root.google.protobuf.MessageOptions(); + if (object.messageSetWireFormat != null) + message.messageSetWireFormat = Boolean(object.messageSetWireFormat); + if (object.noStandardDescriptorAccessor != null) + message.noStandardDescriptorAccessor = Boolean(object.noStandardDescriptorAccessor); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.mapEntry != null) + message.mapEntry = Boolean(object.mapEntry); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.resource"] != null) { + if (typeof object[".google.api.resource"] !== "object") + throw TypeError(".google.protobuf.MessageOptions..google.api.resource: object expected"); + message[".google.api.resource"] = $root.google.api.ResourceDescriptor.fromObject(object[".google.api.resource"]); } return message; }; /** - * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. + * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.OneofDescriptorProto + * @memberof google.protobuf.MessageOptions * @static - * @param {google.protobuf.OneofDescriptorProto} message OneofDescriptorProto + * @param {google.protobuf.MessageOptions} message MessageOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - OneofDescriptorProto.toObject = function toObject(message, options) { + MessageOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; if (options.defaults) { - object.name = ""; - object.options = null; + object.messageSetWireFormat = false; + object.noStandardDescriptorAccessor = false; + object.deprecated = false; + object.mapEntry = false; + object[".google.api.resource"] = null; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.OneofOptions.toObject(message.options, options); + if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) + object.messageSetWireFormat = message.messageSetWireFormat; + if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) + object.noStandardDescriptorAccessor = message.noStandardDescriptorAccessor; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) + object.mapEntry = message.mapEntry; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.resource"] != null && message.hasOwnProperty(".google.api.resource")) + object[".google.api.resource"] = $root.google.api.ResourceDescriptor.toObject(message[".google.api.resource"], options); return object; }; /** - * Converts this OneofDescriptorProto to JSON. + * Converts this MessageOptions to JSON. * @function toJSON - * @memberof google.protobuf.OneofDescriptorProto + * @memberof google.protobuf.MessageOptions * @instance * @returns {Object.} JSON object */ - OneofDescriptorProto.prototype.toJSON = function toJSON() { + MessageOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return OneofDescriptorProto; + return MessageOptions; })(); - protobuf.EnumDescriptorProto = (function() { + protobuf.FieldOptions = (function() { /** - * Properties of an EnumDescriptorProto. + * Properties of a FieldOptions. * @memberof google.protobuf - * @interface IEnumDescriptorProto - * @property {string|null} [name] EnumDescriptorProto name - * @property {Array.|null} [value] EnumDescriptorProto value - * @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options - * @property {Array.|null} [reservedRange] EnumDescriptorProto reservedRange - * @property {Array.|null} [reservedName] EnumDescriptorProto reservedName + * @interface IFieldOptions + * @property {google.protobuf.FieldOptions.CType|null} [ctype] FieldOptions ctype + * @property {boolean|null} [packed] FieldOptions packed + * @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype + * @property {boolean|null} [lazy] FieldOptions lazy + * @property {boolean|null} [deprecated] FieldOptions deprecated + * @property {boolean|null} [weak] FieldOptions weak + * @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption + * @property {Array.|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior + * @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference */ /** - * Constructs a new EnumDescriptorProto. + * Constructs a new FieldOptions. * @memberof google.protobuf - * @classdesc Represents an EnumDescriptorProto. - * @implements IEnumDescriptorProto + * @classdesc Represents a FieldOptions. + * @implements IFieldOptions * @constructor - * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set + * @param {google.protobuf.IFieldOptions=} [properties] Properties to set */ - function EnumDescriptorProto(properties) { - this.value = []; - this.reservedRange = []; - this.reservedName = []; + function FieldOptions(properties) { + this.uninterpretedOption = []; + this[".google.api.fieldBehavior"] = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56991,136 +91247,193 @@ } /** - * EnumDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.EnumDescriptorProto + * FieldOptions ctype. + * @member {google.protobuf.FieldOptions.CType} ctype + * @memberof google.protobuf.FieldOptions * @instance */ - EnumDescriptorProto.prototype.name = ""; + FieldOptions.prototype.ctype = 0; /** - * EnumDescriptorProto value. - * @member {Array.} value - * @memberof google.protobuf.EnumDescriptorProto + * FieldOptions packed. + * @member {boolean} packed + * @memberof google.protobuf.FieldOptions * @instance */ - EnumDescriptorProto.prototype.value = $util.emptyArray; + FieldOptions.prototype.packed = false; /** - * EnumDescriptorProto options. - * @member {google.protobuf.IEnumOptions|null|undefined} options - * @memberof google.protobuf.EnumDescriptorProto + * FieldOptions jstype. + * @member {google.protobuf.FieldOptions.JSType} jstype + * @memberof google.protobuf.FieldOptions * @instance */ - EnumDescriptorProto.prototype.options = null; + FieldOptions.prototype.jstype = 0; /** - * EnumDescriptorProto reservedRange. - * @member {Array.} reservedRange - * @memberof google.protobuf.EnumDescriptorProto + * FieldOptions lazy. + * @member {boolean} lazy + * @memberof google.protobuf.FieldOptions * @instance */ - EnumDescriptorProto.prototype.reservedRange = $util.emptyArray; + FieldOptions.prototype.lazy = false; /** - * EnumDescriptorProto reservedName. - * @member {Array.} reservedName - * @memberof google.protobuf.EnumDescriptorProto + * FieldOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.FieldOptions * @instance */ - EnumDescriptorProto.prototype.reservedName = $util.emptyArray; + FieldOptions.prototype.deprecated = false; /** - * Creates a new EnumDescriptorProto instance using the specified properties. + * FieldOptions weak. + * @member {boolean} weak + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.weak = false; + + /** + * FieldOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * FieldOptions .google.api.fieldBehavior. + * @member {Array.} .google.api.fieldBehavior + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".google.api.fieldBehavior"] = $util.emptyArray; + + /** + * FieldOptions .google.api.resourceReference. + * @member {google.api.IResourceReference|null|undefined} .google.api.resourceReference + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".google.api.resourceReference"] = null; + + /** + * Creates a new FieldOptions instance using the specified properties. * @function create - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.protobuf.FieldOptions * @static - * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto instance + * @param {google.protobuf.IFieldOptions=} [properties] Properties to set + * @returns {google.protobuf.FieldOptions} FieldOptions instance */ - EnumDescriptorProto.create = function create(properties) { - return new EnumDescriptorProto(properties); + FieldOptions.create = function create(properties) { + return new FieldOptions(properties); }; /** - * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.protobuf.FieldOptions * @static - * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode + * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumDescriptorProto.encode = function encode(message, writer) { + FieldOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.value != null && message.value.length) - for (var i = 0; i < message.value.length; ++i) - $root.google.protobuf.EnumValueDescriptorProto.encode(message.value[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.EnumOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.reservedRange != null && message.reservedRange.length) - for (var i = 0; i < message.reservedRange.length; ++i) - $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.reservedName != null && message.reservedName.length) - for (var i = 0; i < message.reservedName.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.reservedName[i]); + if (message.ctype != null && Object.hasOwnProperty.call(message, "ctype")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.ctype); + if (message.packed != null && Object.hasOwnProperty.call(message, "packed")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.packed); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.lazy != null && Object.hasOwnProperty.call(message, "lazy")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.lazy); + if (message.jstype != null && Object.hasOwnProperty.call(message, "jstype")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); + if (message.weak != null && Object.hasOwnProperty.call(message, "weak")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.fieldBehavior"] != null && message[".google.api.fieldBehavior"].length) { + writer.uint32(/* id 1052, wireType 2 =*/8418).fork(); + for (var i = 0; i < message[".google.api.fieldBehavior"].length; ++i) + writer.int32(message[".google.api.fieldBehavior"][i]); + writer.ldelim(); + } + if (message[".google.api.resourceReference"] != null && Object.hasOwnProperty.call(message, ".google.api.resourceReference")) + $root.google.api.ResourceReference.encode(message[".google.api.resourceReference"], writer.uint32(/* id 1055, wireType 2 =*/8442).fork()).ldelim(); return writer; }; /** - * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.protobuf.FieldOptions * @static - * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode + * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + FieldOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EnumDescriptorProto message from the specified reader or buffer. + * Decodes a FieldOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.protobuf.FieldOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + * @returns {google.protobuf.FieldOptions} FieldOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnumDescriptorProto.decode = function decode(reader, length) { + FieldOptions.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.protobuf.EnumDescriptorProto(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.ctype = reader.int32(); break; case 2: - if (!(message.value && message.value.length)) - message.value = []; - message.value.push($root.google.protobuf.EnumValueDescriptorProto.decode(reader, reader.uint32())); + message.packed = reader.bool(); + break; + case 6: + message.jstype = reader.int32(); + break; + case 5: + message.lazy = reader.bool(); break; case 3: - message.options = $root.google.protobuf.EnumOptions.decode(reader, reader.uint32()); + message.deprecated = reader.bool(); break; - case 4: - if (!(message.reservedRange && message.reservedRange.length)) - message.reservedRange = []; - message.reservedRange.push($root.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(reader, reader.uint32())); + case 10: + message.weak = reader.bool(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + case 1052: + if (!(message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length)) + message[".google.api.fieldBehavior"] = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message[".google.api.fieldBehavior"].push(reader.int32()); + } else + message[".google.api.fieldBehavior"].push(reader.int32()); break; - case 5: - if (!(message.reservedName && message.reservedName.length)) - message.reservedName = []; - message.reservedName.push(reader.string()); + case 1055: + message[".google.api.resourceReference"] = $root.google.api.ResourceReference.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -57131,405 +91444,312 @@ }; /** - * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a FieldOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.protobuf.FieldOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + * @returns {google.protobuf.FieldOptions} FieldOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnumDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + FieldOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EnumDescriptorProto message. + * Verifies a FieldOptions message. * @function verify - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.protobuf.FieldOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnumDescriptorProto.verify = function verify(message) { + FieldOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.value != null && message.hasOwnProperty("value")) { - if (!Array.isArray(message.value)) - return "value: array expected"; - for (var i = 0; i < message.value.length; ++i) { - var error = $root.google.protobuf.EnumValueDescriptorProto.verify(message.value[i]); - if (error) - return "value." + error; + if (message.ctype != null && message.hasOwnProperty("ctype")) + switch (message.ctype) { + default: + return "ctype: enum value expected"; + case 0: + case 1: + case 2: + break; } - } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.EnumOptions.verify(message.options); - if (error) - return "options." + error; - } - if (message.reservedRange != null && message.hasOwnProperty("reservedRange")) { - if (!Array.isArray(message.reservedRange)) - return "reservedRange: array expected"; - for (var i = 0; i < message.reservedRange.length; ++i) { - var error = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.verify(message.reservedRange[i]); + if (message.packed != null && message.hasOwnProperty("packed")) + if (typeof message.packed !== "boolean") + return "packed: boolean expected"; + if (message.jstype != null && message.hasOwnProperty("jstype")) + switch (message.jstype) { + default: + return "jstype: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.lazy != null && message.hasOwnProperty("lazy")) + if (typeof message.lazy !== "boolean") + return "lazy: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.weak != null && message.hasOwnProperty("weak")) + if (typeof message.weak !== "boolean") + return "weak: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); if (error) - return "reservedRange." + error; + return "uninterpretedOption." + error; } } - if (message.reservedName != null && message.hasOwnProperty("reservedName")) { - if (!Array.isArray(message.reservedName)) - return "reservedName: array expected"; - for (var i = 0; i < message.reservedName.length; ++i) - if (!$util.isString(message.reservedName[i])) - return "reservedName: string[] expected"; + if (message[".google.api.fieldBehavior"] != null && message.hasOwnProperty(".google.api.fieldBehavior")) { + if (!Array.isArray(message[".google.api.fieldBehavior"])) + return ".google.api.fieldBehavior: array expected"; + for (var i = 0; i < message[".google.api.fieldBehavior"].length; ++i) + switch (message[".google.api.fieldBehavior"][i]) { + default: + return ".google.api.fieldBehavior: enum value[] expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + } + if (message[".google.api.resourceReference"] != null && message.hasOwnProperty(".google.api.resourceReference")) { + var error = $root.google.api.ResourceReference.verify(message[".google.api.resourceReference"]); + if (error) + return ".google.api.resourceReference." + error; } return null; }; /** - * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.protobuf.FieldOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + * @returns {google.protobuf.FieldOptions} FieldOptions */ - EnumDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.EnumDescriptorProto) + FieldOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldOptions) return object; - var message = new $root.google.protobuf.EnumDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.value) { - if (!Array.isArray(object.value)) - throw TypeError(".google.protobuf.EnumDescriptorProto.value: array expected"); - message.value = []; - for (var i = 0; i < object.value.length; ++i) { - if (typeof object.value[i] !== "object") - throw TypeError(".google.protobuf.EnumDescriptorProto.value: object expected"); - message.value[i] = $root.google.protobuf.EnumValueDescriptorProto.fromObject(object.value[i]); - } + var message = new $root.google.protobuf.FieldOptions(); + switch (object.ctype) { + case "STRING": + case 0: + message.ctype = 0; + break; + case "CORD": + case 1: + message.ctype = 1; + break; + case "STRING_PIECE": + case 2: + message.ctype = 2; + break; } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.EnumDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.EnumOptions.fromObject(object.options); + if (object.packed != null) + message.packed = Boolean(object.packed); + switch (object.jstype) { + case "JS_NORMAL": + case 0: + message.jstype = 0; + break; + case "JS_STRING": + case 1: + message.jstype = 1; + break; + case "JS_NUMBER": + case 2: + message.jstype = 2; + break; } - if (object.reservedRange) { - if (!Array.isArray(object.reservedRange)) - throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: array expected"); - message.reservedRange = []; - for (var i = 0; i < object.reservedRange.length; ++i) { - if (typeof object.reservedRange[i] !== "object") - throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: object expected"); - message.reservedRange[i] = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.fromObject(object.reservedRange[i]); + if (object.lazy != null) + message.lazy = Boolean(object.lazy); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.weak != null) + message.weak = Boolean(object.weak); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); } } - if (object.reservedName) { - if (!Array.isArray(object.reservedName)) - throw TypeError(".google.protobuf.EnumDescriptorProto.reservedName: array expected"); - message.reservedName = []; - for (var i = 0; i < object.reservedName.length; ++i) - message.reservedName[i] = String(object.reservedName[i]); + if (object[".google.api.fieldBehavior"]) { + if (!Array.isArray(object[".google.api.fieldBehavior"])) + throw TypeError(".google.protobuf.FieldOptions..google.api.fieldBehavior: array expected"); + message[".google.api.fieldBehavior"] = []; + for (var i = 0; i < object[".google.api.fieldBehavior"].length; ++i) + switch (object[".google.api.fieldBehavior"][i]) { + default: + case "FIELD_BEHAVIOR_UNSPECIFIED": + case 0: + message[".google.api.fieldBehavior"][i] = 0; + break; + case "OPTIONAL": + case 1: + message[".google.api.fieldBehavior"][i] = 1; + break; + case "REQUIRED": + case 2: + message[".google.api.fieldBehavior"][i] = 2; + break; + case "OUTPUT_ONLY": + case 3: + message[".google.api.fieldBehavior"][i] = 3; + break; + case "INPUT_ONLY": + case 4: + message[".google.api.fieldBehavior"][i] = 4; + break; + case "IMMUTABLE": + case 5: + message[".google.api.fieldBehavior"][i] = 5; + break; + } + } + if (object[".google.api.resourceReference"] != null) { + if (typeof object[".google.api.resourceReference"] !== "object") + throw TypeError(".google.protobuf.FieldOptions..google.api.resourceReference: object expected"); + message[".google.api.resourceReference"] = $root.google.api.ResourceReference.fromObject(object[".google.api.resourceReference"]); } return message; }; /** - * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. + * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.protobuf.FieldOptions * @static - * @param {google.protobuf.EnumDescriptorProto} message EnumDescriptorProto + * @param {google.protobuf.FieldOptions} message FieldOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnumDescriptorProto.toObject = function toObject(message, options) { + FieldOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) { - object.value = []; - object.reservedRange = []; - object.reservedName = []; + object.uninterpretedOption = []; + object[".google.api.fieldBehavior"] = []; } if (options.defaults) { - object.name = ""; - object.options = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.value && message.value.length) { - object.value = []; - for (var j = 0; j < message.value.length; ++j) - object.value[j] = $root.google.protobuf.EnumValueDescriptorProto.toObject(message.value[j], options); + object.ctype = options.enums === String ? "STRING" : 0; + object.packed = false; + object.deprecated = false; + object.lazy = false; + object.jstype = options.enums === String ? "JS_NORMAL" : 0; + object.weak = false; + object[".google.api.resourceReference"] = null; } - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.EnumOptions.toObject(message.options, options); - if (message.reservedRange && message.reservedRange.length) { - object.reservedRange = []; - for (var j = 0; j < message.reservedRange.length; ++j) - object.reservedRange[j] = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject(message.reservedRange[j], options); + if (message.ctype != null && message.hasOwnProperty("ctype")) + object.ctype = options.enums === String ? $root.google.protobuf.FieldOptions.CType[message.ctype] : message.ctype; + if (message.packed != null && message.hasOwnProperty("packed")) + object.packed = message.packed; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.lazy != null && message.hasOwnProperty("lazy")) + object.lazy = message.lazy; + if (message.jstype != null && message.hasOwnProperty("jstype")) + object.jstype = options.enums === String ? $root.google.protobuf.FieldOptions.JSType[message.jstype] : message.jstype; + if (message.weak != null && message.hasOwnProperty("weak")) + object.weak = message.weak; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); } - if (message.reservedName && message.reservedName.length) { - object.reservedName = []; - for (var j = 0; j < message.reservedName.length; ++j) - object.reservedName[j] = message.reservedName[j]; + if (message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length) { + object[".google.api.fieldBehavior"] = []; + for (var j = 0; j < message[".google.api.fieldBehavior"].length; ++j) + object[".google.api.fieldBehavior"][j] = options.enums === String ? $root.google.api.FieldBehavior[message[".google.api.fieldBehavior"][j]] : message[".google.api.fieldBehavior"][j]; } + if (message[".google.api.resourceReference"] != null && message.hasOwnProperty(".google.api.resourceReference")) + object[".google.api.resourceReference"] = $root.google.api.ResourceReference.toObject(message[".google.api.resourceReference"], options); return object; }; /** - * Converts this EnumDescriptorProto to JSON. + * Converts this FieldOptions to JSON. * @function toJSON - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.protobuf.FieldOptions * @instance * @returns {Object.} JSON object */ - EnumDescriptorProto.prototype.toJSON = function toJSON() { + FieldOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - EnumDescriptorProto.EnumReservedRange = (function() { - - /** - * Properties of an EnumReservedRange. - * @memberof google.protobuf.EnumDescriptorProto - * @interface IEnumReservedRange - * @property {number|null} [start] EnumReservedRange start - * @property {number|null} [end] EnumReservedRange end - */ - - /** - * Constructs a new EnumReservedRange. - * @memberof google.protobuf.EnumDescriptorProto - * @classdesc Represents an EnumReservedRange. - * @implements IEnumReservedRange - * @constructor - * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange=} [properties] Properties to set - */ - function EnumReservedRange(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]]; - } - - /** - * EnumReservedRange start. - * @member {number} start - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @instance - */ - EnumReservedRange.prototype.start = 0; - - /** - * EnumReservedRange end. - * @member {number} end - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @instance - */ - EnumReservedRange.prototype.end = 0; - - /** - * Creates a new EnumReservedRange instance using the specified properties. - * @function create - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange=} [properties] Properties to set - * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange instance - */ - EnumReservedRange.create = function create(properties) { - return new EnumReservedRange(properties); - }; - - /** - * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. - * @function encode - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange} message EnumReservedRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumReservedRange.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.start != null && Object.hasOwnProperty.call(message, "start")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); - if (message.end != null && Object.hasOwnProperty.call(message, "end")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); - return writer; - }; - - /** - * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange} message EnumReservedRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumReservedRange.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an EnumReservedRange message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumReservedRange.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.protobuf.EnumDescriptorProto.EnumReservedRange(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.start = reader.int32(); - break; - case 2: - message.end = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumReservedRange.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnumReservedRange message. - * @function verify - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EnumReservedRange.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.start != null && message.hasOwnProperty("start")) - if (!$util.isInteger(message.start)) - return "start: integer expected"; - if (message.end != null && message.hasOwnProperty("end")) - if (!$util.isInteger(message.end)) - return "end: integer expected"; - return null; - }; - - /** - * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange - */ - EnumReservedRange.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.EnumDescriptorProto.EnumReservedRange) - return object; - var message = new $root.google.protobuf.EnumDescriptorProto.EnumReservedRange(); - if (object.start != null) - message.start = object.start | 0; - if (object.end != null) - message.end = object.end | 0; - return message; - }; - - /** - * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {google.protobuf.EnumDescriptorProto.EnumReservedRange} message EnumReservedRange - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - EnumReservedRange.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.start = 0; - object.end = 0; - } - if (message.start != null && message.hasOwnProperty("start")) - object.start = message.start; - if (message.end != null && message.hasOwnProperty("end")) - object.end = message.end; - return object; - }; - - /** - * Converts this EnumReservedRange to JSON. - * @function toJSON - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @instance - * @returns {Object.} JSON object - */ - EnumReservedRange.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * CType enum. + * @name google.protobuf.FieldOptions.CType + * @enum {number} + * @property {number} STRING=0 STRING value + * @property {number} CORD=1 CORD value + * @property {number} STRING_PIECE=2 STRING_PIECE value + */ + FieldOptions.CType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STRING"] = 0; + values[valuesById[1] = "CORD"] = 1; + values[valuesById[2] = "STRING_PIECE"] = 2; + return values; + })(); - return EnumReservedRange; + /** + * JSType enum. + * @name google.protobuf.FieldOptions.JSType + * @enum {number} + * @property {number} JS_NORMAL=0 JS_NORMAL value + * @property {number} JS_STRING=1 JS_STRING value + * @property {number} JS_NUMBER=2 JS_NUMBER value + */ + FieldOptions.JSType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "JS_NORMAL"] = 0; + values[valuesById[1] = "JS_STRING"] = 1; + values[valuesById[2] = "JS_NUMBER"] = 2; + return values; })(); - return EnumDescriptorProto; + return FieldOptions; })(); - protobuf.EnumValueDescriptorProto = (function() { + protobuf.OneofOptions = (function() { /** - * Properties of an EnumValueDescriptorProto. + * Properties of an OneofOptions. * @memberof google.protobuf - * @interface IEnumValueDescriptorProto - * @property {string|null} [name] EnumValueDescriptorProto name - * @property {number|null} [number] EnumValueDescriptorProto number - * @property {google.protobuf.IEnumValueOptions|null} [options] EnumValueDescriptorProto options + * @interface IOneofOptions + * @property {Array.|null} [uninterpretedOption] OneofOptions uninterpretedOption */ /** - * Constructs a new EnumValueDescriptorProto. + * Constructs a new OneofOptions. * @memberof google.protobuf - * @classdesc Represents an EnumValueDescriptorProto. - * @implements IEnumValueDescriptorProto + * @classdesc Represents an OneofOptions. + * @implements IOneofOptions * @constructor - * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set + * @param {google.protobuf.IOneofOptions=} [properties] Properties to set */ - function EnumValueDescriptorProto(properties) { + function OneofOptions(properties) { + this.uninterpretedOption = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -57537,101 +91757,78 @@ } /** - * EnumValueDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.EnumValueDescriptorProto - * @instance - */ - EnumValueDescriptorProto.prototype.name = ""; - - /** - * EnumValueDescriptorProto number. - * @member {number} number - * @memberof google.protobuf.EnumValueDescriptorProto - * @instance - */ - EnumValueDescriptorProto.prototype.number = 0; - - /** - * EnumValueDescriptorProto options. - * @member {google.protobuf.IEnumValueOptions|null|undefined} options - * @memberof google.protobuf.EnumValueDescriptorProto + * OneofOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.OneofOptions * @instance */ - EnumValueDescriptorProto.prototype.options = null; + OneofOptions.prototype.uninterpretedOption = $util.emptyArray; /** - * Creates a new EnumValueDescriptorProto instance using the specified properties. + * Creates a new OneofOptions instance using the specified properties. * @function create - * @memberof google.protobuf.EnumValueDescriptorProto + * @memberof google.protobuf.OneofOptions * @static - * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto instance + * @param {google.protobuf.IOneofOptions=} [properties] Properties to set + * @returns {google.protobuf.OneofOptions} OneofOptions instance */ - EnumValueDescriptorProto.create = function create(properties) { - return new EnumValueDescriptorProto(properties); + OneofOptions.create = function create(properties) { + return new OneofOptions(properties); }; /** - * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.EnumValueDescriptorProto + * @memberof google.protobuf.OneofOptions * @static - * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode + * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumValueDescriptorProto.encode = function encode(message, writer) { + OneofOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.number != null && Object.hasOwnProperty.call(message, "number")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.number); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.EnumValueOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); return writer; }; /** - * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.EnumValueDescriptorProto + * @memberof google.protobuf.OneofOptions * @static - * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode + * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumValueDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + OneofOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. + * Decodes an OneofOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.EnumValueDescriptorProto + * @memberof google.protobuf.OneofOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + * @returns {google.protobuf.OneofOptions} OneofOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnumValueDescriptorProto.decode = function decode(reader, length) { + OneofOptions.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.protobuf.EnumValueDescriptorProto(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.number = reader.int32(); - break; - case 3: - message.options = $root.google.protobuf.EnumValueOptions.decode(reader, reader.uint32()); + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -57642,132 +91839,127 @@ }; /** - * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes an OneofOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.EnumValueDescriptorProto + * @memberof google.protobuf.OneofOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + * @returns {google.protobuf.OneofOptions} OneofOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnumValueDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + OneofOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EnumValueDescriptorProto message. + * Verifies an OneofOptions message. * @function verify - * @memberof google.protobuf.EnumValueDescriptorProto + * @memberof google.protobuf.OneofOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnumValueDescriptorProto.verify = function verify(message) { + OneofOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.number != null && message.hasOwnProperty("number")) - if (!$util.isInteger(message.number)) - return "number: integer expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.EnumValueOptions.verify(message.options); - if (error) - return "options." + error; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } } return null; }; /** - * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.EnumValueDescriptorProto + * @memberof google.protobuf.OneofOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + * @returns {google.protobuf.OneofOptions} OneofOptions */ - EnumValueDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.EnumValueDescriptorProto) + OneofOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.OneofOptions) return object; - var message = new $root.google.protobuf.EnumValueDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.number != null) - message.number = object.number | 0; - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.EnumValueOptions.fromObject(object.options); + var message = new $root.google.protobuf.OneofOptions(); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } } return message; }; /** - * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. + * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.EnumValueDescriptorProto + * @memberof google.protobuf.OneofOptions * @static - * @param {google.protobuf.EnumValueDescriptorProto} message EnumValueDescriptorProto + * @param {google.protobuf.OneofOptions} message OneofOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnumValueDescriptorProto.toObject = function toObject(message, options) { + OneofOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.number = 0; - object.options = null; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.number != null && message.hasOwnProperty("number")) - object.number = message.number; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.EnumValueOptions.toObject(message.options, options); return object; }; /** - * Converts this EnumValueDescriptorProto to JSON. + * Converts this OneofOptions to JSON. * @function toJSON - * @memberof google.protobuf.EnumValueDescriptorProto + * @memberof google.protobuf.OneofOptions * @instance * @returns {Object.} JSON object */ - EnumValueDescriptorProto.prototype.toJSON = function toJSON() { + OneofOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return EnumValueDescriptorProto; + return OneofOptions; })(); - protobuf.ServiceDescriptorProto = (function() { + protobuf.EnumOptions = (function() { /** - * Properties of a ServiceDescriptorProto. + * Properties of an EnumOptions. * @memberof google.protobuf - * @interface IServiceDescriptorProto - * @property {string|null} [name] ServiceDescriptorProto name - * @property {Array.|null} [method] ServiceDescriptorProto method - * @property {google.protobuf.IServiceOptions|null} [options] ServiceDescriptorProto options + * @interface IEnumOptions + * @property {boolean|null} [allowAlias] EnumOptions allowAlias + * @property {boolean|null} [deprecated] EnumOptions deprecated + * @property {Array.|null} [uninterpretedOption] EnumOptions uninterpretedOption */ /** - * Constructs a new ServiceDescriptorProto. + * Constructs a new EnumOptions. * @memberof google.protobuf - * @classdesc Represents a ServiceDescriptorProto. - * @implements IServiceDescriptorProto + * @classdesc Represents an EnumOptions. + * @implements IEnumOptions * @constructor - * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set + * @param {google.protobuf.IEnumOptions=} [properties] Properties to set */ - function ServiceDescriptorProto(properties) { - this.method = []; + function EnumOptions(properties) { + this.uninterpretedOption = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -57775,104 +91967,104 @@ } /** - * ServiceDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.ServiceDescriptorProto + * EnumOptions allowAlias. + * @member {boolean} allowAlias + * @memberof google.protobuf.EnumOptions * @instance */ - ServiceDescriptorProto.prototype.name = ""; + EnumOptions.prototype.allowAlias = false; - /** - * ServiceDescriptorProto method. - * @member {Array.} method - * @memberof google.protobuf.ServiceDescriptorProto + /** + * EnumOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.EnumOptions * @instance */ - ServiceDescriptorProto.prototype.method = $util.emptyArray; + EnumOptions.prototype.deprecated = false; /** - * ServiceDescriptorProto options. - * @member {google.protobuf.IServiceOptions|null|undefined} options - * @memberof google.protobuf.ServiceDescriptorProto + * EnumOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.EnumOptions * @instance */ - ServiceDescriptorProto.prototype.options = null; + EnumOptions.prototype.uninterpretedOption = $util.emptyArray; /** - * Creates a new ServiceDescriptorProto instance using the specified properties. + * Creates a new EnumOptions instance using the specified properties. * @function create - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.EnumOptions * @static - * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto instance + * @param {google.protobuf.IEnumOptions=} [properties] Properties to set + * @returns {google.protobuf.EnumOptions} EnumOptions instance */ - ServiceDescriptorProto.create = function create(properties) { - return new ServiceDescriptorProto(properties); + EnumOptions.create = function create(properties) { + return new EnumOptions(properties); }; /** - * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.EnumOptions * @static - * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode + * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceDescriptorProto.encode = function encode(message, writer) { + EnumOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.method != null && message.method.length) - for (var i = 0; i < message.method.length; ++i) - $root.google.protobuf.MethodDescriptorProto.encode(message.method[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.ServiceOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.allowAlias != null && Object.hasOwnProperty.call(message, "allowAlias")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowAlias); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); return writer; }; /** - * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.EnumOptions * @static - * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode + * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + EnumOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * Decodes an EnumOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.EnumOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + * @returns {google.protobuf.EnumOptions} EnumOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceDescriptorProto.decode = function decode(reader, length) { + EnumOptions.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.protobuf.ServiceDescriptorProto(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; case 2: - if (!(message.method && message.method.length)) - message.method = []; - message.method.push($root.google.protobuf.MethodDescriptorProto.decode(reader, reader.uint32())); + message.allowAlias = reader.bool(); break; case 3: - message.options = $root.google.protobuf.ServiceOptions.decode(reader, reader.uint32()); + message.deprecated = reader.bool(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -57883,293 +92075,236 @@ }; /** - * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes an EnumOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.EnumOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + * @returns {google.protobuf.EnumOptions} EnumOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + EnumOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ServiceDescriptorProto message. + * Verifies an EnumOptions message. * @function verify - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.EnumOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ServiceDescriptorProto.verify = function verify(message) { + EnumOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.method != null && message.hasOwnProperty("method")) { - if (!Array.isArray(message.method)) - return "method: array expected"; - for (var i = 0; i < message.method.length; ++i) { - var error = $root.google.protobuf.MethodDescriptorProto.verify(message.method[i]); + if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) + if (typeof message.allowAlias !== "boolean") + return "allowAlias: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); if (error) - return "method." + error; + return "uninterpretedOption." + error; } } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.ServiceOptions.verify(message.options); - if (error) - return "options." + error; - } return null; }; /** - * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.EnumOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + * @returns {google.protobuf.EnumOptions} EnumOptions */ - ServiceDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.ServiceDescriptorProto) + EnumOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumOptions) return object; - var message = new $root.google.protobuf.ServiceDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.method) { - if (!Array.isArray(object.method)) - throw TypeError(".google.protobuf.ServiceDescriptorProto.method: array expected"); - message.method = []; - for (var i = 0; i < object.method.length; ++i) { - if (typeof object.method[i] !== "object") - throw TypeError(".google.protobuf.ServiceDescriptorProto.method: object expected"); - message.method[i] = $root.google.protobuf.MethodDescriptorProto.fromObject(object.method[i]); + var message = new $root.google.protobuf.EnumOptions(); + if (object.allowAlias != null) + message.allowAlias = Boolean(object.allowAlias); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); } } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.ServiceDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.ServiceOptions.fromObject(object.options); - } return message; }; /** - * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. + * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.EnumOptions * @static - * @param {google.protobuf.ServiceDescriptorProto} message ServiceDescriptorProto + * @param {google.protobuf.EnumOptions} message EnumOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceDescriptorProto.toObject = function toObject(message, options) { + EnumOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.method = []; + object.uninterpretedOption = []; if (options.defaults) { - object.name = ""; - object.options = null; + object.allowAlias = false; + object.deprecated = false; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.method && message.method.length) { - object.method = []; - for (var j = 0; j < message.method.length; ++j) - object.method[j] = $root.google.protobuf.MethodDescriptorProto.toObject(message.method[j], options); + if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) + object.allowAlias = message.allowAlias; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); } - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.ServiceOptions.toObject(message.options, options); return object; }; /** - * Converts this ServiceDescriptorProto to JSON. + * Converts this EnumOptions to JSON. * @function toJSON - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.EnumOptions * @instance * @returns {Object.} JSON object */ - ServiceDescriptorProto.prototype.toJSON = function toJSON() { + EnumOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ServiceDescriptorProto; + return EnumOptions; })(); - protobuf.MethodDescriptorProto = (function() { + protobuf.EnumValueOptions = (function() { /** - * Properties of a MethodDescriptorProto. + * Properties of an EnumValueOptions. * @memberof google.protobuf - * @interface IMethodDescriptorProto - * @property {string|null} [name] MethodDescriptorProto name - * @property {string|null} [inputType] MethodDescriptorProto inputType - * @property {string|null} [outputType] MethodDescriptorProto outputType - * @property {google.protobuf.IMethodOptions|null} [options] MethodDescriptorProto options - * @property {boolean|null} [clientStreaming] MethodDescriptorProto clientStreaming - * @property {boolean|null} [serverStreaming] MethodDescriptorProto serverStreaming + * @interface IEnumValueOptions + * @property {boolean|null} [deprecated] EnumValueOptions deprecated + * @property {Array.|null} [uninterpretedOption] EnumValueOptions uninterpretedOption */ /** - * Constructs a new MethodDescriptorProto. + * Constructs a new EnumValueOptions. * @memberof google.protobuf - * @classdesc Represents a MethodDescriptorProto. - * @implements IMethodDescriptorProto - * @constructor - * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set - */ - function MethodDescriptorProto(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]]; - } - - /** - * MethodDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.MethodDescriptorProto - * @instance - */ - MethodDescriptorProto.prototype.name = ""; - - /** - * MethodDescriptorProto inputType. - * @member {string} inputType - * @memberof google.protobuf.MethodDescriptorProto - * @instance - */ - MethodDescriptorProto.prototype.inputType = ""; - - /** - * MethodDescriptorProto outputType. - * @member {string} outputType - * @memberof google.protobuf.MethodDescriptorProto - * @instance - */ - MethodDescriptorProto.prototype.outputType = ""; - - /** - * MethodDescriptorProto options. - * @member {google.protobuf.IMethodOptions|null|undefined} options - * @memberof google.protobuf.MethodDescriptorProto - * @instance + * @classdesc Represents an EnumValueOptions. + * @implements IEnumValueOptions + * @constructor + * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set */ - MethodDescriptorProto.prototype.options = null; + function EnumValueOptions(properties) { + this.uninterpretedOption = []; + 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]]; + } /** - * MethodDescriptorProto clientStreaming. - * @member {boolean} clientStreaming - * @memberof google.protobuf.MethodDescriptorProto + * EnumValueOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.EnumValueOptions * @instance */ - MethodDescriptorProto.prototype.clientStreaming = false; + EnumValueOptions.prototype.deprecated = false; /** - * MethodDescriptorProto serverStreaming. - * @member {boolean} serverStreaming - * @memberof google.protobuf.MethodDescriptorProto + * EnumValueOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.EnumValueOptions * @instance */ - MethodDescriptorProto.prototype.serverStreaming = false; + EnumValueOptions.prototype.uninterpretedOption = $util.emptyArray; /** - * Creates a new MethodDescriptorProto instance using the specified properties. + * Creates a new EnumValueOptions instance using the specified properties. * @function create - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.EnumValueOptions * @static - * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto instance + * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions instance */ - MethodDescriptorProto.create = function create(properties) { - return new MethodDescriptorProto(properties); + EnumValueOptions.create = function create(properties) { + return new EnumValueOptions(properties); }; /** - * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.EnumValueOptions * @static - * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode + * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MethodDescriptorProto.encode = function encode(message, writer) { + EnumValueOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.inputType != null && Object.hasOwnProperty.call(message, "inputType")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputType); - if (message.outputType != null && Object.hasOwnProperty.call(message, "outputType")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputType); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.MethodOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.clientStreaming != null && Object.hasOwnProperty.call(message, "clientStreaming")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.clientStreaming); - if (message.serverStreaming != null && Object.hasOwnProperty.call(message, "serverStreaming")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.serverStreaming); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); return writer; }; /** - * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.EnumValueOptions * @static - * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode + * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MethodDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + EnumValueOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MethodDescriptorProto message from the specified reader or buffer. + * Decodes an EnumValueOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.EnumValueOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MethodDescriptorProto.decode = function decode(reader, length) { + EnumValueOptions.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.protobuf.MethodDescriptorProto(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); - break; - case 2: - message.inputType = reader.string(); - break; - case 3: - message.outputType = reader.string(); - break; - case 4: - message.options = $root.google.protobuf.MethodOptions.decode(reader, reader.uint32()); - break; - case 5: - message.clientStreaming = reader.bool(); + message.deprecated = reader.bool(); break; - case 6: - message.serverStreaming = reader.bool(); + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -58180,176 +92315,137 @@ }; /** - * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.EnumValueOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MethodDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + EnumValueOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MethodDescriptorProto message. + * Verifies an EnumValueOptions message. * @function verify - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.EnumValueOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MethodDescriptorProto.verify = function verify(message) { + EnumValueOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.inputType != null && message.hasOwnProperty("inputType")) - if (!$util.isString(message.inputType)) - return "inputType: string expected"; - if (message.outputType != null && message.hasOwnProperty("outputType")) - if (!$util.isString(message.outputType)) - return "outputType: string expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.MethodOptions.verify(message.options); - if (error) - return "options." + error; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } } - if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) - if (typeof message.clientStreaming !== "boolean") - return "clientStreaming: boolean expected"; - if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) - if (typeof message.serverStreaming !== "boolean") - return "serverStreaming: boolean expected"; return null; }; /** - * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.EnumValueOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions */ - MethodDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.MethodDescriptorProto) + EnumValueOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumValueOptions) return object; - var message = new $root.google.protobuf.MethodDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.inputType != null) - message.inputType = String(object.inputType); - if (object.outputType != null) - message.outputType = String(object.outputType); - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.MethodOptions.fromObject(object.options); + var message = new $root.google.protobuf.EnumValueOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } } - if (object.clientStreaming != null) - message.clientStreaming = Boolean(object.clientStreaming); - if (object.serverStreaming != null) - message.serverStreaming = Boolean(object.serverStreaming); return message; }; /** - * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. + * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.EnumValueOptions * @static - * @param {google.protobuf.MethodDescriptorProto} message MethodDescriptorProto + * @param {google.protobuf.EnumValueOptions} message EnumValueOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MethodDescriptorProto.toObject = function toObject(message, options) { + EnumValueOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.inputType = ""; - object.outputType = ""; - object.options = null; - object.clientStreaming = false; - object.serverStreaming = false; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) + object.deprecated = false; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.inputType != null && message.hasOwnProperty("inputType")) - object.inputType = message.inputType; - if (message.outputType != null && message.hasOwnProperty("outputType")) - object.outputType = message.outputType; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.MethodOptions.toObject(message.options, options); - if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) - object.clientStreaming = message.clientStreaming; - if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) - object.serverStreaming = message.serverStreaming; return object; }; /** - * Converts this MethodDescriptorProto to JSON. + * Converts this EnumValueOptions to JSON. * @function toJSON - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.EnumValueOptions * @instance * @returns {Object.} JSON object */ - MethodDescriptorProto.prototype.toJSON = function toJSON() { + EnumValueOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MethodDescriptorProto; + return EnumValueOptions; })(); - protobuf.FileOptions = (function() { - - /** - * Properties of a FileOptions. - * @memberof google.protobuf - * @interface IFileOptions - * @property {string|null} [javaPackage] FileOptions javaPackage - * @property {string|null} [javaOuterClassname] FileOptions javaOuterClassname - * @property {boolean|null} [javaMultipleFiles] FileOptions javaMultipleFiles - * @property {boolean|null} [javaGenerateEqualsAndHash] FileOptions javaGenerateEqualsAndHash - * @property {boolean|null} [javaStringCheckUtf8] FileOptions javaStringCheckUtf8 - * @property {google.protobuf.FileOptions.OptimizeMode|null} [optimizeFor] FileOptions optimizeFor - * @property {string|null} [goPackage] FileOptions goPackage - * @property {boolean|null} [ccGenericServices] FileOptions ccGenericServices - * @property {boolean|null} [javaGenericServices] FileOptions javaGenericServices - * @property {boolean|null} [pyGenericServices] FileOptions pyGenericServices - * @property {boolean|null} [phpGenericServices] FileOptions phpGenericServices - * @property {boolean|null} [deprecated] FileOptions deprecated - * @property {boolean|null} [ccEnableArenas] FileOptions ccEnableArenas - * @property {string|null} [objcClassPrefix] FileOptions objcClassPrefix - * @property {string|null} [csharpNamespace] FileOptions csharpNamespace - * @property {string|null} [swiftPrefix] FileOptions swiftPrefix - * @property {string|null} [phpClassPrefix] FileOptions phpClassPrefix - * @property {string|null} [phpNamespace] FileOptions phpNamespace - * @property {string|null} [phpMetadataNamespace] FileOptions phpMetadataNamespace - * @property {string|null} [rubyPackage] FileOptions rubyPackage - * @property {Array.|null} [uninterpretedOption] FileOptions uninterpretedOption - * @property {Array.|null} [".google.api.resourceDefinition"] FileOptions .google.api.resourceDefinition + protobuf.ServiceOptions = (function() { + + /** + * Properties of a ServiceOptions. + * @memberof google.protobuf + * @interface IServiceOptions + * @property {boolean|null} [deprecated] ServiceOptions deprecated + * @property {Array.|null} [uninterpretedOption] ServiceOptions uninterpretedOption + * @property {string|null} [".google.api.defaultHost"] ServiceOptions .google.api.defaultHost + * @property {string|null} [".google.api.oauthScopes"] ServiceOptions .google.api.oauthScopes */ /** - * Constructs a new FileOptions. + * Constructs a new ServiceOptions. * @memberof google.protobuf - * @classdesc Represents a FileOptions. - * @implements IFileOptions + * @classdesc Represents a ServiceOptions. + * @implements IServiceOptions * @constructor - * @param {google.protobuf.IFileOptions=} [properties] Properties to set + * @param {google.protobuf.IServiceOptions=} [properties] Properties to set */ - function FileOptions(properties) { + function ServiceOptions(properties) { this.uninterpretedOption = []; - this[".google.api.resourceDefinition"] = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -58357,354 +92453,425 @@ } /** - * FileOptions javaPackage. - * @member {string} javaPackage - * @memberof google.protobuf.FileOptions + * ServiceOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.ServiceOptions * @instance */ - FileOptions.prototype.javaPackage = ""; + ServiceOptions.prototype.deprecated = false; /** - * FileOptions javaOuterClassname. - * @member {string} javaOuterClassname - * @memberof google.protobuf.FileOptions + * ServiceOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.ServiceOptions * @instance */ - FileOptions.prototype.javaOuterClassname = ""; + ServiceOptions.prototype.uninterpretedOption = $util.emptyArray; /** - * FileOptions javaMultipleFiles. - * @member {boolean} javaMultipleFiles - * @memberof google.protobuf.FileOptions + * ServiceOptions .google.api.defaultHost. + * @member {string} .google.api.defaultHost + * @memberof google.protobuf.ServiceOptions * @instance */ - FileOptions.prototype.javaMultipleFiles = false; + ServiceOptions.prototype[".google.api.defaultHost"] = ""; /** - * FileOptions javaGenerateEqualsAndHash. - * @member {boolean} javaGenerateEqualsAndHash - * @memberof google.protobuf.FileOptions + * ServiceOptions .google.api.oauthScopes. + * @member {string} .google.api.oauthScopes + * @memberof google.protobuf.ServiceOptions * @instance */ - FileOptions.prototype.javaGenerateEqualsAndHash = false; + ServiceOptions.prototype[".google.api.oauthScopes"] = ""; /** - * FileOptions javaStringCheckUtf8. - * @member {boolean} javaStringCheckUtf8 - * @memberof google.protobuf.FileOptions - * @instance + * Creates a new ServiceOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.IServiceOptions=} [properties] Properties to set + * @returns {google.protobuf.ServiceOptions} ServiceOptions instance */ - FileOptions.prototype.javaStringCheckUtf8 = false; + ServiceOptions.create = function create(properties) { + return new ServiceOptions(properties); + }; /** - * FileOptions optimizeFor. - * @member {google.protobuf.FileOptions.OptimizeMode} optimizeFor - * @memberof google.protobuf.FileOptions - * @instance + * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - FileOptions.prototype.optimizeFor = 1; + ServiceOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.defaultHost"] != null && Object.hasOwnProperty.call(message, ".google.api.defaultHost")) + writer.uint32(/* id 1049, wireType 2 =*/8394).string(message[".google.api.defaultHost"]); + if (message[".google.api.oauthScopes"] != null && Object.hasOwnProperty.call(message, ".google.api.oauthScopes")) + writer.uint32(/* id 1050, wireType 2 =*/8402).string(message[".google.api.oauthScopes"]); + return writer; + }; /** - * FileOptions goPackage. - * @member {string} goPackage - * @memberof google.protobuf.FileOptions - * @instance + * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - FileOptions.prototype.goPackage = ""; + ServiceOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * FileOptions ccGenericServices. - * @member {boolean} ccGenericServices - * @memberof google.protobuf.FileOptions - * @instance + * Decodes a ServiceOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ServiceOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ServiceOptions} ServiceOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FileOptions.prototype.ccGenericServices = false; + ServiceOptions.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.protobuf.ServiceOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 33: + message.deprecated = reader.bool(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + case 1049: + message[".google.api.defaultHost"] = reader.string(); + break; + case 1050: + message[".google.api.oauthScopes"] = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * FileOptions javaGenericServices. - * @member {boolean} javaGenericServices - * @memberof google.protobuf.FileOptions - * @instance + * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.ServiceOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.ServiceOptions} ServiceOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FileOptions.prototype.javaGenericServices = false; + ServiceOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * FileOptions pyGenericServices. - * @member {boolean} pyGenericServices - * @memberof google.protobuf.FileOptions - * @instance + * Verifies a ServiceOptions message. + * @function verify + * @memberof google.protobuf.ServiceOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FileOptions.prototype.pyGenericServices = false; + ServiceOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.defaultHost"] != null && message.hasOwnProperty(".google.api.defaultHost")) + if (!$util.isString(message[".google.api.defaultHost"])) + return ".google.api.defaultHost: string expected"; + if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes")) + if (!$util.isString(message[".google.api.oauthScopes"])) + return ".google.api.oauthScopes: string expected"; + return null; + }; /** - * FileOptions phpGenericServices. - * @member {boolean} phpGenericServices - * @memberof google.protobuf.FileOptions - * @instance + * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.ServiceOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.ServiceOptions} ServiceOptions */ - FileOptions.prototype.phpGenericServices = false; + ServiceOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ServiceOptions) + return object; + var message = new $root.google.protobuf.ServiceOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.defaultHost"] != null) + message[".google.api.defaultHost"] = String(object[".google.api.defaultHost"]); + if (object[".google.api.oauthScopes"] != null) + message[".google.api.oauthScopes"] = String(object[".google.api.oauthScopes"]); + return message; + }; + + /** + * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.ServiceOptions} message ServiceOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ServiceOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) { + object.deprecated = false; + object[".google.api.defaultHost"] = ""; + object[".google.api.oauthScopes"] = ""; + } + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.defaultHost"] != null && message.hasOwnProperty(".google.api.defaultHost")) + object[".google.api.defaultHost"] = message[".google.api.defaultHost"]; + if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes")) + object[".google.api.oauthScopes"] = message[".google.api.oauthScopes"]; + return object; + }; /** - * FileOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.FileOptions + * Converts this ServiceOptions to JSON. + * @function toJSON + * @memberof google.protobuf.ServiceOptions * @instance + * @returns {Object.} JSON object */ - FileOptions.prototype.deprecated = false; + ServiceOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * FileOptions ccEnableArenas. - * @member {boolean} ccEnableArenas - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.ccEnableArenas = true; + return ServiceOptions; + })(); - /** - * FileOptions objcClassPrefix. - * @member {string} objcClassPrefix - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.objcClassPrefix = ""; + protobuf.MethodOptions = (function() { /** - * FileOptions csharpNamespace. - * @member {string} csharpNamespace - * @memberof google.protobuf.FileOptions - * @instance + * Properties of a MethodOptions. + * @memberof google.protobuf + * @interface IMethodOptions + * @property {boolean|null} [deprecated] MethodOptions deprecated + * @property {google.protobuf.MethodOptions.IdempotencyLevel|null} [idempotencyLevel] MethodOptions idempotencyLevel + * @property {Array.|null} [uninterpretedOption] MethodOptions uninterpretedOption + * @property {google.api.IHttpRule|null} [".google.api.http"] MethodOptions .google.api.http + * @property {Array.|null} [".google.api.methodSignature"] MethodOptions .google.api.methodSignature + * @property {google.longrunning.IOperationInfo|null} [".google.longrunning.operationInfo"] MethodOptions .google.longrunning.operationInfo */ - FileOptions.prototype.csharpNamespace = ""; /** - * FileOptions swiftPrefix. - * @member {string} swiftPrefix - * @memberof google.protobuf.FileOptions - * @instance + * Constructs a new MethodOptions. + * @memberof google.protobuf + * @classdesc Represents a MethodOptions. + * @implements IMethodOptions + * @constructor + * @param {google.protobuf.IMethodOptions=} [properties] Properties to set */ - FileOptions.prototype.swiftPrefix = ""; + function MethodOptions(properties) { + this.uninterpretedOption = []; + this[".google.api.methodSignature"] = []; + 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]]; + } /** - * FileOptions phpClassPrefix. - * @member {string} phpClassPrefix - * @memberof google.protobuf.FileOptions + * MethodOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.MethodOptions * @instance */ - FileOptions.prototype.phpClassPrefix = ""; + MethodOptions.prototype.deprecated = false; /** - * FileOptions phpNamespace. - * @member {string} phpNamespace - * @memberof google.protobuf.FileOptions + * MethodOptions idempotencyLevel. + * @member {google.protobuf.MethodOptions.IdempotencyLevel} idempotencyLevel + * @memberof google.protobuf.MethodOptions * @instance */ - FileOptions.prototype.phpNamespace = ""; + MethodOptions.prototype.idempotencyLevel = 0; /** - * FileOptions phpMetadataNamespace. - * @member {string} phpMetadataNamespace - * @memberof google.protobuf.FileOptions + * MethodOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.MethodOptions * @instance */ - FileOptions.prototype.phpMetadataNamespace = ""; + MethodOptions.prototype.uninterpretedOption = $util.emptyArray; /** - * FileOptions rubyPackage. - * @member {string} rubyPackage - * @memberof google.protobuf.FileOptions + * MethodOptions .google.api.http. + * @member {google.api.IHttpRule|null|undefined} .google.api.http + * @memberof google.protobuf.MethodOptions * @instance */ - FileOptions.prototype.rubyPackage = ""; + MethodOptions.prototype[".google.api.http"] = null; /** - * FileOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.FileOptions + * MethodOptions .google.api.methodSignature. + * @member {Array.} .google.api.methodSignature + * @memberof google.protobuf.MethodOptions * @instance */ - FileOptions.prototype.uninterpretedOption = $util.emptyArray; + MethodOptions.prototype[".google.api.methodSignature"] = $util.emptyArray; /** - * FileOptions .google.api.resourceDefinition. - * @member {Array.} .google.api.resourceDefinition - * @memberof google.protobuf.FileOptions + * MethodOptions .google.longrunning.operationInfo. + * @member {google.longrunning.IOperationInfo|null|undefined} .google.longrunning.operationInfo + * @memberof google.protobuf.MethodOptions * @instance */ - FileOptions.prototype[".google.api.resourceDefinition"] = $util.emptyArray; + MethodOptions.prototype[".google.longrunning.operationInfo"] = null; /** - * Creates a new FileOptions instance using the specified properties. + * Creates a new MethodOptions instance using the specified properties. * @function create - * @memberof google.protobuf.FileOptions + * @memberof google.protobuf.MethodOptions * @static - * @param {google.protobuf.IFileOptions=} [properties] Properties to set - * @returns {google.protobuf.FileOptions} FileOptions instance + * @param {google.protobuf.IMethodOptions=} [properties] Properties to set + * @returns {google.protobuf.MethodOptions} MethodOptions instance */ - FileOptions.create = function create(properties) { - return new FileOptions(properties); + MethodOptions.create = function create(properties) { + return new MethodOptions(properties); }; /** - * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.FileOptions + * @memberof google.protobuf.MethodOptions * @static - * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode + * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FileOptions.encode = function encode(message, writer) { + MethodOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.javaPackage != null && Object.hasOwnProperty.call(message, "javaPackage")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.javaPackage); - if (message.javaOuterClassname != null && Object.hasOwnProperty.call(message, "javaOuterClassname")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.javaOuterClassname); - if (message.optimizeFor != null && Object.hasOwnProperty.call(message, "optimizeFor")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.optimizeFor); - if (message.javaMultipleFiles != null && Object.hasOwnProperty.call(message, "javaMultipleFiles")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.javaMultipleFiles); - if (message.goPackage != null && Object.hasOwnProperty.call(message, "goPackage")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.goPackage); - if (message.ccGenericServices != null && Object.hasOwnProperty.call(message, "ccGenericServices")) - writer.uint32(/* id 16, wireType 0 =*/128).bool(message.ccGenericServices); - if (message.javaGenericServices != null && Object.hasOwnProperty.call(message, "javaGenericServices")) - writer.uint32(/* id 17, wireType 0 =*/136).bool(message.javaGenericServices); - if (message.pyGenericServices != null && Object.hasOwnProperty.call(message, "pyGenericServices")) - writer.uint32(/* id 18, wireType 0 =*/144).bool(message.pyGenericServices); - if (message.javaGenerateEqualsAndHash != null && Object.hasOwnProperty.call(message, "javaGenerateEqualsAndHash")) - writer.uint32(/* id 20, wireType 0 =*/160).bool(message.javaGenerateEqualsAndHash); if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 23, wireType 0 =*/184).bool(message.deprecated); - if (message.javaStringCheckUtf8 != null && Object.hasOwnProperty.call(message, "javaStringCheckUtf8")) - writer.uint32(/* id 27, wireType 0 =*/216).bool(message.javaStringCheckUtf8); - if (message.ccEnableArenas != null && Object.hasOwnProperty.call(message, "ccEnableArenas")) - writer.uint32(/* id 31, wireType 0 =*/248).bool(message.ccEnableArenas); - if (message.objcClassPrefix != null && Object.hasOwnProperty.call(message, "objcClassPrefix")) - writer.uint32(/* id 36, wireType 2 =*/290).string(message.objcClassPrefix); - if (message.csharpNamespace != null && Object.hasOwnProperty.call(message, "csharpNamespace")) - writer.uint32(/* id 37, wireType 2 =*/298).string(message.csharpNamespace); - if (message.swiftPrefix != null && Object.hasOwnProperty.call(message, "swiftPrefix")) - writer.uint32(/* id 39, wireType 2 =*/314).string(message.swiftPrefix); - if (message.phpClassPrefix != null && Object.hasOwnProperty.call(message, "phpClassPrefix")) - writer.uint32(/* id 40, wireType 2 =*/322).string(message.phpClassPrefix); - if (message.phpNamespace != null && Object.hasOwnProperty.call(message, "phpNamespace")) - writer.uint32(/* id 41, wireType 2 =*/330).string(message.phpNamespace); - if (message.phpGenericServices != null && Object.hasOwnProperty.call(message, "phpGenericServices")) - writer.uint32(/* id 42, wireType 0 =*/336).bool(message.phpGenericServices); - if (message.phpMetadataNamespace != null && Object.hasOwnProperty.call(message, "phpMetadataNamespace")) - writer.uint32(/* id 44, wireType 2 =*/354).string(message.phpMetadataNamespace); - if (message.rubyPackage != null && Object.hasOwnProperty.call(message, "rubyPackage")) - writer.uint32(/* id 45, wireType 2 =*/362).string(message.rubyPackage); + writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); + if (message.idempotencyLevel != null && Object.hasOwnProperty.call(message, "idempotencyLevel")) + writer.uint32(/* id 34, wireType 0 =*/272).int32(message.idempotencyLevel); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".google.api.resourceDefinition"] != null && message[".google.api.resourceDefinition"].length) - for (var i = 0; i < message[".google.api.resourceDefinition"].length; ++i) - $root.google.api.ResourceDescriptor.encode(message[".google.api.resourceDefinition"][i], writer.uint32(/* id 1053, wireType 2 =*/8426).fork()).ldelim(); + if (message[".google.longrunning.operationInfo"] != null && Object.hasOwnProperty.call(message, ".google.longrunning.operationInfo")) + $root.google.longrunning.OperationInfo.encode(message[".google.longrunning.operationInfo"], writer.uint32(/* id 1049, wireType 2 =*/8394).fork()).ldelim(); + if (message[".google.api.methodSignature"] != null && message[".google.api.methodSignature"].length) + for (var i = 0; i < message[".google.api.methodSignature"].length; ++i) + writer.uint32(/* id 1051, wireType 2 =*/8410).string(message[".google.api.methodSignature"][i]); + if (message[".google.api.http"] != null && Object.hasOwnProperty.call(message, ".google.api.http")) + $root.google.api.HttpRule.encode(message[".google.api.http"], writer.uint32(/* id 72295728, wireType 2 =*/578365826).fork()).ldelim(); return writer; }; /** - * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.FileOptions + * @memberof google.protobuf.MethodOptions * @static - * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode + * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer - */ - FileOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a FileOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FileOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FileOptions} FileOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileOptions.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.protobuf.FileOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.javaPackage = reader.string(); - break; - case 8: - message.javaOuterClassname = reader.string(); - break; - case 10: - message.javaMultipleFiles = reader.bool(); - break; - case 20: - message.javaGenerateEqualsAndHash = reader.bool(); - break; - case 27: - message.javaStringCheckUtf8 = reader.bool(); - break; - case 9: - message.optimizeFor = reader.int32(); - break; - case 11: - message.goPackage = reader.string(); - break; - case 16: - message.ccGenericServices = reader.bool(); - break; - case 17: - message.javaGenericServices = reader.bool(); - break; - case 18: - message.pyGenericServices = reader.bool(); - break; - case 42: - message.phpGenericServices = reader.bool(); - break; - case 23: + */ + MethodOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MethodOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.MethodOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.MethodOptions} MethodOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodOptions.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.protobuf.MethodOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 33: message.deprecated = reader.bool(); break; - case 31: - message.ccEnableArenas = reader.bool(); - break; - case 36: - message.objcClassPrefix = reader.string(); - break; - case 37: - message.csharpNamespace = reader.string(); - break; - case 39: - message.swiftPrefix = reader.string(); - break; - case 40: - message.phpClassPrefix = reader.string(); - break; - case 41: - message.phpNamespace = reader.string(); - break; - case 44: - message.phpMetadataNamespace = reader.string(); - break; - case 45: - message.rubyPackage = reader.string(); + case 34: + message.idempotencyLevel = reader.int32(); break; case 999: if (!(message.uninterpretedOption && message.uninterpretedOption.length)) message.uninterpretedOption = []; message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); break; - case 1053: - if (!(message[".google.api.resourceDefinition"] && message[".google.api.resourceDefinition"].length)) - message[".google.api.resourceDefinition"] = []; - message[".google.api.resourceDefinition"].push($root.google.api.ResourceDescriptor.decode(reader, reader.uint32())); + case 72295728: + message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32()); + break; + case 1051: + if (!(message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length)) + message[".google.api.methodSignature"] = []; + message[".google.api.methodSignature"].push(reader.string()); + break; + case 1049: + message[".google.longrunning.operationInfo"] = $root.google.longrunning.OperationInfo.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -58715,98 +92882,44 @@ }; /** - * Decodes a FileOptions message from the specified reader or buffer, length delimited. + * Decodes a MethodOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.FileOptions + * @memberof google.protobuf.MethodOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FileOptions} FileOptions + * @returns {google.protobuf.MethodOptions} MethodOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FileOptions.decodeDelimited = function decodeDelimited(reader) { + MethodOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FileOptions message. + * Verifies a MethodOptions message. * @function verify - * @memberof google.protobuf.FileOptions + * @memberof google.protobuf.MethodOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FileOptions.verify = function verify(message) { + MethodOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) - if (!$util.isString(message.javaPackage)) - return "javaPackage: string expected"; - if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) - if (!$util.isString(message.javaOuterClassname)) - return "javaOuterClassname: string expected"; - if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) - if (typeof message.javaMultipleFiles !== "boolean") - return "javaMultipleFiles: boolean expected"; - if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) - if (typeof message.javaGenerateEqualsAndHash !== "boolean") - return "javaGenerateEqualsAndHash: boolean expected"; - if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) - if (typeof message.javaStringCheckUtf8 !== "boolean") - return "javaStringCheckUtf8: boolean expected"; - if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) - switch (message.optimizeFor) { + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) + switch (message.idempotencyLevel) { default: - return "optimizeFor: enum value expected"; + return "idempotencyLevel: enum value expected"; + case 0: case 1: case 2: - case 3: break; } - if (message.goPackage != null && message.hasOwnProperty("goPackage")) - if (!$util.isString(message.goPackage)) - return "goPackage: string expected"; - if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) - if (typeof message.ccGenericServices !== "boolean") - return "ccGenericServices: boolean expected"; - if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) - if (typeof message.javaGenericServices !== "boolean") - return "javaGenericServices: boolean expected"; - if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) - if (typeof message.pyGenericServices !== "boolean") - return "pyGenericServices: boolean expected"; - if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices")) - if (typeof message.phpGenericServices !== "boolean") - return "phpGenericServices: boolean expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) - if (typeof message.ccEnableArenas !== "boolean") - return "ccEnableArenas: boolean expected"; - if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) - if (!$util.isString(message.objcClassPrefix)) - return "objcClassPrefix: string expected"; - if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) - if (!$util.isString(message.csharpNamespace)) - return "csharpNamespace: string expected"; - if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) - if (!$util.isString(message.swiftPrefix)) - return "swiftPrefix: string expected"; - if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) - if (!$util.isString(message.phpClassPrefix)) - return "phpClassPrefix: string expected"; - if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) - if (!$util.isString(message.phpNamespace)) - return "phpNamespace: string expected"; - if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) - if (!$util.isString(message.phpMetadataNamespace)) - return "phpMetadataNamespace: string expected"; - if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) - if (!$util.isString(message.rubyPackage)) - return "rubyPackage: string expected"; if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { if (!Array.isArray(message.uninterpretedOption)) return "uninterpretedOption: array expected"; @@ -58816,251 +92929,183 @@ return "uninterpretedOption." + error; } } - if (message[".google.api.resourceDefinition"] != null && message.hasOwnProperty(".google.api.resourceDefinition")) { - if (!Array.isArray(message[".google.api.resourceDefinition"])) - return ".google.api.resourceDefinition: array expected"; - for (var i = 0; i < message[".google.api.resourceDefinition"].length; ++i) { - var error = $root.google.api.ResourceDescriptor.verify(message[".google.api.resourceDefinition"][i]); - if (error) - return ".google.api.resourceDefinition." + error; - } + if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) { + var error = $root.google.api.HttpRule.verify(message[".google.api.http"]); + if (error) + return ".google.api.http." + error; + } + if (message[".google.api.methodSignature"] != null && message.hasOwnProperty(".google.api.methodSignature")) { + if (!Array.isArray(message[".google.api.methodSignature"])) + return ".google.api.methodSignature: array expected"; + for (var i = 0; i < message[".google.api.methodSignature"].length; ++i) + if (!$util.isString(message[".google.api.methodSignature"][i])) + return ".google.api.methodSignature: string[] expected"; + } + if (message[".google.longrunning.operationInfo"] != null && message.hasOwnProperty(".google.longrunning.operationInfo")) { + var error = $root.google.longrunning.OperationInfo.verify(message[".google.longrunning.operationInfo"]); + if (error) + return ".google.longrunning.operationInfo." + error; } return null; }; /** - * Creates a FileOptions message from a plain object. Also converts values to their respective internal types. + * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.FileOptions + * @memberof google.protobuf.MethodOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.FileOptions} FileOptions + * @returns {google.protobuf.MethodOptions} MethodOptions */ - FileOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FileOptions) + MethodOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MethodOptions) return object; - var message = new $root.google.protobuf.FileOptions(); - if (object.javaPackage != null) - message.javaPackage = String(object.javaPackage); - if (object.javaOuterClassname != null) - message.javaOuterClassname = String(object.javaOuterClassname); - if (object.javaMultipleFiles != null) - message.javaMultipleFiles = Boolean(object.javaMultipleFiles); - if (object.javaGenerateEqualsAndHash != null) - message.javaGenerateEqualsAndHash = Boolean(object.javaGenerateEqualsAndHash); - if (object.javaStringCheckUtf8 != null) - message.javaStringCheckUtf8 = Boolean(object.javaStringCheckUtf8); - switch (object.optimizeFor) { - case "SPEED": + var message = new $root.google.protobuf.MethodOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + switch (object.idempotencyLevel) { + case "IDEMPOTENCY_UNKNOWN": + case 0: + message.idempotencyLevel = 0; + break; + case "NO_SIDE_EFFECTS": case 1: - message.optimizeFor = 1; + message.idempotencyLevel = 1; break; - case "CODE_SIZE": + case "IDEMPOTENT": case 2: - message.optimizeFor = 2; - break; - case "LITE_RUNTIME": - case 3: - message.optimizeFor = 3; + message.idempotencyLevel = 2; break; } - if (object.goPackage != null) - message.goPackage = String(object.goPackage); - if (object.ccGenericServices != null) - message.ccGenericServices = Boolean(object.ccGenericServices); - if (object.javaGenericServices != null) - message.javaGenericServices = Boolean(object.javaGenericServices); - if (object.pyGenericServices != null) - message.pyGenericServices = Boolean(object.pyGenericServices); - if (object.phpGenericServices != null) - message.phpGenericServices = Boolean(object.phpGenericServices); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.ccEnableArenas != null) - message.ccEnableArenas = Boolean(object.ccEnableArenas); - if (object.objcClassPrefix != null) - message.objcClassPrefix = String(object.objcClassPrefix); - if (object.csharpNamespace != null) - message.csharpNamespace = String(object.csharpNamespace); - if (object.swiftPrefix != null) - message.swiftPrefix = String(object.swiftPrefix); - if (object.phpClassPrefix != null) - message.phpClassPrefix = String(object.phpClassPrefix); - if (object.phpNamespace != null) - message.phpNamespace = String(object.phpNamespace); - if (object.phpMetadataNamespace != null) - message.phpMetadataNamespace = String(object.phpMetadataNamespace); - if (object.rubyPackage != null) - message.rubyPackage = String(object.rubyPackage); if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); - } - } - if (object[".google.api.resourceDefinition"]) { - if (!Array.isArray(object[".google.api.resourceDefinition"])) - throw TypeError(".google.protobuf.FileOptions..google.api.resourceDefinition: array expected"); - message[".google.api.resourceDefinition"] = []; - for (var i = 0; i < object[".google.api.resourceDefinition"].length; ++i) { - if (typeof object[".google.api.resourceDefinition"][i] !== "object") - throw TypeError(".google.protobuf.FileOptions..google.api.resourceDefinition: object expected"); - message[".google.api.resourceDefinition"][i] = $root.google.api.ResourceDescriptor.fromObject(object[".google.api.resourceDefinition"][i]); + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); } } + if (object[".google.api.http"] != null) { + if (typeof object[".google.api.http"] !== "object") + throw TypeError(".google.protobuf.MethodOptions..google.api.http: object expected"); + message[".google.api.http"] = $root.google.api.HttpRule.fromObject(object[".google.api.http"]); + } + if (object[".google.api.methodSignature"]) { + if (!Array.isArray(object[".google.api.methodSignature"])) + throw TypeError(".google.protobuf.MethodOptions..google.api.methodSignature: array expected"); + message[".google.api.methodSignature"] = []; + for (var i = 0; i < object[".google.api.methodSignature"].length; ++i) + message[".google.api.methodSignature"][i] = String(object[".google.api.methodSignature"][i]); + } + if (object[".google.longrunning.operationInfo"] != null) { + if (typeof object[".google.longrunning.operationInfo"] !== "object") + throw TypeError(".google.protobuf.MethodOptions..google.longrunning.operationInfo: object expected"); + message[".google.longrunning.operationInfo"] = $root.google.longrunning.OperationInfo.fromObject(object[".google.longrunning.operationInfo"]); + } return message; }; /** - * Creates a plain object from a FileOptions message. Also converts values to other types if specified. + * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.FileOptions + * @memberof google.protobuf.MethodOptions * @static - * @param {google.protobuf.FileOptions} message FileOptions + * @param {google.protobuf.MethodOptions} message MethodOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FileOptions.toObject = function toObject(message, options) { + MethodOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) { object.uninterpretedOption = []; - object[".google.api.resourceDefinition"] = []; + object[".google.api.methodSignature"] = []; } if (options.defaults) { - object.javaPackage = ""; - object.javaOuterClassname = ""; - object.optimizeFor = options.enums === String ? "SPEED" : 1; - object.javaMultipleFiles = false; - object.goPackage = ""; - object.ccGenericServices = false; - object.javaGenericServices = false; - object.pyGenericServices = false; - object.javaGenerateEqualsAndHash = false; object.deprecated = false; - object.javaStringCheckUtf8 = false; - object.ccEnableArenas = true; - object.objcClassPrefix = ""; - object.csharpNamespace = ""; - object.swiftPrefix = ""; - object.phpClassPrefix = ""; - object.phpNamespace = ""; - object.phpGenericServices = false; - object.phpMetadataNamespace = ""; - object.rubyPackage = ""; + object.idempotencyLevel = options.enums === String ? "IDEMPOTENCY_UNKNOWN" : 0; + object[".google.longrunning.operationInfo"] = null; + object[".google.api.http"] = null; } - if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) - object.javaPackage = message.javaPackage; - if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) - object.javaOuterClassname = message.javaOuterClassname; - if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) - object.optimizeFor = options.enums === String ? $root.google.protobuf.FileOptions.OptimizeMode[message.optimizeFor] : message.optimizeFor; - if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) - object.javaMultipleFiles = message.javaMultipleFiles; - if (message.goPackage != null && message.hasOwnProperty("goPackage")) - object.goPackage = message.goPackage; - if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) - object.ccGenericServices = message.ccGenericServices; - if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) - object.javaGenericServices = message.javaGenericServices; - if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) - object.pyGenericServices = message.pyGenericServices; - if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) - object.javaGenerateEqualsAndHash = message.javaGenerateEqualsAndHash; if (message.deprecated != null && message.hasOwnProperty("deprecated")) object.deprecated = message.deprecated; - if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) - object.javaStringCheckUtf8 = message.javaStringCheckUtf8; - if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) - object.ccEnableArenas = message.ccEnableArenas; - if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) - object.objcClassPrefix = message.objcClassPrefix; - if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) - object.csharpNamespace = message.csharpNamespace; - if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) - object.swiftPrefix = message.swiftPrefix; - if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) - object.phpClassPrefix = message.phpClassPrefix; - if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) - object.phpNamespace = message.phpNamespace; - if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices")) - object.phpGenericServices = message.phpGenericServices; - if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) - object.phpMetadataNamespace = message.phpMetadataNamespace; - if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) - object.rubyPackage = message.rubyPackage; + if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) + object.idempotencyLevel = options.enums === String ? $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] : message.idempotencyLevel; if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (var j = 0; j < message.uninterpretedOption.length; ++j) object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); } - if (message[".google.api.resourceDefinition"] && message[".google.api.resourceDefinition"].length) { - object[".google.api.resourceDefinition"] = []; - for (var j = 0; j < message[".google.api.resourceDefinition"].length; ++j) - object[".google.api.resourceDefinition"][j] = $root.google.api.ResourceDescriptor.toObject(message[".google.api.resourceDefinition"][j], options); + if (message[".google.longrunning.operationInfo"] != null && message.hasOwnProperty(".google.longrunning.operationInfo")) + object[".google.longrunning.operationInfo"] = $root.google.longrunning.OperationInfo.toObject(message[".google.longrunning.operationInfo"], options); + if (message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length) { + object[".google.api.methodSignature"] = []; + for (var j = 0; j < message[".google.api.methodSignature"].length; ++j) + object[".google.api.methodSignature"][j] = message[".google.api.methodSignature"][j]; } + if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) + object[".google.api.http"] = $root.google.api.HttpRule.toObject(message[".google.api.http"], options); return object; }; /** - * Converts this FileOptions to JSON. + * Converts this MethodOptions to JSON. * @function toJSON - * @memberof google.protobuf.FileOptions + * @memberof google.protobuf.MethodOptions * @instance * @returns {Object.} JSON object */ - FileOptions.prototype.toJSON = function toJSON() { + MethodOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * OptimizeMode enum. - * @name google.protobuf.FileOptions.OptimizeMode + * IdempotencyLevel enum. + * @name google.protobuf.MethodOptions.IdempotencyLevel * @enum {number} - * @property {number} SPEED=1 SPEED value - * @property {number} CODE_SIZE=2 CODE_SIZE value - * @property {number} LITE_RUNTIME=3 LITE_RUNTIME value + * @property {number} IDEMPOTENCY_UNKNOWN=0 IDEMPOTENCY_UNKNOWN value + * @property {number} NO_SIDE_EFFECTS=1 NO_SIDE_EFFECTS value + * @property {number} IDEMPOTENT=2 IDEMPOTENT value */ - FileOptions.OptimizeMode = (function() { + MethodOptions.IdempotencyLevel = (function() { var valuesById = {}, values = Object.create(valuesById); - values[valuesById[1] = "SPEED"] = 1; - values[valuesById[2] = "CODE_SIZE"] = 2; - values[valuesById[3] = "LITE_RUNTIME"] = 3; + values[valuesById[0] = "IDEMPOTENCY_UNKNOWN"] = 0; + values[valuesById[1] = "NO_SIDE_EFFECTS"] = 1; + values[valuesById[2] = "IDEMPOTENT"] = 2; return values; })(); - return FileOptions; + return MethodOptions; })(); - protobuf.MessageOptions = (function() { + protobuf.UninterpretedOption = (function() { /** - * Properties of a MessageOptions. + * Properties of an UninterpretedOption. * @memberof google.protobuf - * @interface IMessageOptions - * @property {boolean|null} [messageSetWireFormat] MessageOptions messageSetWireFormat - * @property {boolean|null} [noStandardDescriptorAccessor] MessageOptions noStandardDescriptorAccessor - * @property {boolean|null} [deprecated] MessageOptions deprecated - * @property {boolean|null} [mapEntry] MessageOptions mapEntry - * @property {Array.|null} [uninterpretedOption] MessageOptions uninterpretedOption - * @property {google.api.IResourceDescriptor|null} [".google.api.resource"] MessageOptions .google.api.resource + * @interface IUninterpretedOption + * @property {Array.|null} [name] UninterpretedOption name + * @property {string|null} [identifierValue] UninterpretedOption identifierValue + * @property {number|Long|null} [positiveIntValue] UninterpretedOption positiveIntValue + * @property {number|Long|null} [negativeIntValue] UninterpretedOption negativeIntValue + * @property {number|null} [doubleValue] UninterpretedOption doubleValue + * @property {Uint8Array|null} [stringValue] UninterpretedOption stringValue + * @property {string|null} [aggregateValue] UninterpretedOption aggregateValue */ /** - * Constructs a new MessageOptions. + * Constructs a new UninterpretedOption. * @memberof google.protobuf - * @classdesc Represents a MessageOptions. - * @implements IMessageOptions + * @classdesc Represents an UninterpretedOption. + * @implements IUninterpretedOption * @constructor - * @param {google.protobuf.IMessageOptions=} [properties] Properties to set + * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set */ - function MessageOptions(properties) { - this.uninterpretedOption = []; + function UninterpretedOption(properties) { + this.name = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -59068,522 +93113,661 @@ } /** - * MessageOptions messageSetWireFormat. - * @member {boolean} messageSetWireFormat - * @memberof google.protobuf.MessageOptions + * UninterpretedOption name. + * @member {Array.} name + * @memberof google.protobuf.UninterpretedOption * @instance */ - MessageOptions.prototype.messageSetWireFormat = false; + UninterpretedOption.prototype.name = $util.emptyArray; /** - * MessageOptions noStandardDescriptorAccessor. - * @member {boolean} noStandardDescriptorAccessor - * @memberof google.protobuf.MessageOptions + * UninterpretedOption identifierValue. + * @member {string} identifierValue + * @memberof google.protobuf.UninterpretedOption * @instance */ - MessageOptions.prototype.noStandardDescriptorAccessor = false; + UninterpretedOption.prototype.identifierValue = ""; + + /** + * UninterpretedOption positiveIntValue. + * @member {number|Long} positiveIntValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.positiveIntValue = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * UninterpretedOption negativeIntValue. + * @member {number|Long} negativeIntValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.negativeIntValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * UninterpretedOption doubleValue. + * @member {number} doubleValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.doubleValue = 0; + + /** + * UninterpretedOption stringValue. + * @member {Uint8Array} stringValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.stringValue = $util.newBuffer([]); + + /** + * UninterpretedOption aggregateValue. + * @member {string} aggregateValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.aggregateValue = ""; + + /** + * Creates a new UninterpretedOption instance using the specified properties. + * @function create + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption instance + */ + UninterpretedOption.create = function create(properties) { + return new UninterpretedOption(properties); + }; + + /** + * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @function encode + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UninterpretedOption.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.name.length) + for (var i = 0; i < message.name.length; ++i) + $root.google.protobuf.UninterpretedOption.NamePart.encode(message.name[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.identifierValue != null && Object.hasOwnProperty.call(message, "identifierValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.identifierValue); + if (message.positiveIntValue != null && Object.hasOwnProperty.call(message, "positiveIntValue")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.positiveIntValue); + if (message.negativeIntValue != null && Object.hasOwnProperty.call(message, "negativeIntValue")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.negativeIntValue); + if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) + writer.uint32(/* id 6, wireType 1 =*/49).double(message.doubleValue); + if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) + writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.stringValue); + if (message.aggregateValue != null && Object.hasOwnProperty.call(message, "aggregateValue")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.aggregateValue); + return writer; + }; /** - * MessageOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.MessageOptions - * @instance + * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - MessageOptions.prototype.deprecated = false; + UninterpretedOption.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * MessageOptions mapEntry. - * @member {boolean} mapEntry - * @memberof google.protobuf.MessageOptions - * @instance + * Decodes an UninterpretedOption message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MessageOptions.prototype.mapEntry = false; + UninterpretedOption.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.protobuf.UninterpretedOption(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + if (!(message.name && message.name.length)) + message.name = []; + message.name.push($root.google.protobuf.UninterpretedOption.NamePart.decode(reader, reader.uint32())); + break; + case 3: + message.identifierValue = reader.string(); + break; + case 4: + message.positiveIntValue = reader.uint64(); + break; + case 5: + message.negativeIntValue = reader.int64(); + break; + case 6: + message.doubleValue = reader.double(); + break; + case 7: + message.stringValue = reader.bytes(); + break; + case 8: + message.aggregateValue = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * MessageOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.MessageOptions - * @instance + * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MessageOptions.prototype.uninterpretedOption = $util.emptyArray; + UninterpretedOption.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * MessageOptions .google.api.resource. - * @member {google.api.IResourceDescriptor|null|undefined} .google.api.resource - * @memberof google.protobuf.MessageOptions - * @instance + * Verifies an UninterpretedOption message. + * @function verify + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MessageOptions.prototype[".google.api.resource"] = null; + UninterpretedOption.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) { + if (!Array.isArray(message.name)) + return "name: array expected"; + for (var i = 0; i < message.name.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.NamePart.verify(message.name[i]); + if (error) + return "name." + error; + } + } + if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) + if (!$util.isString(message.identifierValue)) + return "identifierValue: string expected"; + if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) + if (!$util.isInteger(message.positiveIntValue) && !(message.positiveIntValue && $util.isInteger(message.positiveIntValue.low) && $util.isInteger(message.positiveIntValue.high))) + return "positiveIntValue: integer|Long expected"; + if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) + if (!$util.isInteger(message.negativeIntValue) && !(message.negativeIntValue && $util.isInteger(message.negativeIntValue.low) && $util.isInteger(message.negativeIntValue.high))) + return "negativeIntValue: integer|Long expected"; + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) + if (typeof message.doubleValue !== "number") + return "doubleValue: number expected"; + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + if (!(message.stringValue && typeof message.stringValue.length === "number" || $util.isString(message.stringValue))) + return "stringValue: buffer expected"; + if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) + if (!$util.isString(message.aggregateValue)) + return "aggregateValue: string expected"; + return null; + }; /** - * Creates a new MessageOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.MessageOptions + * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.UninterpretedOption * @static - * @param {google.protobuf.IMessageOptions=} [properties] Properties to set - * @returns {google.protobuf.MessageOptions} MessageOptions instance + * @param {Object.} object Plain object + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption */ - MessageOptions.create = function create(properties) { - return new MessageOptions(properties); + UninterpretedOption.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.UninterpretedOption) + return object; + var message = new $root.google.protobuf.UninterpretedOption(); + if (object.name) { + if (!Array.isArray(object.name)) + throw TypeError(".google.protobuf.UninterpretedOption.name: array expected"); + message.name = []; + for (var i = 0; i < object.name.length; ++i) { + if (typeof object.name[i] !== "object") + throw TypeError(".google.protobuf.UninterpretedOption.name: object expected"); + message.name[i] = $root.google.protobuf.UninterpretedOption.NamePart.fromObject(object.name[i]); + } + } + if (object.identifierValue != null) + message.identifierValue = String(object.identifierValue); + if (object.positiveIntValue != null) + if ($util.Long) + (message.positiveIntValue = $util.Long.fromValue(object.positiveIntValue)).unsigned = true; + else if (typeof object.positiveIntValue === "string") + message.positiveIntValue = parseInt(object.positiveIntValue, 10); + else if (typeof object.positiveIntValue === "number") + message.positiveIntValue = object.positiveIntValue; + else if (typeof object.positiveIntValue === "object") + message.positiveIntValue = new $util.LongBits(object.positiveIntValue.low >>> 0, object.positiveIntValue.high >>> 0).toNumber(true); + if (object.negativeIntValue != null) + if ($util.Long) + (message.negativeIntValue = $util.Long.fromValue(object.negativeIntValue)).unsigned = false; + else if (typeof object.negativeIntValue === "string") + message.negativeIntValue = parseInt(object.negativeIntValue, 10); + else if (typeof object.negativeIntValue === "number") + message.negativeIntValue = object.negativeIntValue; + else if (typeof object.negativeIntValue === "object") + message.negativeIntValue = new $util.LongBits(object.negativeIntValue.low >>> 0, object.negativeIntValue.high >>> 0).toNumber(); + if (object.doubleValue != null) + message.doubleValue = Number(object.doubleValue); + if (object.stringValue != null) + if (typeof object.stringValue === "string") + $util.base64.decode(object.stringValue, message.stringValue = $util.newBuffer($util.base64.length(object.stringValue)), 0); + else if (object.stringValue.length) + message.stringValue = object.stringValue; + if (object.aggregateValue != null) + message.aggregateValue = String(object.aggregateValue); + return message; }; /** - * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.MessageOptions + * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.UninterpretedOption * @static - * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * @param {google.protobuf.UninterpretedOption} message UninterpretedOption + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - MessageOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.messageSetWireFormat != null && Object.hasOwnProperty.call(message, "messageSetWireFormat")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.messageSetWireFormat); - if (message.noStandardDescriptorAccessor != null && Object.hasOwnProperty.call(message, "noStandardDescriptorAccessor")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.noStandardDescriptorAccessor); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); - if (message.mapEntry != null && Object.hasOwnProperty.call(message, "mapEntry")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".google.api.resource"] != null && Object.hasOwnProperty.call(message, ".google.api.resource")) - $root.google.api.ResourceDescriptor.encode(message[".google.api.resource"], writer.uint32(/* id 1053, wireType 2 =*/8426).fork()).ldelim(); - return writer; + UninterpretedOption.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.name = []; + if (options.defaults) { + object.identifierValue = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.positiveIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.positiveIntValue = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.negativeIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.negativeIntValue = options.longs === String ? "0" : 0; + object.doubleValue = 0; + if (options.bytes === String) + object.stringValue = ""; + else { + object.stringValue = []; + if (options.bytes !== Array) + object.stringValue = $util.newBuffer(object.stringValue); + } + object.aggregateValue = ""; + } + if (message.name && message.name.length) { + object.name = []; + for (var j = 0; j < message.name.length; ++j) + object.name[j] = $root.google.protobuf.UninterpretedOption.NamePart.toObject(message.name[j], options); + } + if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) + object.identifierValue = message.identifierValue; + if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) + if (typeof message.positiveIntValue === "number") + object.positiveIntValue = options.longs === String ? String(message.positiveIntValue) : message.positiveIntValue; + else + object.positiveIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.positiveIntValue) : options.longs === Number ? new $util.LongBits(message.positiveIntValue.low >>> 0, message.positiveIntValue.high >>> 0).toNumber(true) : message.positiveIntValue; + if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) + if (typeof message.negativeIntValue === "number") + object.negativeIntValue = options.longs === String ? String(message.negativeIntValue) : message.negativeIntValue; + else + object.negativeIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.negativeIntValue) : options.longs === Number ? new $util.LongBits(message.negativeIntValue.low >>> 0, message.negativeIntValue.high >>> 0).toNumber() : message.negativeIntValue; + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) + object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue; + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + object.stringValue = options.bytes === String ? $util.base64.encode(message.stringValue, 0, message.stringValue.length) : options.bytes === Array ? Array.prototype.slice.call(message.stringValue) : message.stringValue; + if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) + object.aggregateValue = message.aggregateValue; + return object; }; /** - * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.MessageOptions - * @static - * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Converts this UninterpretedOption to JSON. + * @function toJSON + * @memberof google.protobuf.UninterpretedOption + * @instance + * @returns {Object.} JSON object */ - MessageOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); + UninterpretedOption.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * Decodes a MessageOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.MessageOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.MessageOptions} MessageOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MessageOptions.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.protobuf.MessageOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.messageSetWireFormat = reader.bool(); - break; - case 2: - message.noStandardDescriptorAccessor = reader.bool(); - break; - case 3: - message.deprecated = reader.bool(); - break; - case 7: - message.mapEntry = reader.bool(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - case 1053: - message[".google.api.resource"] = $root.google.api.ResourceDescriptor.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } + UninterpretedOption.NamePart = (function() { + + /** + * Properties of a NamePart. + * @memberof google.protobuf.UninterpretedOption + * @interface INamePart + * @property {string} namePart NamePart namePart + * @property {boolean} isExtension NamePart isExtension + */ + + /** + * Constructs a new NamePart. + * @memberof google.protobuf.UninterpretedOption + * @classdesc Represents a NamePart. + * @implements INamePart + * @constructor + * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set + */ + function NamePart(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]]; } - return message; - }; - /** - * Decodes a MessageOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.MessageOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.MessageOptions} MessageOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MessageOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * NamePart namePart. + * @member {string} namePart + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + */ + NamePart.prototype.namePart = ""; + + /** + * NamePart isExtension. + * @member {boolean} isExtension + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + */ + NamePart.prototype.isExtension = false; + + /** + * Creates a new NamePart instance using the specified properties. + * @function create + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart instance + */ + NamePart.create = function create(properties) { + return new NamePart(properties); + }; + + /** + * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @function encode + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamePart.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + writer.uint32(/* id 1, wireType 2 =*/10).string(message.namePart); + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isExtension); + return writer; + }; + + /** + * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamePart.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NamePart message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamePart.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.protobuf.UninterpretedOption.NamePart(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.namePart = reader.string(); + break; + case 2: + message.isExtension = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + if (!message.hasOwnProperty("namePart")) + throw $util.ProtocolError("missing required 'namePart'", { instance: message }); + if (!message.hasOwnProperty("isExtension")) + throw $util.ProtocolError("missing required 'isExtension'", { instance: message }); + return message; + }; + + /** + * Decodes a NamePart message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamePart.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NamePart message. + * @function verify + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamePart.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (!$util.isString(message.namePart)) + return "namePart: string expected"; + if (typeof message.isExtension !== "boolean") + return "isExtension: boolean expected"; + return null; + }; + + /** + * Creates a NamePart message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + */ + NamePart.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.UninterpretedOption.NamePart) + return object; + var message = new $root.google.protobuf.UninterpretedOption.NamePart(); + if (object.namePart != null) + message.namePart = String(object.namePart); + if (object.isExtension != null) + message.isExtension = Boolean(object.isExtension); + return message; + }; - /** - * Verifies a MessageOptions message. - * @function verify - * @memberof google.protobuf.MessageOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MessageOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) - if (typeof message.messageSetWireFormat !== "boolean") - return "messageSetWireFormat: boolean expected"; - if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) - if (typeof message.noStandardDescriptorAccessor !== "boolean") - return "noStandardDescriptorAccessor: boolean expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) - if (typeof message.mapEntry !== "boolean") - return "mapEntry: boolean expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; + /** + * Creates a plain object from a NamePart message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.NamePart} message NamePart + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NamePart.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.namePart = ""; + object.isExtension = false; } - } - if (message[".google.api.resource"] != null && message.hasOwnProperty(".google.api.resource")) { - var error = $root.google.api.ResourceDescriptor.verify(message[".google.api.resource"]); - if (error) - return ".google.api.resource." + error; - } - return null; - }; - - /** - * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.MessageOptions - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.MessageOptions} MessageOptions - */ - MessageOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.MessageOptions) + if (message.namePart != null && message.hasOwnProperty("namePart")) + object.namePart = message.namePart; + if (message.isExtension != null && message.hasOwnProperty("isExtension")) + object.isExtension = message.isExtension; return object; - var message = new $root.google.protobuf.MessageOptions(); - if (object.messageSetWireFormat != null) - message.messageSetWireFormat = Boolean(object.messageSetWireFormat); - if (object.noStandardDescriptorAccessor != null) - message.noStandardDescriptorAccessor = Boolean(object.noStandardDescriptorAccessor); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.mapEntry != null) - message.mapEntry = Boolean(object.mapEntry); - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); - } - } - if (object[".google.api.resource"] != null) { - if (typeof object[".google.api.resource"] !== "object") - throw TypeError(".google.protobuf.MessageOptions..google.api.resource: object expected"); - message[".google.api.resource"] = $root.google.api.ResourceDescriptor.fromObject(object[".google.api.resource"]); - } - return message; - }; + }; - /** - * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.MessageOptions - * @static - * @param {google.protobuf.MessageOptions} message MessageOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MessageOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.uninterpretedOption = []; - if (options.defaults) { - object.messageSetWireFormat = false; - object.noStandardDescriptorAccessor = false; - object.deprecated = false; - object.mapEntry = false; - object[".google.api.resource"] = null; - } - if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) - object.messageSetWireFormat = message.messageSetWireFormat; - if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) - object.noStandardDescriptorAccessor = message.noStandardDescriptorAccessor; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) - object.mapEntry = message.mapEntry; - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); - } - if (message[".google.api.resource"] != null && message.hasOwnProperty(".google.api.resource")) - object[".google.api.resource"] = $root.google.api.ResourceDescriptor.toObject(message[".google.api.resource"], options); - return object; - }; + /** + * Converts this NamePart to JSON. + * @function toJSON + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + * @returns {Object.} JSON object + */ + NamePart.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this MessageOptions to JSON. - * @function toJSON - * @memberof google.protobuf.MessageOptions - * @instance - * @returns {Object.} JSON object - */ - MessageOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return NamePart; + })(); - return MessageOptions; + return UninterpretedOption; })(); - protobuf.FieldOptions = (function() { + protobuf.SourceCodeInfo = (function() { /** - * Properties of a FieldOptions. + * Properties of a SourceCodeInfo. * @memberof google.protobuf - * @interface IFieldOptions - * @property {google.protobuf.FieldOptions.CType|null} [ctype] FieldOptions ctype - * @property {boolean|null} [packed] FieldOptions packed - * @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype - * @property {boolean|null} [lazy] FieldOptions lazy - * @property {boolean|null} [deprecated] FieldOptions deprecated - * @property {boolean|null} [weak] FieldOptions weak - * @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption - * @property {Array.|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior - * @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference + * @interface ISourceCodeInfo + * @property {Array.|null} [location] SourceCodeInfo location */ /** - * Constructs a new FieldOptions. + * Constructs a new SourceCodeInfo. * @memberof google.protobuf - * @classdesc Represents a FieldOptions. - * @implements IFieldOptions + * @classdesc Represents a SourceCodeInfo. + * @implements ISourceCodeInfo * @constructor - * @param {google.protobuf.IFieldOptions=} [properties] Properties to set + * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set */ - function FieldOptions(properties) { - this.uninterpretedOption = []; - this[".google.api.fieldBehavior"] = []; + function SourceCodeInfo(properties) { + this.location = []; 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]]; - } - - /** - * FieldOptions ctype. - * @member {google.protobuf.FieldOptions.CType} ctype - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.ctype = 0; - - /** - * FieldOptions packed. - * @member {boolean} packed - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.packed = false; - - /** - * FieldOptions jstype. - * @member {google.protobuf.FieldOptions.JSType} jstype - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.jstype = 0; - - /** - * FieldOptions lazy. - * @member {boolean} lazy - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.lazy = false; - - /** - * FieldOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.deprecated = false; - - /** - * FieldOptions weak. - * @member {boolean} weak - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.weak = false; - - /** - * FieldOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.uninterpretedOption = $util.emptyArray; - - /** - * FieldOptions .google.api.fieldBehavior. - * @member {Array.} .google.api.fieldBehavior - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype[".google.api.fieldBehavior"] = $util.emptyArray; + } /** - * FieldOptions .google.api.resourceReference. - * @member {google.api.IResourceReference|null|undefined} .google.api.resourceReference - * @memberof google.protobuf.FieldOptions + * SourceCodeInfo location. + * @member {Array.} location + * @memberof google.protobuf.SourceCodeInfo * @instance */ - FieldOptions.prototype[".google.api.resourceReference"] = null; + SourceCodeInfo.prototype.location = $util.emptyArray; /** - * Creates a new FieldOptions instance using the specified properties. + * Creates a new SourceCodeInfo instance using the specified properties. * @function create - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.SourceCodeInfo * @static - * @param {google.protobuf.IFieldOptions=} [properties] Properties to set - * @returns {google.protobuf.FieldOptions} FieldOptions instance + * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo instance */ - FieldOptions.create = function create(properties) { - return new FieldOptions(properties); + SourceCodeInfo.create = function create(properties) { + return new SourceCodeInfo(properties); }; /** - * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. * @function encode - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.SourceCodeInfo * @static - * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode + * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FieldOptions.encode = function encode(message, writer) { + SourceCodeInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.ctype != null && Object.hasOwnProperty.call(message, "ctype")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.ctype); - if (message.packed != null && Object.hasOwnProperty.call(message, "packed")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.packed); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); - if (message.lazy != null && Object.hasOwnProperty.call(message, "lazy")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.lazy); - if (message.jstype != null && Object.hasOwnProperty.call(message, "jstype")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); - if (message.weak != null && Object.hasOwnProperty.call(message, "weak")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".google.api.fieldBehavior"] != null && message[".google.api.fieldBehavior"].length) { - writer.uint32(/* id 1052, wireType 2 =*/8418).fork(); - for (var i = 0; i < message[".google.api.fieldBehavior"].length; ++i) - writer.int32(message[".google.api.fieldBehavior"][i]); - writer.ldelim(); - } - if (message[".google.api.resourceReference"] != null && Object.hasOwnProperty.call(message, ".google.api.resourceReference")) - $root.google.api.ResourceReference.encode(message[".google.api.resourceReference"], writer.uint32(/* id 1055, wireType 2 =*/8442).fork()).ldelim(); + if (message.location != null && message.location.length) + for (var i = 0; i < message.location.length; ++i) + $root.google.protobuf.SourceCodeInfo.Location.encode(message.location[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.SourceCodeInfo * @static - * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode + * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FieldOptions.encodeDelimited = function encodeDelimited(message, writer) { + SourceCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FieldOptions message from the specified reader or buffer. + * Decodes a SourceCodeInfo message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.SourceCodeInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FieldOptions} FieldOptions + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FieldOptions.decode = function decode(reader, length) { + SourceCodeInfo.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.protobuf.FieldOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.ctype = reader.int32(); - break; - case 2: - message.packed = reader.bool(); - break; - case 6: - message.jstype = reader.int32(); - break; - case 5: - message.lazy = reader.bool(); - break; - case 3: - message.deprecated = reader.bool(); - break; - case 10: - message.weak = reader.bool(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - case 1052: - if (!(message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length)) - message[".google.api.fieldBehavior"] = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message[".google.api.fieldBehavior"].push(reader.int32()); - } else - message[".google.api.fieldBehavior"].push(reader.int32()); - break; - case 1055: - message[".google.api.resourceReference"] = $root.google.api.ResourceReference.decode(reader, reader.uint32()); + if (!(message.location && message.location.length)) + message.location = []; + message.location.push($root.google.protobuf.SourceCodeInfo.Location.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -59594,522 +93778,467 @@ }; /** - * Decodes a FieldOptions message from the specified reader or buffer, length delimited. + * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.FieldOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FieldOptions} FieldOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FieldOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FieldOptions message. - * @function verify - * @memberof google.protobuf.FieldOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FieldOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.ctype != null && message.hasOwnProperty("ctype")) - switch (message.ctype) { - default: - return "ctype: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.packed != null && message.hasOwnProperty("packed")) - if (typeof message.packed !== "boolean") - return "packed: boolean expected"; - if (message.jstype != null && message.hasOwnProperty("jstype")) - switch (message.jstype) { - default: - return "jstype: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.lazy != null && message.hasOwnProperty("lazy")) - if (typeof message.lazy !== "boolean") - return "lazy: boolean expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.weak != null && message.hasOwnProperty("weak")) - if (typeof message.weak !== "boolean") - return "weak: boolean expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - if (message[".google.api.fieldBehavior"] != null && message.hasOwnProperty(".google.api.fieldBehavior")) { - if (!Array.isArray(message[".google.api.fieldBehavior"])) - return ".google.api.fieldBehavior: array expected"; - for (var i = 0; i < message[".google.api.fieldBehavior"].length; ++i) - switch (message[".google.api.fieldBehavior"][i]) { - default: - return ".google.api.fieldBehavior: enum value[] expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - } - if (message[".google.api.resourceReference"] != null && message.hasOwnProperty(".google.api.resourceReference")) { - var error = $root.google.api.ResourceReference.verify(message[".google.api.resourceReference"]); - if (error) - return ".google.api.resourceReference." + error; - } - return null; - }; - - /** - * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.FieldOptions - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.FieldOptions} FieldOptions - */ - FieldOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FieldOptions) - return object; - var message = new $root.google.protobuf.FieldOptions(); - switch (object.ctype) { - case "STRING": - case 0: - message.ctype = 0; - break; - case "CORD": - case 1: - message.ctype = 1; - break; - case "STRING_PIECE": - case 2: - message.ctype = 2; - break; - } - if (object.packed != null) - message.packed = Boolean(object.packed); - switch (object.jstype) { - case "JS_NORMAL": - case 0: - message.jstype = 0; - break; - case "JS_STRING": - case 1: - message.jstype = 1; - break; - case "JS_NUMBER": - case 2: - message.jstype = 2; - break; - } - if (object.lazy != null) - message.lazy = Boolean(object.lazy); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.weak != null) - message.weak = Boolean(object.weak); - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SourceCodeInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SourceCodeInfo message. + * @function verify + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SourceCodeInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.location != null && message.hasOwnProperty("location")) { + if (!Array.isArray(message.location)) + return "location: array expected"; + for (var i = 0; i < message.location.length; ++i) { + var error = $root.google.protobuf.SourceCodeInfo.Location.verify(message.location[i]); + if (error) + return "location." + error; } } - if (object[".google.api.fieldBehavior"]) { - if (!Array.isArray(object[".google.api.fieldBehavior"])) - throw TypeError(".google.protobuf.FieldOptions..google.api.fieldBehavior: array expected"); - message[".google.api.fieldBehavior"] = []; - for (var i = 0; i < object[".google.api.fieldBehavior"].length; ++i) - switch (object[".google.api.fieldBehavior"][i]) { - default: - case "FIELD_BEHAVIOR_UNSPECIFIED": - case 0: - message[".google.api.fieldBehavior"][i] = 0; - break; - case "OPTIONAL": - case 1: - message[".google.api.fieldBehavior"][i] = 1; - break; - case "REQUIRED": - case 2: - message[".google.api.fieldBehavior"][i] = 2; - break; - case "OUTPUT_ONLY": - case 3: - message[".google.api.fieldBehavior"][i] = 3; - break; - case "INPUT_ONLY": - case 4: - message[".google.api.fieldBehavior"][i] = 4; - break; - case "IMMUTABLE": - case 5: - message[".google.api.fieldBehavior"][i] = 5; - break; - } - } - if (object[".google.api.resourceReference"] != null) { - if (typeof object[".google.api.resourceReference"] !== "object") - throw TypeError(".google.protobuf.FieldOptions..google.api.resourceReference: object expected"); - message[".google.api.resourceReference"] = $root.google.api.ResourceReference.fromObject(object[".google.api.resourceReference"]); + return null; + }; + + /** + * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + */ + SourceCodeInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.SourceCodeInfo) + return object; + var message = new $root.google.protobuf.SourceCodeInfo(); + if (object.location) { + if (!Array.isArray(object.location)) + throw TypeError(".google.protobuf.SourceCodeInfo.location: array expected"); + message.location = []; + for (var i = 0; i < object.location.length; ++i) { + if (typeof object.location[i] !== "object") + throw TypeError(".google.protobuf.SourceCodeInfo.location: object expected"); + message.location[i] = $root.google.protobuf.SourceCodeInfo.Location.fromObject(object.location[i]); + } } return message; }; /** - * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. + * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.SourceCodeInfo * @static - * @param {google.protobuf.FieldOptions} message FieldOptions + * @param {google.protobuf.SourceCodeInfo} message SourceCodeInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FieldOptions.toObject = function toObject(message, options) { + SourceCodeInfo.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.uninterpretedOption = []; - object[".google.api.fieldBehavior"] = []; - } - if (options.defaults) { - object.ctype = options.enums === String ? "STRING" : 0; - object.packed = false; - object.deprecated = false; - object.lazy = false; - object.jstype = options.enums === String ? "JS_NORMAL" : 0; - object.weak = false; - object[".google.api.resourceReference"] = null; - } - if (message.ctype != null && message.hasOwnProperty("ctype")) - object.ctype = options.enums === String ? $root.google.protobuf.FieldOptions.CType[message.ctype] : message.ctype; - if (message.packed != null && message.hasOwnProperty("packed")) - object.packed = message.packed; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.lazy != null && message.hasOwnProperty("lazy")) - object.lazy = message.lazy; - if (message.jstype != null && message.hasOwnProperty("jstype")) - object.jstype = options.enums === String ? $root.google.protobuf.FieldOptions.JSType[message.jstype] : message.jstype; - if (message.weak != null && message.hasOwnProperty("weak")) - object.weak = message.weak; - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); - } - if (message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length) { - object[".google.api.fieldBehavior"] = []; - for (var j = 0; j < message[".google.api.fieldBehavior"].length; ++j) - object[".google.api.fieldBehavior"][j] = options.enums === String ? $root.google.api.FieldBehavior[message[".google.api.fieldBehavior"][j]] : message[".google.api.fieldBehavior"][j]; + if (options.arrays || options.defaults) + object.location = []; + if (message.location && message.location.length) { + object.location = []; + for (var j = 0; j < message.location.length; ++j) + object.location[j] = $root.google.protobuf.SourceCodeInfo.Location.toObject(message.location[j], options); } - if (message[".google.api.resourceReference"] != null && message.hasOwnProperty(".google.api.resourceReference")) - object[".google.api.resourceReference"] = $root.google.api.ResourceReference.toObject(message[".google.api.resourceReference"], options); return object; }; /** - * Converts this FieldOptions to JSON. + * Converts this SourceCodeInfo to JSON. * @function toJSON - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.SourceCodeInfo * @instance * @returns {Object.} JSON object */ - FieldOptions.prototype.toJSON = function toJSON() { + SourceCodeInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * CType enum. - * @name google.protobuf.FieldOptions.CType - * @enum {number} - * @property {number} STRING=0 STRING value - * @property {number} CORD=1 CORD value - * @property {number} STRING_PIECE=2 STRING_PIECE value - */ - FieldOptions.CType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STRING"] = 0; - values[valuesById[1] = "CORD"] = 1; - values[valuesById[2] = "STRING_PIECE"] = 2; - return values; - })(); + SourceCodeInfo.Location = (function() { - /** - * JSType enum. - * @name google.protobuf.FieldOptions.JSType - * @enum {number} - * @property {number} JS_NORMAL=0 JS_NORMAL value - * @property {number} JS_STRING=1 JS_STRING value - * @property {number} JS_NUMBER=2 JS_NUMBER value - */ - FieldOptions.JSType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "JS_NORMAL"] = 0; - values[valuesById[1] = "JS_STRING"] = 1; - values[valuesById[2] = "JS_NUMBER"] = 2; - return values; - })(); + /** + * Properties of a Location. + * @memberof google.protobuf.SourceCodeInfo + * @interface ILocation + * @property {Array.|null} [path] Location path + * @property {Array.|null} [span] Location span + * @property {string|null} [leadingComments] Location leadingComments + * @property {string|null} [trailingComments] Location trailingComments + * @property {Array.|null} [leadingDetachedComments] Location leadingDetachedComments + */ - return FieldOptions; - })(); + /** + * Constructs a new Location. + * @memberof google.protobuf.SourceCodeInfo + * @classdesc Represents a Location. + * @implements ILocation + * @constructor + * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set + */ + function Location(properties) { + this.path = []; + this.span = []; + this.leadingDetachedComments = []; + 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]]; + } - protobuf.OneofOptions = (function() { + /** + * Location path. + * @member {Array.} path + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.path = $util.emptyArray; - /** - * Properties of an OneofOptions. - * @memberof google.protobuf - * @interface IOneofOptions - * @property {Array.|null} [uninterpretedOption] OneofOptions uninterpretedOption - */ + /** + * Location span. + * @member {Array.} span + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.span = $util.emptyArray; - /** - * Constructs a new OneofOptions. - * @memberof google.protobuf - * @classdesc Represents an OneofOptions. - * @implements IOneofOptions - * @constructor - * @param {google.protobuf.IOneofOptions=} [properties] Properties to set - */ - function OneofOptions(properties) { - this.uninterpretedOption = []; - 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]]; - } + /** + * Location leadingComments. + * @member {string} leadingComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.leadingComments = ""; + + /** + * Location trailingComments. + * @member {string} trailingComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.trailingComments = ""; - /** - * OneofOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.OneofOptions - * @instance - */ - OneofOptions.prototype.uninterpretedOption = $util.emptyArray; + /** + * Location leadingDetachedComments. + * @member {Array.} leadingDetachedComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.leadingDetachedComments = $util.emptyArray; - /** - * Creates a new OneofOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.OneofOptions - * @static - * @param {google.protobuf.IOneofOptions=} [properties] Properties to set - * @returns {google.protobuf.OneofOptions} OneofOptions instance - */ - OneofOptions.create = function create(properties) { - return new OneofOptions(properties); - }; + /** + * Creates a new Location instance using the specified properties. + * @function create + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set + * @returns {google.protobuf.SourceCodeInfo.Location} Location instance + */ + Location.create = function create(properties) { + return new Location(properties); + }; - /** - * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.OneofOptions - * @static - * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OneofOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @function encode + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Location.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && message.path.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.path.length; ++i) + writer.int32(message.path[i]); + writer.ldelim(); + } + if (message.span != null && message.span.length) { + writer.uint32(/* id 2, wireType 2 =*/18).fork(); + for (var i = 0; i < message.span.length; ++i) + writer.int32(message.span[i]); + writer.ldelim(); + } + if (message.leadingComments != null && Object.hasOwnProperty.call(message, "leadingComments")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.leadingComments); + if (message.trailingComments != null && Object.hasOwnProperty.call(message, "trailingComments")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.trailingComments); + if (message.leadingDetachedComments != null && message.leadingDetachedComments.length) + for (var i = 0; i < message.leadingDetachedComments.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.leadingDetachedComments[i]); + return writer; + }; - /** - * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.OneofOptions - * @static - * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OneofOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Location.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes an OneofOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.OneofOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.OneofOptions} OneofOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OneofOptions.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.protobuf.OneofOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Decodes a Location message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.SourceCodeInfo.Location} Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Location.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.protobuf.SourceCodeInfo.Location(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else + message.path.push(reader.int32()); + break; + case 2: + if (!(message.span && message.span.length)) + message.span = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.span.push(reader.int32()); + } else + message.span.push(reader.int32()); + break; + case 3: + message.leadingComments = reader.string(); + break; + case 4: + message.trailingComments = reader.string(); + break; + case 6: + if (!(message.leadingDetachedComments && message.leadingDetachedComments.length)) + message.leadingDetachedComments = []; + message.leadingDetachedComments.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes an OneofOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.OneofOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.OneofOptions} OneofOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OneofOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a Location message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.SourceCodeInfo.Location} Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Location.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Location message. + * @function verify + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Location.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.path != null && message.hasOwnProperty("path")) { + if (!Array.isArray(message.path)) + return "path: array expected"; + for (var i = 0; i < message.path.length; ++i) + if (!$util.isInteger(message.path[i])) + return "path: integer[] expected"; + } + if (message.span != null && message.hasOwnProperty("span")) { + if (!Array.isArray(message.span)) + return "span: array expected"; + for (var i = 0; i < message.span.length; ++i) + if (!$util.isInteger(message.span[i])) + return "span: integer[] expected"; + } + if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) + if (!$util.isString(message.leadingComments)) + return "leadingComments: string expected"; + if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) + if (!$util.isString(message.trailingComments)) + return "trailingComments: string expected"; + if (message.leadingDetachedComments != null && message.hasOwnProperty("leadingDetachedComments")) { + if (!Array.isArray(message.leadingDetachedComments)) + return "leadingDetachedComments: array expected"; + for (var i = 0; i < message.leadingDetachedComments.length; ++i) + if (!$util.isString(message.leadingDetachedComments[i])) + return "leadingDetachedComments: string[] expected"; + } + return null; + }; - /** - * Verifies an OneofOptions message. - * @function verify - * @memberof google.protobuf.OneofOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - OneofOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; + /** + * Creates a Location message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.SourceCodeInfo.Location} Location + */ + Location.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.SourceCodeInfo.Location) + return object; + var message = new $root.google.protobuf.SourceCodeInfo.Location(); + if (object.path) { + if (!Array.isArray(object.path)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.path: array expected"); + message.path = []; + for (var i = 0; i < object.path.length; ++i) + message.path[i] = object.path[i] | 0; } - } - return null; - }; + if (object.span) { + if (!Array.isArray(object.span)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.span: array expected"); + message.span = []; + for (var i = 0; i < object.span.length; ++i) + message.span[i] = object.span[i] | 0; + } + if (object.leadingComments != null) + message.leadingComments = String(object.leadingComments); + if (object.trailingComments != null) + message.trailingComments = String(object.trailingComments); + if (object.leadingDetachedComments) { + if (!Array.isArray(object.leadingDetachedComments)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.leadingDetachedComments: array expected"); + message.leadingDetachedComments = []; + for (var i = 0; i < object.leadingDetachedComments.length; ++i) + message.leadingDetachedComments[i] = String(object.leadingDetachedComments[i]); + } + return message; + }; - /** - * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.OneofOptions - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.OneofOptions} OneofOptions - */ - OneofOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.OneofOptions) - return object; - var message = new $root.google.protobuf.OneofOptions(); - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + /** + * Creates a plain object from a Location message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.Location} message Location + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Location.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.path = []; + object.span = []; + object.leadingDetachedComments = []; } - } - return message; - }; + if (options.defaults) { + object.leadingComments = ""; + object.trailingComments = ""; + } + if (message.path && message.path.length) { + object.path = []; + for (var j = 0; j < message.path.length; ++j) + object.path[j] = message.path[j]; + } + if (message.span && message.span.length) { + object.span = []; + for (var j = 0; j < message.span.length; ++j) + object.span[j] = message.span[j]; + } + if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) + object.leadingComments = message.leadingComments; + if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) + object.trailingComments = message.trailingComments; + if (message.leadingDetachedComments && message.leadingDetachedComments.length) { + object.leadingDetachedComments = []; + for (var j = 0; j < message.leadingDetachedComments.length; ++j) + object.leadingDetachedComments[j] = message.leadingDetachedComments[j]; + } + return object; + }; - /** - * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.OneofOptions - * @static - * @param {google.protobuf.OneofOptions} message OneofOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - OneofOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.uninterpretedOption = []; - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); - } - return object; - }; + /** + * Converts this Location to JSON. + * @function toJSON + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + * @returns {Object.} JSON object + */ + Location.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this OneofOptions to JSON. - * @function toJSON - * @memberof google.protobuf.OneofOptions - * @instance - * @returns {Object.} JSON object - */ - OneofOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return Location; + })(); - return OneofOptions; + return SourceCodeInfo; })(); - protobuf.EnumOptions = (function() { + protobuf.GeneratedCodeInfo = (function() { /** - * Properties of an EnumOptions. + * Properties of a GeneratedCodeInfo. * @memberof google.protobuf - * @interface IEnumOptions - * @property {boolean|null} [allowAlias] EnumOptions allowAlias - * @property {boolean|null} [deprecated] EnumOptions deprecated - * @property {Array.|null} [uninterpretedOption] EnumOptions uninterpretedOption + * @interface IGeneratedCodeInfo + * @property {Array.|null} [annotation] GeneratedCodeInfo annotation */ /** - * Constructs a new EnumOptions. + * Constructs a new GeneratedCodeInfo. * @memberof google.protobuf - * @classdesc Represents an EnumOptions. - * @implements IEnumOptions + * @classdesc Represents a GeneratedCodeInfo. + * @implements IGeneratedCodeInfo * @constructor - * @param {google.protobuf.IEnumOptions=} [properties] Properties to set + * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set */ - function EnumOptions(properties) { - this.uninterpretedOption = []; + function GeneratedCodeInfo(properties) { + this.annotation = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -60117,104 +94246,78 @@ } /** - * EnumOptions allowAlias. - * @member {boolean} allowAlias - * @memberof google.protobuf.EnumOptions - * @instance - */ - EnumOptions.prototype.allowAlias = false; - - /** - * EnumOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.EnumOptions - * @instance - */ - EnumOptions.prototype.deprecated = false; - - /** - * EnumOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.EnumOptions + * GeneratedCodeInfo annotation. + * @member {Array.} annotation + * @memberof google.protobuf.GeneratedCodeInfo * @instance */ - EnumOptions.prototype.uninterpretedOption = $util.emptyArray; + GeneratedCodeInfo.prototype.annotation = $util.emptyArray; /** - * Creates a new EnumOptions instance using the specified properties. + * Creates a new GeneratedCodeInfo instance using the specified properties. * @function create - * @memberof google.protobuf.EnumOptions + * @memberof google.protobuf.GeneratedCodeInfo * @static - * @param {google.protobuf.IEnumOptions=} [properties] Properties to set - * @returns {google.protobuf.EnumOptions} EnumOptions instance + * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo instance */ - EnumOptions.create = function create(properties) { - return new EnumOptions(properties); + GeneratedCodeInfo.create = function create(properties) { + return new GeneratedCodeInfo(properties); }; /** - * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. * @function encode - * @memberof google.protobuf.EnumOptions + * @memberof google.protobuf.GeneratedCodeInfo * @static - * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode + * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumOptions.encode = function encode(message, writer) { + GeneratedCodeInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.allowAlias != null && Object.hasOwnProperty.call(message, "allowAlias")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowAlias); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message.annotation != null && message.annotation.length) + for (var i = 0; i < message.annotation.length; ++i) + $root.google.protobuf.GeneratedCodeInfo.Annotation.encode(message.annotation[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.EnumOptions + * @memberof google.protobuf.GeneratedCodeInfo * @static - * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode + * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumOptions.encodeDelimited = function encodeDelimited(message, writer) { + GeneratedCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EnumOptions message from the specified reader or buffer. + * Decodes a GeneratedCodeInfo message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.EnumOptions + * @memberof google.protobuf.GeneratedCodeInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumOptions} EnumOptions + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnumOptions.decode = function decode(reader, length) { + GeneratedCodeInfo.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.protobuf.EnumOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: - message.allowAlias = reader.bool(); - break; - case 3: - message.deprecated = reader.bool(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + case 1: + if (!(message.annotation && message.annotation.length)) + message.annotation = []; + message.annotation.push($root.google.protobuf.GeneratedCodeInfo.Annotation.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -60225,377 +94328,404 @@ }; /** - * Decodes an EnumOptions message from the specified reader or buffer, length delimited. + * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.EnumOptions + * @memberof google.protobuf.GeneratedCodeInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumOptions} EnumOptions + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnumOptions.decodeDelimited = function decodeDelimited(reader) { + GeneratedCodeInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EnumOptions message. + * Verifies a GeneratedCodeInfo message. * @function verify - * @memberof google.protobuf.EnumOptions + * @memberof google.protobuf.GeneratedCodeInfo * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnumOptions.verify = function verify(message) { + GeneratedCodeInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) - if (typeof message.allowAlias !== "boolean") - return "allowAlias: boolean expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (message.annotation != null && message.hasOwnProperty("annotation")) { + if (!Array.isArray(message.annotation)) + return "annotation: array expected"; + for (var i = 0; i < message.annotation.length; ++i) { + var error = $root.google.protobuf.GeneratedCodeInfo.Annotation.verify(message.annotation[i]); if (error) - return "uninterpretedOption." + error; + return "annotation." + error; } } return null; }; /** - * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types. + * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.EnumOptions + * @memberof google.protobuf.GeneratedCodeInfo * @static * @param {Object.} object Plain object - * @returns {google.protobuf.EnumOptions} EnumOptions + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo */ - EnumOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.EnumOptions) + GeneratedCodeInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.GeneratedCodeInfo) return object; - var message = new $root.google.protobuf.EnumOptions(); - if (object.allowAlias != null) - message.allowAlias = Boolean(object.allowAlias); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + var message = new $root.google.protobuf.GeneratedCodeInfo(); + if (object.annotation) { + if (!Array.isArray(object.annotation)) + throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: array expected"); + message.annotation = []; + for (var i = 0; i < object.annotation.length; ++i) { + if (typeof object.annotation[i] !== "object") + throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: object expected"); + message.annotation[i] = $root.google.protobuf.GeneratedCodeInfo.Annotation.fromObject(object.annotation[i]); } } return message; }; /** - * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. + * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.EnumOptions + * @memberof google.protobuf.GeneratedCodeInfo * @static - * @param {google.protobuf.EnumOptions} message EnumOptions + * @param {google.protobuf.GeneratedCodeInfo} message GeneratedCodeInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnumOptions.toObject = function toObject(message, options) { + GeneratedCodeInfo.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.uninterpretedOption = []; - if (options.defaults) { - object.allowAlias = false; - object.deprecated = false; - } - if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) - object.allowAlias = message.allowAlias; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); - } - return object; - }; - - /** - * Converts this EnumOptions to JSON. - * @function toJSON - * @memberof google.protobuf.EnumOptions - * @instance - * @returns {Object.} JSON object - */ - EnumOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return EnumOptions; - })(); - - protobuf.EnumValueOptions = (function() { - - /** - * Properties of an EnumValueOptions. - * @memberof google.protobuf - * @interface IEnumValueOptions - * @property {boolean|null} [deprecated] EnumValueOptions deprecated - * @property {Array.|null} [uninterpretedOption] EnumValueOptions uninterpretedOption - */ - - /** - * Constructs a new EnumValueOptions. - * @memberof google.protobuf - * @classdesc Represents an EnumValueOptions. - * @implements IEnumValueOptions - * @constructor - * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set - */ - function EnumValueOptions(properties) { - this.uninterpretedOption = []; - 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]]; - } - - /** - * EnumValueOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.EnumValueOptions - * @instance - */ - EnumValueOptions.prototype.deprecated = false; - - /** - * EnumValueOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.EnumValueOptions - * @instance - */ - EnumValueOptions.prototype.uninterpretedOption = $util.emptyArray; - - /** - * Creates a new EnumValueOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set - * @returns {google.protobuf.EnumValueOptions} EnumValueOptions instance - */ - EnumValueOptions.create = function create(properties) { - return new EnumValueOptions(properties); - }; - - /** - * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumValueOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deprecated); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumValueOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an EnumValueOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumValueOptions} EnumValueOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumValueOptions.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.protobuf.EnumValueOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.deprecated = reader.bool(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } + object.annotation = []; + if (message.annotation && message.annotation.length) { + object.annotation = []; + for (var j = 0; j < message.annotation.length; ++j) + object.annotation[j] = $root.google.protobuf.GeneratedCodeInfo.Annotation.toObject(message.annotation[j], options); } - return message; + return object; }; /** - * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumValueOptions} EnumValueOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Converts this GeneratedCodeInfo to JSON. + * @function toJSON + * @memberof google.protobuf.GeneratedCodeInfo + * @instance + * @returns {Object.} JSON object */ - EnumValueOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); + GeneratedCodeInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * Verifies an EnumValueOptions message. - * @function verify - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EnumValueOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; + GeneratedCodeInfo.Annotation = (function() { + + /** + * Properties of an Annotation. + * @memberof google.protobuf.GeneratedCodeInfo + * @interface IAnnotation + * @property {Array.|null} [path] Annotation path + * @property {string|null} [sourceFile] Annotation sourceFile + * @property {number|null} [begin] Annotation begin + * @property {number|null} [end] Annotation end + */ + + /** + * Constructs a new Annotation. + * @memberof google.protobuf.GeneratedCodeInfo + * @classdesc Represents an Annotation. + * @implements IAnnotation + * @constructor + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set + */ + function Annotation(properties) { + this.path = []; + 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]]; + } + + /** + * Annotation path. + * @member {Array.} path + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.path = $util.emptyArray; + + /** + * Annotation sourceFile. + * @member {string} sourceFile + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.sourceFile = ""; + + /** + * Annotation begin. + * @member {number} begin + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.begin = 0; + + /** + * Annotation end. + * @member {number} end + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.end = 0; + + /** + * Creates a new Annotation instance using the specified properties. + * @function create + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation instance + */ + Annotation.create = function create(properties) { + return new Annotation(properties); + }; + + /** + * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @function encode + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Annotation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && message.path.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.path.length; ++i) + writer.int32(message.path[i]); + writer.ldelim(); + } + if (message.sourceFile != null && Object.hasOwnProperty.call(message, "sourceFile")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceFile); + if (message.begin != null && Object.hasOwnProperty.call(message, "begin")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.begin); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.end); + return writer; + }; + + /** + * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Annotation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Annotation message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Annotation.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.protobuf.GeneratedCodeInfo.Annotation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else + message.path.push(reader.int32()); + break; + case 2: + message.sourceFile = reader.string(); + break; + case 3: + message.begin = reader.int32(); + break; + case 4: + message.end = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Annotation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Annotation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Annotation message. + * @function verify + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Annotation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.path != null && message.hasOwnProperty("path")) { + if (!Array.isArray(message.path)) + return "path: array expected"; + for (var i = 0; i < message.path.length; ++i) + if (!$util.isInteger(message.path[i])) + return "path: integer[] expected"; + } + if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) + if (!$util.isString(message.sourceFile)) + return "sourceFile: string expected"; + if (message.begin != null && message.hasOwnProperty("begin")) + if (!$util.isInteger(message.begin)) + return "begin: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; + + /** + * Creates an Annotation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + */ + Annotation.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.GeneratedCodeInfo.Annotation) + return object; + var message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); + if (object.path) { + if (!Array.isArray(object.path)) + throw TypeError(".google.protobuf.GeneratedCodeInfo.Annotation.path: array expected"); + message.path = []; + for (var i = 0; i < object.path.length; ++i) + message.path[i] = object.path[i] | 0; } - } - return null; - }; + if (object.sourceFile != null) + message.sourceFile = String(object.sourceFile); + if (object.begin != null) + message.begin = object.begin | 0; + if (object.end != null) + message.end = object.end | 0; + return message; + }; - /** - * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.EnumValueOptions} EnumValueOptions - */ - EnumValueOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.EnumValueOptions) - return object; - var message = new $root.google.protobuf.EnumValueOptions(); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + /** + * Creates a plain object from an Annotation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.Annotation} message Annotation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Annotation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.path = []; + if (options.defaults) { + object.sourceFile = ""; + object.begin = 0; + object.end = 0; } - } - return message; - }; + if (message.path && message.path.length) { + object.path = []; + for (var j = 0; j < message.path.length; ++j) + object.path[j] = message.path[j]; + } + if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) + object.sourceFile = message.sourceFile; + if (message.begin != null && message.hasOwnProperty("begin")) + object.begin = message.begin; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + return object; + }; - /** - * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {google.protobuf.EnumValueOptions} message EnumValueOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - EnumValueOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.uninterpretedOption = []; - if (options.defaults) - object.deprecated = false; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); - } - return object; - }; + /** + * Converts this Annotation to JSON. + * @function toJSON + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + * @returns {Object.} JSON object + */ + Annotation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this EnumValueOptions to JSON. - * @function toJSON - * @memberof google.protobuf.EnumValueOptions - * @instance - * @returns {Object.} JSON object - */ - EnumValueOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return Annotation; + })(); - return EnumValueOptions; + return GeneratedCodeInfo; })(); - protobuf.ServiceOptions = (function() { + protobuf.Struct = (function() { /** - * Properties of a ServiceOptions. + * Properties of a Struct. * @memberof google.protobuf - * @interface IServiceOptions - * @property {boolean|null} [deprecated] ServiceOptions deprecated - * @property {Array.|null} [uninterpretedOption] ServiceOptions uninterpretedOption - * @property {string|null} [".google.api.defaultHost"] ServiceOptions .google.api.defaultHost - * @property {string|null} [".google.api.oauthScopes"] ServiceOptions .google.api.oauthScopes + * @interface IStruct + * @property {Object.|null} [fields] Struct fields */ /** - * Constructs a new ServiceOptions. + * Constructs a new Struct. * @memberof google.protobuf - * @classdesc Represents a ServiceOptions. - * @implements IServiceOptions + * @classdesc Represents a Struct. + * @implements IStruct * @constructor - * @param {google.protobuf.IServiceOptions=} [properties] Properties to set + * @param {google.protobuf.IStruct=} [properties] Properties to set */ - function ServiceOptions(properties) { - this.uninterpretedOption = []; + function Struct(properties) { + this.fields = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -60603,117 +94733,97 @@ } /** - * ServiceOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.ServiceOptions - * @instance - */ - ServiceOptions.prototype.deprecated = false; - - /** - * ServiceOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.ServiceOptions - * @instance - */ - ServiceOptions.prototype.uninterpretedOption = $util.emptyArray; - - /** - * ServiceOptions .google.api.defaultHost. - * @member {string} .google.api.defaultHost - * @memberof google.protobuf.ServiceOptions - * @instance - */ - ServiceOptions.prototype[".google.api.defaultHost"] = ""; - - /** - * ServiceOptions .google.api.oauthScopes. - * @member {string} .google.api.oauthScopes - * @memberof google.protobuf.ServiceOptions + * Struct fields. + * @member {Object.} fields + * @memberof google.protobuf.Struct * @instance */ - ServiceOptions.prototype[".google.api.oauthScopes"] = ""; + Struct.prototype.fields = $util.emptyObject; /** - * Creates a new ServiceOptions instance using the specified properties. + * Creates a new Struct instance using the specified properties. * @function create - * @memberof google.protobuf.ServiceOptions + * @memberof google.protobuf.Struct * @static - * @param {google.protobuf.IServiceOptions=} [properties] Properties to set - * @returns {google.protobuf.ServiceOptions} ServiceOptions instance + * @param {google.protobuf.IStruct=} [properties] Properties to set + * @returns {google.protobuf.Struct} Struct instance */ - ServiceOptions.create = function create(properties) { - return new ServiceOptions(properties); + Struct.create = function create(properties) { + return new Struct(properties); }; /** - * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * Encodes the specified Struct message. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages. * @function encode - * @memberof google.protobuf.ServiceOptions + * @memberof google.protobuf.Struct * @static - * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode + * @param {google.protobuf.IStruct} message Struct message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceOptions.encode = function encode(message, writer) { + Struct.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".google.api.defaultHost"] != null && Object.hasOwnProperty.call(message, ".google.api.defaultHost")) - writer.uint32(/* id 1049, wireType 2 =*/8394).string(message[".google.api.defaultHost"]); - if (message[".google.api.oauthScopes"] != null && Object.hasOwnProperty.call(message, ".google.api.oauthScopes")) - writer.uint32(/* id 1050, wireType 2 =*/8402).string(message[".google.api.oauthScopes"]); + if (message.fields != null && Object.hasOwnProperty.call(message, "fields")) + for (var keys = Object.keys(message.fields), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.protobuf.Value.encode(message.fields[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * Encodes the specified Struct message, length delimited. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.ServiceOptions + * @memberof google.protobuf.Struct * @static - * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode + * @param {google.protobuf.IStruct} message Struct message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceOptions.encodeDelimited = function encodeDelimited(message, writer) { + Struct.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ServiceOptions message from the specified reader or buffer. + * Decodes a Struct message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.ServiceOptions + * @memberof google.protobuf.Struct * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.ServiceOptions} ServiceOptions + * @returns {google.protobuf.Struct} Struct * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceOptions.decode = function decode(reader, length) { + Struct.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.protobuf.ServiceOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Struct(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 33: - message.deprecated = reader.bool(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - case 1049: - message[".google.api.defaultHost"] = reader.string(); - break; - case 1050: - message[".google.api.oauthScopes"] = reader.string(); + case 1: + if (message.fields === $util.emptyObject) + message.fields = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.fields[key] = value; break; default: reader.skipType(tag & 7); @@ -60724,157 +94834,131 @@ }; /** - * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. + * Decodes a Struct message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.ServiceOptions + * @memberof google.protobuf.Struct * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.ServiceOptions} ServiceOptions + * @returns {google.protobuf.Struct} Struct * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceOptions.decodeDelimited = function decodeDelimited(reader) { + Struct.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ServiceOptions message. + * Verifies a Struct message. * @function verify - * @memberof google.protobuf.ServiceOptions + * @memberof google.protobuf.Struct * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ServiceOptions.verify = function verify(message) { + Struct.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (message.fields != null && message.hasOwnProperty("fields")) { + if (!$util.isObject(message.fields)) + return "fields: object expected"; + var key = Object.keys(message.fields); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.fields[key[i]]); if (error) - return "uninterpretedOption." + error; + return "fields." + error; } } - if (message[".google.api.defaultHost"] != null && message.hasOwnProperty(".google.api.defaultHost")) - if (!$util.isString(message[".google.api.defaultHost"])) - return ".google.api.defaultHost: string expected"; - if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes")) - if (!$util.isString(message[".google.api.oauthScopes"])) - return ".google.api.oauthScopes: string expected"; return null; }; /** - * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. + * Creates a Struct message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.ServiceOptions + * @memberof google.protobuf.Struct * @static * @param {Object.} object Plain object - * @returns {google.protobuf.ServiceOptions} ServiceOptions + * @returns {google.protobuf.Struct} Struct */ - ServiceOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.ServiceOptions) + Struct.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Struct) return object; - var message = new $root.google.protobuf.ServiceOptions(); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + var message = new $root.google.protobuf.Struct(); + if (object.fields) { + if (typeof object.fields !== "object") + throw TypeError(".google.protobuf.Struct.fields: object expected"); + message.fields = {}; + for (var keys = Object.keys(object.fields), i = 0; i < keys.length; ++i) { + if (typeof object.fields[keys[i]] !== "object") + throw TypeError(".google.protobuf.Struct.fields: object expected"); + message.fields[keys[i]] = $root.google.protobuf.Value.fromObject(object.fields[keys[i]]); } } - if (object[".google.api.defaultHost"] != null) - message[".google.api.defaultHost"] = String(object[".google.api.defaultHost"]); - if (object[".google.api.oauthScopes"] != null) - message[".google.api.oauthScopes"] = String(object[".google.api.oauthScopes"]); return message; }; /** - * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. + * Creates a plain object from a Struct message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.ServiceOptions + * @memberof google.protobuf.Struct * @static - * @param {google.protobuf.ServiceOptions} message ServiceOptions + * @param {google.protobuf.Struct} message Struct * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceOptions.toObject = function toObject(message, options) { + Struct.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.uninterpretedOption = []; - if (options.defaults) { - object.deprecated = false; - object[".google.api.defaultHost"] = ""; - object[".google.api.oauthScopes"] = ""; - } - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + if (options.objects || options.defaults) + object.fields = {}; + var keys2; + if (message.fields && (keys2 = Object.keys(message.fields)).length) { + object.fields = {}; + for (var j = 0; j < keys2.length; ++j) + object.fields[keys2[j]] = $root.google.protobuf.Value.toObject(message.fields[keys2[j]], options); } - if (message[".google.api.defaultHost"] != null && message.hasOwnProperty(".google.api.defaultHost")) - object[".google.api.defaultHost"] = message[".google.api.defaultHost"]; - if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes")) - object[".google.api.oauthScopes"] = message[".google.api.oauthScopes"]; return object; }; /** - * Converts this ServiceOptions to JSON. + * Converts this Struct to JSON. * @function toJSON - * @memberof google.protobuf.ServiceOptions + * @memberof google.protobuf.Struct * @instance * @returns {Object.} JSON object */ - ServiceOptions.prototype.toJSON = function toJSON() { + Struct.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ServiceOptions; + return Struct; })(); - protobuf.MethodOptions = (function() { + protobuf.Value = (function() { /** - * Properties of a MethodOptions. + * Properties of a Value. * @memberof google.protobuf - * @interface IMethodOptions - * @property {boolean|null} [deprecated] MethodOptions deprecated - * @property {google.protobuf.MethodOptions.IdempotencyLevel|null} [idempotencyLevel] MethodOptions idempotencyLevel - * @property {Array.|null} [uninterpretedOption] MethodOptions uninterpretedOption - * @property {google.api.IHttpRule|null} [".google.api.http"] MethodOptions .google.api.http - * @property {Array.|null} [".google.api.methodSignature"] MethodOptions .google.api.methodSignature - * @property {google.longrunning.IOperationInfo|null} [".google.longrunning.operationInfo"] MethodOptions .google.longrunning.operationInfo + * @interface IValue + * @property {google.protobuf.NullValue|null} [nullValue] Value nullValue + * @property {number|null} [numberValue] Value numberValue + * @property {string|null} [stringValue] Value stringValue + * @property {boolean|null} [boolValue] Value boolValue + * @property {google.protobuf.IStruct|null} [structValue] Value structValue + * @property {google.protobuf.IListValue|null} [listValue] Value listValue */ /** - * Constructs a new MethodOptions. + * Constructs a new Value. * @memberof google.protobuf - * @classdesc Represents a MethodOptions. - * @implements IMethodOptions + * @classdesc Represents a Value. + * @implements IValue * @constructor - * @param {google.protobuf.IMethodOptions=} [properties] Properties to set + * @param {google.protobuf.IValue=} [properties] Properties to set */ - function MethodOptions(properties) { - this.uninterpretedOption = []; - this[".google.api.methodSignature"] = []; + function Value(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -60882,146 +94966,154 @@ } /** - * MethodOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.MethodOptions + * Value nullValue. + * @member {google.protobuf.NullValue} nullValue + * @memberof google.protobuf.Value * @instance */ - MethodOptions.prototype.deprecated = false; + Value.prototype.nullValue = 0; /** - * MethodOptions idempotencyLevel. - * @member {google.protobuf.MethodOptions.IdempotencyLevel} idempotencyLevel - * @memberof google.protobuf.MethodOptions + * Value numberValue. + * @member {number} numberValue + * @memberof google.protobuf.Value * @instance */ - MethodOptions.prototype.idempotencyLevel = 0; + Value.prototype.numberValue = 0; /** - * MethodOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.MethodOptions + * Value stringValue. + * @member {string} stringValue + * @memberof google.protobuf.Value * @instance */ - MethodOptions.prototype.uninterpretedOption = $util.emptyArray; + Value.prototype.stringValue = ""; /** - * MethodOptions .google.api.http. - * @member {google.api.IHttpRule|null|undefined} .google.api.http - * @memberof google.protobuf.MethodOptions + * Value boolValue. + * @member {boolean} boolValue + * @memberof google.protobuf.Value * @instance */ - MethodOptions.prototype[".google.api.http"] = null; + Value.prototype.boolValue = false; /** - * MethodOptions .google.api.methodSignature. - * @member {Array.} .google.api.methodSignature - * @memberof google.protobuf.MethodOptions + * Value structValue. + * @member {google.protobuf.IStruct|null|undefined} structValue + * @memberof google.protobuf.Value * @instance */ - MethodOptions.prototype[".google.api.methodSignature"] = $util.emptyArray; + Value.prototype.structValue = null; /** - * MethodOptions .google.longrunning.operationInfo. - * @member {google.longrunning.IOperationInfo|null|undefined} .google.longrunning.operationInfo - * @memberof google.protobuf.MethodOptions + * Value listValue. + * @member {google.protobuf.IListValue|null|undefined} listValue + * @memberof google.protobuf.Value * @instance */ - MethodOptions.prototype[".google.longrunning.operationInfo"] = null; + Value.prototype.listValue = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Creates a new MethodOptions instance using the specified properties. + * Value kind. + * @member {"nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue"|undefined} kind + * @memberof google.protobuf.Value + * @instance + */ + Object.defineProperty(Value.prototype, "kind", { + get: $util.oneOfGetter($oneOfFields = ["nullValue", "numberValue", "stringValue", "boolValue", "structValue", "listValue"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Value instance using the specified properties. * @function create - * @memberof google.protobuf.MethodOptions + * @memberof google.protobuf.Value * @static - * @param {google.protobuf.IMethodOptions=} [properties] Properties to set - * @returns {google.protobuf.MethodOptions} MethodOptions instance + * @param {google.protobuf.IValue=} [properties] Properties to set + * @returns {google.protobuf.Value} Value instance */ - MethodOptions.create = function create(properties) { - return new MethodOptions(properties); + Value.create = function create(properties) { + return new Value(properties); }; /** - * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * Encodes the specified Value message. Does not implicitly {@link google.protobuf.Value.verify|verify} messages. * @function encode - * @memberof google.protobuf.MethodOptions + * @memberof google.protobuf.Value * @static - * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode + * @param {google.protobuf.IValue} message Value message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MethodOptions.encode = function encode(message, writer) { + Value.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); - if (message.idempotencyLevel != null && Object.hasOwnProperty.call(message, "idempotencyLevel")) - writer.uint32(/* id 34, wireType 0 =*/272).int32(message.idempotencyLevel); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".google.longrunning.operationInfo"] != null && Object.hasOwnProperty.call(message, ".google.longrunning.operationInfo")) - $root.google.longrunning.OperationInfo.encode(message[".google.longrunning.operationInfo"], writer.uint32(/* id 1049, wireType 2 =*/8394).fork()).ldelim(); - if (message[".google.api.methodSignature"] != null && message[".google.api.methodSignature"].length) - for (var i = 0; i < message[".google.api.methodSignature"].length; ++i) - writer.uint32(/* id 1051, wireType 2 =*/8410).string(message[".google.api.methodSignature"][i]); - if (message[".google.api.http"] != null && Object.hasOwnProperty.call(message, ".google.api.http")) - $root.google.api.HttpRule.encode(message[".google.api.http"], writer.uint32(/* id 72295728, wireType 2 =*/578365826).fork()).ldelim(); + if (message.nullValue != null && Object.hasOwnProperty.call(message, "nullValue")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.nullValue); + if (message.numberValue != null && Object.hasOwnProperty.call(message, "numberValue")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.numberValue); + if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.stringValue); + if (message.boolValue != null && Object.hasOwnProperty.call(message, "boolValue")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.boolValue); + if (message.structValue != null && Object.hasOwnProperty.call(message, "structValue")) + $root.google.protobuf.Struct.encode(message.structValue, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.listValue != null && Object.hasOwnProperty.call(message, "listValue")) + $root.google.protobuf.ListValue.encode(message.listValue, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; /** - * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * Encodes the specified Value message, length delimited. Does not implicitly {@link google.protobuf.Value.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.MethodOptions + * @memberof google.protobuf.Value * @static - * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode + * @param {google.protobuf.IValue} message Value message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MethodOptions.encodeDelimited = function encodeDelimited(message, writer) { + Value.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MethodOptions message from the specified reader or buffer. + * Decodes a Value message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.MethodOptions + * @memberof google.protobuf.Value * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.MethodOptions} MethodOptions + * @returns {google.protobuf.Value} Value * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MethodOptions.decode = function decode(reader, length) { + Value.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.protobuf.MethodOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Value(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 33: - message.deprecated = reader.bool(); + case 1: + message.nullValue = reader.int32(); break; - case 34: - message.idempotencyLevel = reader.int32(); + case 2: + message.numberValue = reader.double(); break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + case 3: + message.stringValue = reader.string(); break; - case 72295728: - message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32()); + case 4: + message.boolValue = reader.bool(); break; - case 1051: - if (!(message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length)) - message[".google.api.methodSignature"] = []; - message[".google.api.methodSignature"].push(reader.string()); + case 5: + message.structValue = $root.google.protobuf.Struct.decode(reader, reader.uint32()); break; - case 1049: - message[".google.longrunning.operationInfo"] = $root.google.longrunning.OperationInfo.decode(reader, reader.uint32()); + case 6: + message.listValue = $root.google.protobuf.ListValue.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -61032,230 +95124,214 @@ }; /** - * Decodes a MethodOptions message from the specified reader or buffer, length delimited. + * Decodes a Value message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.MethodOptions + * @memberof google.protobuf.Value * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.MethodOptions} MethodOptions + * @returns {google.protobuf.Value} Value * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MethodOptions.decodeDelimited = function decodeDelimited(reader) { + Value.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MethodOptions message. + * Verifies a Value message. * @function verify - * @memberof google.protobuf.MethodOptions + * @memberof google.protobuf.Value * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MethodOptions.verify = function verify(message) { + Value.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) - switch (message.idempotencyLevel) { + var properties = {}; + if (message.nullValue != null && message.hasOwnProperty("nullValue")) { + properties.kind = 1; + switch (message.nullValue) { default: - return "idempotencyLevel: enum value expected"; + return "nullValue: enum value expected"; case 0: - case 1: - case 2: break; } - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } } - if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) { - var error = $root.google.api.HttpRule.verify(message[".google.api.http"]); - if (error) - return ".google.api.http." + error; + if (message.numberValue != null && message.hasOwnProperty("numberValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + if (typeof message.numberValue !== "number") + return "numberValue: number expected"; } - if (message[".google.api.methodSignature"] != null && message.hasOwnProperty(".google.api.methodSignature")) { - if (!Array.isArray(message[".google.api.methodSignature"])) - return ".google.api.methodSignature: array expected"; - for (var i = 0; i < message[".google.api.methodSignature"].length; ++i) - if (!$util.isString(message[".google.api.methodSignature"][i])) - return ".google.api.methodSignature: string[] expected"; + if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + if (!$util.isString(message.stringValue)) + return "stringValue: string expected"; } - if (message[".google.longrunning.operationInfo"] != null && message.hasOwnProperty(".google.longrunning.operationInfo")) { - var error = $root.google.longrunning.OperationInfo.verify(message[".google.longrunning.operationInfo"]); - if (error) - return ".google.longrunning.operationInfo." + error; + if (message.boolValue != null && message.hasOwnProperty("boolValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + if (typeof message.boolValue !== "boolean") + return "boolValue: boolean expected"; + } + if (message.structValue != null && message.hasOwnProperty("structValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.protobuf.Struct.verify(message.structValue); + if (error) + return "structValue." + error; + } + } + if (message.listValue != null && message.hasOwnProperty("listValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.protobuf.ListValue.verify(message.listValue); + if (error) + return "listValue." + error; + } } return null; }; /** - * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types. + * Creates a Value message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.MethodOptions + * @memberof google.protobuf.Value * @static * @param {Object.} object Plain object - * @returns {google.protobuf.MethodOptions} MethodOptions + * @returns {google.protobuf.Value} Value */ - MethodOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.MethodOptions) + Value.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Value) return object; - var message = new $root.google.protobuf.MethodOptions(); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - switch (object.idempotencyLevel) { - case "IDEMPOTENCY_UNKNOWN": + var message = new $root.google.protobuf.Value(); + switch (object.nullValue) { + case "NULL_VALUE": case 0: - message.idempotencyLevel = 0; - break; - case "NO_SIDE_EFFECTS": - case 1: - message.idempotencyLevel = 1; - break; - case "IDEMPOTENT": - case 2: - message.idempotencyLevel = 2; + message.nullValue = 0; break; } - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); - } - } - if (object[".google.api.http"] != null) { - if (typeof object[".google.api.http"] !== "object") - throw TypeError(".google.protobuf.MethodOptions..google.api.http: object expected"); - message[".google.api.http"] = $root.google.api.HttpRule.fromObject(object[".google.api.http"]); - } - if (object[".google.api.methodSignature"]) { - if (!Array.isArray(object[".google.api.methodSignature"])) - throw TypeError(".google.protobuf.MethodOptions..google.api.methodSignature: array expected"); - message[".google.api.methodSignature"] = []; - for (var i = 0; i < object[".google.api.methodSignature"].length; ++i) - message[".google.api.methodSignature"][i] = String(object[".google.api.methodSignature"][i]); + if (object.numberValue != null) + message.numberValue = Number(object.numberValue); + if (object.stringValue != null) + message.stringValue = String(object.stringValue); + if (object.boolValue != null) + message.boolValue = Boolean(object.boolValue); + if (object.structValue != null) { + if (typeof object.structValue !== "object") + throw TypeError(".google.protobuf.Value.structValue: object expected"); + message.structValue = $root.google.protobuf.Struct.fromObject(object.structValue); } - if (object[".google.longrunning.operationInfo"] != null) { - if (typeof object[".google.longrunning.operationInfo"] !== "object") - throw TypeError(".google.protobuf.MethodOptions..google.longrunning.operationInfo: object expected"); - message[".google.longrunning.operationInfo"] = $root.google.longrunning.OperationInfo.fromObject(object[".google.longrunning.operationInfo"]); + if (object.listValue != null) { + if (typeof object.listValue !== "object") + throw TypeError(".google.protobuf.Value.listValue: object expected"); + message.listValue = $root.google.protobuf.ListValue.fromObject(object.listValue); } return message; }; /** - * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. + * Creates a plain object from a Value message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.MethodOptions + * @memberof google.protobuf.Value * @static - * @param {google.protobuf.MethodOptions} message MethodOptions + * @param {google.protobuf.Value} message Value * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MethodOptions.toObject = function toObject(message, options) { + Value.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.uninterpretedOption = []; - object[".google.api.methodSignature"] = []; + if (message.nullValue != null && message.hasOwnProperty("nullValue")) { + object.nullValue = options.enums === String ? $root.google.protobuf.NullValue[message.nullValue] : message.nullValue; + if (options.oneofs) + object.kind = "nullValue"; } - if (options.defaults) { - object.deprecated = false; - object.idempotencyLevel = options.enums === String ? "IDEMPOTENCY_UNKNOWN" : 0; - object[".google.longrunning.operationInfo"] = null; - object[".google.api.http"] = null; + if (message.numberValue != null && message.hasOwnProperty("numberValue")) { + object.numberValue = options.json && !isFinite(message.numberValue) ? String(message.numberValue) : message.numberValue; + if (options.oneofs) + object.kind = "numberValue"; } - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) - object.idempotencyLevel = options.enums === String ? $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] : message.idempotencyLevel; - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + object.stringValue = message.stringValue; + if (options.oneofs) + object.kind = "stringValue"; } - if (message[".google.longrunning.operationInfo"] != null && message.hasOwnProperty(".google.longrunning.operationInfo")) - object[".google.longrunning.operationInfo"] = $root.google.longrunning.OperationInfo.toObject(message[".google.longrunning.operationInfo"], options); - if (message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length) { - object[".google.api.methodSignature"] = []; - for (var j = 0; j < message[".google.api.methodSignature"].length; ++j) - object[".google.api.methodSignature"][j] = message[".google.api.methodSignature"][j]; + if (message.boolValue != null && message.hasOwnProperty("boolValue")) { + object.boolValue = message.boolValue; + if (options.oneofs) + object.kind = "boolValue"; + } + if (message.structValue != null && message.hasOwnProperty("structValue")) { + object.structValue = $root.google.protobuf.Struct.toObject(message.structValue, options); + if (options.oneofs) + object.kind = "structValue"; + } + if (message.listValue != null && message.hasOwnProperty("listValue")) { + object.listValue = $root.google.protobuf.ListValue.toObject(message.listValue, options); + if (options.oneofs) + object.kind = "listValue"; } - if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) - object[".google.api.http"] = $root.google.api.HttpRule.toObject(message[".google.api.http"], options); return object; }; /** - * Converts this MethodOptions to JSON. + * Converts this Value to JSON. * @function toJSON - * @memberof google.protobuf.MethodOptions + * @memberof google.protobuf.Value * @instance * @returns {Object.} JSON object */ - MethodOptions.prototype.toJSON = function toJSON() { + Value.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * IdempotencyLevel enum. - * @name google.protobuf.MethodOptions.IdempotencyLevel - * @enum {number} - * @property {number} IDEMPOTENCY_UNKNOWN=0 IDEMPOTENCY_UNKNOWN value - * @property {number} NO_SIDE_EFFECTS=1 NO_SIDE_EFFECTS value - * @property {number} IDEMPOTENT=2 IDEMPOTENT value - */ - MethodOptions.IdempotencyLevel = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "IDEMPOTENCY_UNKNOWN"] = 0; - values[valuesById[1] = "NO_SIDE_EFFECTS"] = 1; - values[valuesById[2] = "IDEMPOTENT"] = 2; - return values; - })(); + return Value; + })(); - return MethodOptions; + /** + * NullValue enum. + * @name google.protobuf.NullValue + * @enum {number} + * @property {number} NULL_VALUE=0 NULL_VALUE value + */ + protobuf.NullValue = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NULL_VALUE"] = 0; + return values; })(); - protobuf.UninterpretedOption = (function() { + protobuf.ListValue = (function() { /** - * Properties of an UninterpretedOption. + * Properties of a ListValue. * @memberof google.protobuf - * @interface IUninterpretedOption - * @property {Array.|null} [name] UninterpretedOption name - * @property {string|null} [identifierValue] UninterpretedOption identifierValue - * @property {number|Long|null} [positiveIntValue] UninterpretedOption positiveIntValue - * @property {number|Long|null} [negativeIntValue] UninterpretedOption negativeIntValue - * @property {number|null} [doubleValue] UninterpretedOption doubleValue - * @property {Uint8Array|null} [stringValue] UninterpretedOption stringValue - * @property {string|null} [aggregateValue] UninterpretedOption aggregateValue + * @interface IListValue + * @property {Array.|null} [values] ListValue values */ /** - * Constructs a new UninterpretedOption. + * Constructs a new ListValue. * @memberof google.protobuf - * @classdesc Represents an UninterpretedOption. - * @implements IUninterpretedOption + * @classdesc Represents a ListValue. + * @implements IListValue * @constructor - * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set + * @param {google.protobuf.IListValue=} [properties] Properties to set */ - function UninterpretedOption(properties) { - this.name = []; + function ListValue(properties) { + this.values = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61263,156 +95339,78 @@ } /** - * UninterpretedOption name. - * @member {Array.} name - * @memberof google.protobuf.UninterpretedOption - * @instance - */ - UninterpretedOption.prototype.name = $util.emptyArray; - - /** - * UninterpretedOption identifierValue. - * @member {string} identifierValue - * @memberof google.protobuf.UninterpretedOption - * @instance - */ - UninterpretedOption.prototype.identifierValue = ""; - - /** - * UninterpretedOption positiveIntValue. - * @member {number|Long} positiveIntValue - * @memberof google.protobuf.UninterpretedOption - * @instance - */ - UninterpretedOption.prototype.positiveIntValue = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * UninterpretedOption negativeIntValue. - * @member {number|Long} negativeIntValue - * @memberof google.protobuf.UninterpretedOption - * @instance - */ - UninterpretedOption.prototype.negativeIntValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * UninterpretedOption doubleValue. - * @member {number} doubleValue - * @memberof google.protobuf.UninterpretedOption - * @instance - */ - UninterpretedOption.prototype.doubleValue = 0; - - /** - * UninterpretedOption stringValue. - * @member {Uint8Array} stringValue - * @memberof google.protobuf.UninterpretedOption - * @instance - */ - UninterpretedOption.prototype.stringValue = $util.newBuffer([]); - - /** - * UninterpretedOption aggregateValue. - * @member {string} aggregateValue - * @memberof google.protobuf.UninterpretedOption + * ListValue values. + * @member {Array.} values + * @memberof google.protobuf.ListValue * @instance */ - UninterpretedOption.prototype.aggregateValue = ""; + ListValue.prototype.values = $util.emptyArray; /** - * Creates a new UninterpretedOption instance using the specified properties. + * Creates a new ListValue instance using the specified properties. * @function create - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.ListValue * @static - * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set - * @returns {google.protobuf.UninterpretedOption} UninterpretedOption instance + * @param {google.protobuf.IListValue=} [properties] Properties to set + * @returns {google.protobuf.ListValue} ListValue instance */ - UninterpretedOption.create = function create(properties) { - return new UninterpretedOption(properties); + ListValue.create = function create(properties) { + return new ListValue(properties); }; /** - * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * Encodes the specified ListValue message. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages. * @function encode - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.ListValue * @static - * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode + * @param {google.protobuf.IListValue} message ListValue message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UninterpretedOption.encode = function encode(message, writer) { + ListValue.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.name.length) - for (var i = 0; i < message.name.length; ++i) - $root.google.protobuf.UninterpretedOption.NamePart.encode(message.name[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.identifierValue != null && Object.hasOwnProperty.call(message, "identifierValue")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.identifierValue); - if (message.positiveIntValue != null && Object.hasOwnProperty.call(message, "positiveIntValue")) - writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.positiveIntValue); - if (message.negativeIntValue != null && Object.hasOwnProperty.call(message, "negativeIntValue")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.negativeIntValue); - if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) - writer.uint32(/* id 6, wireType 1 =*/49).double(message.doubleValue); - if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.stringValue); - if (message.aggregateValue != null && Object.hasOwnProperty.call(message, "aggregateValue")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.aggregateValue); + if (message.values != null && message.values.length) + for (var i = 0; i < message.values.length; ++i) + $root.google.protobuf.Value.encode(message.values[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * Encodes the specified ListValue message, length delimited. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.ListValue * @static - * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode + * @param {google.protobuf.IListValue} message ListValue message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UninterpretedOption.encodeDelimited = function encodeDelimited(message, writer) { + ListValue.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UninterpretedOption message from the specified reader or buffer. + * Decodes a ListValue message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.ListValue * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + * @returns {google.protobuf.ListValue} ListValue * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UninterpretedOption.decode = function decode(reader, length) { + ListValue.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.protobuf.UninterpretedOption(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ListValue(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: - if (!(message.name && message.name.length)) - message.name = []; - message.name.push($root.google.protobuf.UninterpretedOption.NamePart.decode(reader, reader.uint32())); - break; - case 3: - message.identifierValue = reader.string(); - break; - case 4: - message.positiveIntValue = reader.uint64(); - break; - case 5: - message.negativeIntValue = reader.int64(); - break; - case 6: - message.doubleValue = reader.double(); - break; - case 7: - message.stringValue = reader.bytes(); - break; - case 8: - message.aggregateValue = reader.string(); + case 1: + if (!(message.values && message.values.length)) + message.values = []; + message.values.push($root.google.protobuf.Value.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -61423,422 +95421,349 @@ }; /** - * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. + * Decodes a ListValue message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.ListValue * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + * @returns {google.protobuf.ListValue} ListValue * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UninterpretedOption.decodeDelimited = function decodeDelimited(reader) { + ListValue.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UninterpretedOption message. + * Verifies a ListValue message. * @function verify - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.ListValue * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UninterpretedOption.verify = function verify(message) { + ListValue.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) { - if (!Array.isArray(message.name)) - return "name: array expected"; - for (var i = 0; i < message.name.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.NamePart.verify(message.name[i]); + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.values[i]); if (error) - return "name." + error; + return "values." + error; } } - if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) - if (!$util.isString(message.identifierValue)) - return "identifierValue: string expected"; - if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) - if (!$util.isInteger(message.positiveIntValue) && !(message.positiveIntValue && $util.isInteger(message.positiveIntValue.low) && $util.isInteger(message.positiveIntValue.high))) - return "positiveIntValue: integer|Long expected"; - if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) - if (!$util.isInteger(message.negativeIntValue) && !(message.negativeIntValue && $util.isInteger(message.negativeIntValue.low) && $util.isInteger(message.negativeIntValue.high))) - return "negativeIntValue: integer|Long expected"; - if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) - if (typeof message.doubleValue !== "number") - return "doubleValue: number expected"; - if (message.stringValue != null && message.hasOwnProperty("stringValue")) - if (!(message.stringValue && typeof message.stringValue.length === "number" || $util.isString(message.stringValue))) - return "stringValue: buffer expected"; - if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) - if (!$util.isString(message.aggregateValue)) - return "aggregateValue: string expected"; return null; }; /** - * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types. + * Creates a ListValue message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.ListValue * @static * @param {Object.} object Plain object - * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + * @returns {google.protobuf.ListValue} ListValue */ - UninterpretedOption.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.UninterpretedOption) + ListValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ListValue) return object; - var message = new $root.google.protobuf.UninterpretedOption(); - if (object.name) { - if (!Array.isArray(object.name)) - throw TypeError(".google.protobuf.UninterpretedOption.name: array expected"); - message.name = []; - for (var i = 0; i < object.name.length; ++i) { - if (typeof object.name[i] !== "object") - throw TypeError(".google.protobuf.UninterpretedOption.name: object expected"); - message.name[i] = $root.google.protobuf.UninterpretedOption.NamePart.fromObject(object.name[i]); + var message = new $root.google.protobuf.ListValue(); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".google.protobuf.ListValue.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) { + if (typeof object.values[i] !== "object") + throw TypeError(".google.protobuf.ListValue.values: object expected"); + message.values[i] = $root.google.protobuf.Value.fromObject(object.values[i]); } } - if (object.identifierValue != null) - message.identifierValue = String(object.identifierValue); - if (object.positiveIntValue != null) - if ($util.Long) - (message.positiveIntValue = $util.Long.fromValue(object.positiveIntValue)).unsigned = true; - else if (typeof object.positiveIntValue === "string") - message.positiveIntValue = parseInt(object.positiveIntValue, 10); - else if (typeof object.positiveIntValue === "number") - message.positiveIntValue = object.positiveIntValue; - else if (typeof object.positiveIntValue === "object") - message.positiveIntValue = new $util.LongBits(object.positiveIntValue.low >>> 0, object.positiveIntValue.high >>> 0).toNumber(true); - if (object.negativeIntValue != null) - if ($util.Long) - (message.negativeIntValue = $util.Long.fromValue(object.negativeIntValue)).unsigned = false; - else if (typeof object.negativeIntValue === "string") - message.negativeIntValue = parseInt(object.negativeIntValue, 10); - else if (typeof object.negativeIntValue === "number") - message.negativeIntValue = object.negativeIntValue; - else if (typeof object.negativeIntValue === "object") - message.negativeIntValue = new $util.LongBits(object.negativeIntValue.low >>> 0, object.negativeIntValue.high >>> 0).toNumber(); - if (object.doubleValue != null) - message.doubleValue = Number(object.doubleValue); - if (object.stringValue != null) - if (typeof object.stringValue === "string") - $util.base64.decode(object.stringValue, message.stringValue = $util.newBuffer($util.base64.length(object.stringValue)), 0); - else if (object.stringValue.length) - message.stringValue = object.stringValue; - if (object.aggregateValue != null) - message.aggregateValue = String(object.aggregateValue); return message; }; /** - * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. + * Creates a plain object from a ListValue message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.ListValue * @static - * @param {google.protobuf.UninterpretedOption} message UninterpretedOption + * @param {google.protobuf.ListValue} message ListValue * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UninterpretedOption.toObject = function toObject(message, options) { + ListValue.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.name = []; - if (options.defaults) { - object.identifierValue = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.positiveIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.positiveIntValue = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.negativeIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.negativeIntValue = options.longs === String ? "0" : 0; - object.doubleValue = 0; - if (options.bytes === String) - object.stringValue = ""; - else { - object.stringValue = []; - if (options.bytes !== Array) - object.stringValue = $util.newBuffer(object.stringValue); - } - object.aggregateValue = ""; - } - if (message.name && message.name.length) { - object.name = []; - for (var j = 0; j < message.name.length; ++j) - object.name[j] = $root.google.protobuf.UninterpretedOption.NamePart.toObject(message.name[j], options); + object.values = []; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + object.values[j] = $root.google.protobuf.Value.toObject(message.values[j], options); } - if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) - object.identifierValue = message.identifierValue; - if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) - if (typeof message.positiveIntValue === "number") - object.positiveIntValue = options.longs === String ? String(message.positiveIntValue) : message.positiveIntValue; - else - object.positiveIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.positiveIntValue) : options.longs === Number ? new $util.LongBits(message.positiveIntValue.low >>> 0, message.positiveIntValue.high >>> 0).toNumber(true) : message.positiveIntValue; - if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) - if (typeof message.negativeIntValue === "number") - object.negativeIntValue = options.longs === String ? String(message.negativeIntValue) : message.negativeIntValue; - else - object.negativeIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.negativeIntValue) : options.longs === Number ? new $util.LongBits(message.negativeIntValue.low >>> 0, message.negativeIntValue.high >>> 0).toNumber() : message.negativeIntValue; - if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) - object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue; - if (message.stringValue != null && message.hasOwnProperty("stringValue")) - object.stringValue = options.bytes === String ? $util.base64.encode(message.stringValue, 0, message.stringValue.length) : options.bytes === Array ? Array.prototype.slice.call(message.stringValue) : message.stringValue; - if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) - object.aggregateValue = message.aggregateValue; return object; }; /** - * Converts this UninterpretedOption to JSON. + * Converts this ListValue to JSON. * @function toJSON - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.ListValue * @instance * @returns {Object.} JSON object */ - UninterpretedOption.prototype.toJSON = function toJSON() { + ListValue.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - UninterpretedOption.NamePart = (function() { - - /** - * Properties of a NamePart. - * @memberof google.protobuf.UninterpretedOption - * @interface INamePart - * @property {string} namePart NamePart namePart - * @property {boolean} isExtension NamePart isExtension - */ - - /** - * Constructs a new NamePart. - * @memberof google.protobuf.UninterpretedOption - * @classdesc Represents a NamePart. - * @implements INamePart - * @constructor - * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set - */ - function NamePart(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]]; - } - - /** - * NamePart namePart. - * @member {string} namePart - * @memberof google.protobuf.UninterpretedOption.NamePart - * @instance - */ - NamePart.prototype.namePart = ""; - - /** - * NamePart isExtension. - * @member {boolean} isExtension - * @memberof google.protobuf.UninterpretedOption.NamePart - * @instance - */ - NamePart.prototype.isExtension = false; + return ListValue; + })(); - /** - * Creates a new NamePart instance using the specified properties. - * @function create - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set - * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart instance - */ - NamePart.create = function create(properties) { - return new NamePart(properties); - }; + protobuf.Timestamp = (function() { - /** - * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. - * @function encode - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NamePart.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - writer.uint32(/* id 1, wireType 2 =*/10).string(message.namePart); - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isExtension); - return writer; - }; + /** + * Properties of a Timestamp. + * @memberof google.protobuf + * @interface ITimestamp + * @property {number|Long|null} [seconds] Timestamp seconds + * @property {number|null} [nanos] Timestamp nanos + */ - /** - * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NamePart.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Constructs a new Timestamp. + * @memberof google.protobuf + * @classdesc Represents a Timestamp. + * @implements ITimestamp + * @constructor + * @param {google.protobuf.ITimestamp=} [properties] Properties to set + */ + function Timestamp(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]]; + } - /** - * Decodes a NamePart message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NamePart.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.protobuf.UninterpretedOption.NamePart(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.namePart = reader.string(); - break; - case 2: - message.isExtension = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - if (!message.hasOwnProperty("namePart")) - throw $util.ProtocolError("missing required 'namePart'", { instance: message }); - if (!message.hasOwnProperty("isExtension")) - throw $util.ProtocolError("missing required 'isExtension'", { instance: message }); - return message; - }; + /** + * Timestamp seconds. + * @member {number|Long} seconds + * @memberof google.protobuf.Timestamp + * @instance + */ + Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Decodes a NamePart message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NamePart.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Timestamp nanos. + * @member {number} nanos + * @memberof google.protobuf.Timestamp + * @instance + */ + Timestamp.prototype.nanos = 0; - /** - * Verifies a NamePart message. - * @function verify - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NamePart.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (!$util.isString(message.namePart)) - return "namePart: string expected"; - if (typeof message.isExtension !== "boolean") - return "isExtension: boolean expected"; - return null; - }; + /** + * Creates a new Timestamp instance using the specified properties. + * @function create + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.ITimestamp=} [properties] Properties to set + * @returns {google.protobuf.Timestamp} Timestamp instance + */ + Timestamp.create = function create(properties) { + return new Timestamp(properties); + }; - /** - * Creates a NamePart message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart - */ - NamePart.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.UninterpretedOption.NamePart) - return object; - var message = new $root.google.protobuf.UninterpretedOption.NamePart(); - if (object.namePart != null) - message.namePart = String(object.namePart); - if (object.isExtension != null) - message.isExtension = Boolean(object.isExtension); - return message; - }; + /** + * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Timestamp.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); + if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); + return writer; + }; - /** - * Creates a plain object from a NamePart message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {google.protobuf.UninterpretedOption.NamePart} message NamePart - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NamePart.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.namePart = ""; - object.isExtension = false; + /** + * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Timestamp.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Timestamp message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Timestamp + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Timestamp} Timestamp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Timestamp.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.protobuf.Timestamp(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.seconds = reader.int64(); + break; + case 2: + message.nanos = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; } - if (message.namePart != null && message.hasOwnProperty("namePart")) - object.namePart = message.namePart; - if (message.isExtension != null && message.hasOwnProperty("isExtension")) - object.isExtension = message.isExtension; - return object; - }; + } + return message; + }; - /** - * Converts this NamePart to JSON. - * @function toJSON - * @memberof google.protobuf.UninterpretedOption.NamePart - * @instance - * @returns {Object.} JSON object - */ - NamePart.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a Timestamp message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.Timestamp + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.Timestamp} Timestamp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Timestamp.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - return NamePart; - })(); + /** + * Verifies a Timestamp message. + * @function verify + * @memberof google.protobuf.Timestamp + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Timestamp.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) + return "seconds: integer|Long expected"; + if (message.nanos != null && message.hasOwnProperty("nanos")) + if (!$util.isInteger(message.nanos)) + return "nanos: integer expected"; + return null; + }; + + /** + * Creates a Timestamp message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Timestamp + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Timestamp} Timestamp + */ + Timestamp.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Timestamp) + return object; + var message = new $root.google.protobuf.Timestamp(); + if (object.seconds != null) + if ($util.Long) + (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; + else if (typeof object.seconds === "string") + message.seconds = parseInt(object.seconds, 10); + else if (typeof object.seconds === "number") + message.seconds = object.seconds; + else if (typeof object.seconds === "object") + message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); + if (object.nanos != null) + message.nanos = object.nanos | 0; + return message; + }; + + /** + * Creates a plain object from a Timestamp message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.Timestamp} message Timestamp + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Timestamp.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.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.seconds = options.longs === String ? "0" : 0; + object.nanos = 0; + } + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (typeof message.seconds === "number") + object.seconds = options.longs === String ? String(message.seconds) : message.seconds; + else + object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; + if (message.nanos != null && message.hasOwnProperty("nanos")) + object.nanos = message.nanos; + return object; + }; - return UninterpretedOption; + /** + * Converts this Timestamp to JSON. + * @function toJSON + * @memberof google.protobuf.Timestamp + * @instance + * @returns {Object.} JSON object + */ + Timestamp.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Timestamp; })(); - protobuf.SourceCodeInfo = (function() { + protobuf.Any = (function() { /** - * Properties of a SourceCodeInfo. + * Properties of an Any. * @memberof google.protobuf - * @interface ISourceCodeInfo - * @property {Array.|null} [location] SourceCodeInfo location + * @interface IAny + * @property {string|null} [type_url] Any type_url + * @property {Uint8Array|null} [value] Any value */ /** - * Constructs a new SourceCodeInfo. + * Constructs a new Any. * @memberof google.protobuf - * @classdesc Represents a SourceCodeInfo. - * @implements ISourceCodeInfo + * @classdesc Represents an Any. + * @implements IAny * @constructor - * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set + * @param {google.protobuf.IAny=} [properties] Properties to set */ - function SourceCodeInfo(properties) { - this.location = []; + function Any(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61846,78 +95771,88 @@ } /** - * SourceCodeInfo location. - * @member {Array.} location - * @memberof google.protobuf.SourceCodeInfo + * Any type_url. + * @member {string} type_url + * @memberof google.protobuf.Any * @instance */ - SourceCodeInfo.prototype.location = $util.emptyArray; + Any.prototype.type_url = ""; /** - * Creates a new SourceCodeInfo instance using the specified properties. + * Any value. + * @member {Uint8Array} value + * @memberof google.protobuf.Any + * @instance + */ + Any.prototype.value = $util.newBuffer([]); + + /** + * Creates a new Any instance using the specified properties. * @function create - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.Any * @static - * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set - * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo instance + * @param {google.protobuf.IAny=} [properties] Properties to set + * @returns {google.protobuf.Any} Any instance */ - SourceCodeInfo.create = function create(properties) { - return new SourceCodeInfo(properties); + Any.create = function create(properties) { + return new Any(properties); }; /** - * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. * @function encode - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.Any * @static - * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode + * @param {google.protobuf.IAny} message Any message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SourceCodeInfo.encode = function encode(message, writer) { + Any.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.location != null && message.location.length) - for (var i = 0; i < message.location.length; ++i) - $root.google.protobuf.SourceCodeInfo.Location.encode(message.location[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.type_url != null && Object.hasOwnProperty.call(message, "type_url")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type_url); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); return writer; }; /** - * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.Any * @static - * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode + * @param {google.protobuf.IAny} message Any message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SourceCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { + Any.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SourceCodeInfo message from the specified reader or buffer. + * Decodes an Any message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.Any * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + * @returns {google.protobuf.Any} Any * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SourceCodeInfo.decode = function decode(reader, length) { + Any.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.protobuf.SourceCodeInfo(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Any(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.location && message.location.length)) - message.location = []; - message.location.push($root.google.protobuf.SourceCodeInfo.Location.decode(reader, reader.uint32())); + message.type_url = reader.string(); + break; + case 2: + message.value = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -61928,467 +95863,348 @@ }; /** - * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. + * Decodes an Any message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.Any * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + * @returns {google.protobuf.Any} Any * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SourceCodeInfo.decodeDelimited = function decodeDelimited(reader) { + Any.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SourceCodeInfo message. + * Verifies an Any message. * @function verify - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.Any * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SourceCodeInfo.verify = function verify(message) { + Any.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.location != null && message.hasOwnProperty("location")) { - if (!Array.isArray(message.location)) - return "location: array expected"; - for (var i = 0; i < message.location.length; ++i) { - var error = $root.google.protobuf.SourceCodeInfo.Location.verify(message.location[i]); - if (error) - return "location." + error; - } - } + if (message.type_url != null && message.hasOwnProperty("type_url")) + if (!$util.isString(message.type_url)) + return "type_url: string expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) + return "value: buffer expected"; return null; }; /** - * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types. + * Creates an Any message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.Any * @static * @param {Object.} object Plain object - * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + * @returns {google.protobuf.Any} Any */ - SourceCodeInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.SourceCodeInfo) + Any.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Any) return object; - var message = new $root.google.protobuf.SourceCodeInfo(); - if (object.location) { - if (!Array.isArray(object.location)) - throw TypeError(".google.protobuf.SourceCodeInfo.location: array expected"); - message.location = []; - for (var i = 0; i < object.location.length; ++i) { - if (typeof object.location[i] !== "object") - throw TypeError(".google.protobuf.SourceCodeInfo.location: object expected"); - message.location[i] = $root.google.protobuf.SourceCodeInfo.Location.fromObject(object.location[i]); - } - } + var message = new $root.google.protobuf.Any(); + if (object.type_url != null) + message.type_url = String(object.type_url); + if (object.value != null) + if (typeof object.value === "string") + $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); + else if (object.value.length) + message.value = object.value; return message; }; /** - * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. + * Creates a plain object from an Any message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.Any * @static - * @param {google.protobuf.SourceCodeInfo} message SourceCodeInfo + * @param {google.protobuf.Any} message Any * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SourceCodeInfo.toObject = function toObject(message, options) { + Any.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.location = []; - if (message.location && message.location.length) { - object.location = []; - for (var j = 0; j < message.location.length; ++j) - object.location[j] = $root.google.protobuf.SourceCodeInfo.Location.toObject(message.location[j], options); + if (options.defaults) { + object.type_url = ""; + if (options.bytes === String) + object.value = ""; + else { + object.value = []; + if (options.bytes !== Array) + object.value = $util.newBuffer(object.value); + } } + if (message.type_url != null && message.hasOwnProperty("type_url")) + object.type_url = message.type_url; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; return object; }; /** - * Converts this SourceCodeInfo to JSON. + * Converts this Any to JSON. * @function toJSON - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.Any * @instance * @returns {Object.} JSON object */ - SourceCodeInfo.prototype.toJSON = function toJSON() { + Any.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - SourceCodeInfo.Location = (function() { - - /** - * Properties of a Location. - * @memberof google.protobuf.SourceCodeInfo - * @interface ILocation - * @property {Array.|null} [path] Location path - * @property {Array.|null} [span] Location span - * @property {string|null} [leadingComments] Location leadingComments - * @property {string|null} [trailingComments] Location trailingComments - * @property {Array.|null} [leadingDetachedComments] Location leadingDetachedComments - */ - - /** - * Constructs a new Location. - * @memberof google.protobuf.SourceCodeInfo - * @classdesc Represents a Location. - * @implements ILocation - * @constructor - * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set - */ - function Location(properties) { - this.path = []; - this.span = []; - this.leadingDetachedComments = []; - 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]]; - } - - /** - * Location path. - * @member {Array.} path - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.path = $util.emptyArray; - - /** - * Location span. - * @member {Array.} span - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.span = $util.emptyArray; - - /** - * Location leadingComments. - * @member {string} leadingComments - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.leadingComments = ""; - - /** - * Location trailingComments. - * @member {string} trailingComments - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.trailingComments = ""; + return Any; + })(); - /** - * Location leadingDetachedComments. - * @member {Array.} leadingDetachedComments - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.leadingDetachedComments = $util.emptyArray; + protobuf.Duration = (function() { - /** - * Creates a new Location instance using the specified properties. - * @function create - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set - * @returns {google.protobuf.SourceCodeInfo.Location} Location instance - */ - Location.create = function create(properties) { - return new Location(properties); - }; + /** + * Properties of a Duration. + * @memberof google.protobuf + * @interface IDuration + * @property {number|Long|null} [seconds] Duration seconds + * @property {number|null} [nanos] Duration nanos + */ - /** - * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. - * @function encode - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Location.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.path != null && message.path.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.path.length; ++i) - writer.int32(message.path[i]); - writer.ldelim(); - } - if (message.span != null && message.span.length) { - writer.uint32(/* id 2, wireType 2 =*/18).fork(); - for (var i = 0; i < message.span.length; ++i) - writer.int32(message.span[i]); - writer.ldelim(); - } - if (message.leadingComments != null && Object.hasOwnProperty.call(message, "leadingComments")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.leadingComments); - if (message.trailingComments != null && Object.hasOwnProperty.call(message, "trailingComments")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.trailingComments); - if (message.leadingDetachedComments != null && message.leadingDetachedComments.length) - for (var i = 0; i < message.leadingDetachedComments.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.leadingDetachedComments[i]); - return writer; - }; + /** + * Constructs a new Duration. + * @memberof google.protobuf + * @classdesc Represents a Duration. + * @implements IDuration + * @constructor + * @param {google.protobuf.IDuration=} [properties] Properties to set + */ + function Duration(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]]; + } - /** - * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Location.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Duration seconds. + * @member {number|Long} seconds + * @memberof google.protobuf.Duration + * @instance + */ + Duration.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Decodes a Location message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.SourceCodeInfo.Location} Location - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Location.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.protobuf.SourceCodeInfo.Location(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.path && message.path.length)) - message.path = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.path.push(reader.int32()); - } else - message.path.push(reader.int32()); - break; - case 2: - if (!(message.span && message.span.length)) - message.span = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.span.push(reader.int32()); - } else - message.span.push(reader.int32()); - break; - case 3: - message.leadingComments = reader.string(); - break; - case 4: - message.trailingComments = reader.string(); - break; - case 6: - if (!(message.leadingDetachedComments && message.leadingDetachedComments.length)) - message.leadingDetachedComments = []; - message.leadingDetachedComments.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Duration nanos. + * @member {number} nanos + * @memberof google.protobuf.Duration + * @instance + */ + Duration.prototype.nanos = 0; - /** - * Decodes a Location message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.SourceCodeInfo.Location} Location - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Location.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a new Duration instance using the specified properties. + * @function create + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.IDuration=} [properties] Properties to set + * @returns {google.protobuf.Duration} Duration instance + */ + Duration.create = function create(properties) { + return new Duration(properties); + }; - /** - * Verifies a Location message. - * @function verify - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Location.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) { - if (!Array.isArray(message.path)) - return "path: array expected"; - for (var i = 0; i < message.path.length; ++i) - if (!$util.isInteger(message.path[i])) - return "path: integer[] expected"; - } - if (message.span != null && message.hasOwnProperty("span")) { - if (!Array.isArray(message.span)) - return "span: array expected"; - for (var i = 0; i < message.span.length; ++i) - if (!$util.isInteger(message.span[i])) - return "span: integer[] expected"; - } - if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) - if (!$util.isString(message.leadingComments)) - return "leadingComments: string expected"; - if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) - if (!$util.isString(message.trailingComments)) - return "trailingComments: string expected"; - if (message.leadingDetachedComments != null && message.hasOwnProperty("leadingDetachedComments")) { - if (!Array.isArray(message.leadingDetachedComments)) - return "leadingDetachedComments: array expected"; - for (var i = 0; i < message.leadingDetachedComments.length; ++i) - if (!$util.isString(message.leadingDetachedComments[i])) - return "leadingDetachedComments: string[] expected"; + /** + * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.IDuration} message Duration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Duration.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); + if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); + return writer; + }; + + /** + * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.IDuration} message Duration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Duration.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Duration message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Duration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Duration} Duration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Duration.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.protobuf.Duration(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.seconds = reader.int64(); + break; + case 2: + message.nanos = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; } - return null; - }; + } + return message; + }; - /** - * Creates a Location message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.SourceCodeInfo.Location} Location - */ - Location.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.SourceCodeInfo.Location) - return object; - var message = new $root.google.protobuf.SourceCodeInfo.Location(); - if (object.path) { - if (!Array.isArray(object.path)) - throw TypeError(".google.protobuf.SourceCodeInfo.Location.path: array expected"); - message.path = []; - for (var i = 0; i < object.path.length; ++i) - message.path[i] = object.path[i] | 0; - } - if (object.span) { - if (!Array.isArray(object.span)) - throw TypeError(".google.protobuf.SourceCodeInfo.Location.span: array expected"); - message.span = []; - for (var i = 0; i < object.span.length; ++i) - message.span[i] = object.span[i] | 0; - } - if (object.leadingComments != null) - message.leadingComments = String(object.leadingComments); - if (object.trailingComments != null) - message.trailingComments = String(object.trailingComments); - if (object.leadingDetachedComments) { - if (!Array.isArray(object.leadingDetachedComments)) - throw TypeError(".google.protobuf.SourceCodeInfo.Location.leadingDetachedComments: array expected"); - message.leadingDetachedComments = []; - for (var i = 0; i < object.leadingDetachedComments.length; ++i) - message.leadingDetachedComments[i] = String(object.leadingDetachedComments[i]); - } - return message; - }; + /** + * Decodes a Duration message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.Duration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.Duration} Duration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Duration.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from a Location message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {google.protobuf.SourceCodeInfo.Location} message Location - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Location.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.path = []; - object.span = []; - object.leadingDetachedComments = []; - } - if (options.defaults) { - object.leadingComments = ""; - object.trailingComments = ""; - } - if (message.path && message.path.length) { - object.path = []; - for (var j = 0; j < message.path.length; ++j) - object.path[j] = message.path[j]; - } - if (message.span && message.span.length) { - object.span = []; - for (var j = 0; j < message.span.length; ++j) - object.span[j] = message.span[j]; - } - if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) - object.leadingComments = message.leadingComments; - if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) - object.trailingComments = message.trailingComments; - if (message.leadingDetachedComments && message.leadingDetachedComments.length) { - object.leadingDetachedComments = []; - for (var j = 0; j < message.leadingDetachedComments.length; ++j) - object.leadingDetachedComments[j] = message.leadingDetachedComments[j]; - } + /** + * Verifies a Duration message. + * @function verify + * @memberof google.protobuf.Duration + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Duration.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) + return "seconds: integer|Long expected"; + if (message.nanos != null && message.hasOwnProperty("nanos")) + if (!$util.isInteger(message.nanos)) + return "nanos: integer expected"; + return null; + }; + + /** + * Creates a Duration message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Duration + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Duration} Duration + */ + Duration.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Duration) return object; - }; + var message = new $root.google.protobuf.Duration(); + if (object.seconds != null) + if ($util.Long) + (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; + else if (typeof object.seconds === "string") + message.seconds = parseInt(object.seconds, 10); + else if (typeof object.seconds === "number") + message.seconds = object.seconds; + else if (typeof object.seconds === "object") + message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); + if (object.nanos != null) + message.nanos = object.nanos | 0; + return message; + }; - /** - * Converts this Location to JSON. - * @function toJSON - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - * @returns {Object.} JSON object - */ - Location.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a Duration message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.Duration} message Duration + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Duration.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.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.seconds = options.longs === String ? "0" : 0; + object.nanos = 0; + } + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (typeof message.seconds === "number") + object.seconds = options.longs === String ? String(message.seconds) : message.seconds; + else + object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; + if (message.nanos != null && message.hasOwnProperty("nanos")) + object.nanos = message.nanos; + return object; + }; - return Location; - })(); + /** + * Converts this Duration to JSON. + * @function toJSON + * @memberof google.protobuf.Duration + * @instance + * @returns {Object.} JSON object + */ + Duration.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return SourceCodeInfo; + return Duration; })(); - protobuf.GeneratedCodeInfo = (function() { + protobuf.Empty = (function() { /** - * Properties of a GeneratedCodeInfo. + * Properties of an Empty. * @memberof google.protobuf - * @interface IGeneratedCodeInfo - * @property {Array.|null} [annotation] GeneratedCodeInfo annotation + * @interface IEmpty */ /** - * Constructs a new GeneratedCodeInfo. + * Constructs a new Empty. * @memberof google.protobuf - * @classdesc Represents a GeneratedCodeInfo. - * @implements IGeneratedCodeInfo + * @classdesc Represents an Empty. + * @implements IEmpty * @constructor - * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set + * @param {google.protobuf.IEmpty=} [properties] Properties to set */ - function GeneratedCodeInfo(properties) { - this.annotation = []; + function Empty(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62396,79 +96212,63 @@ } /** - * GeneratedCodeInfo annotation. - * @member {Array.} annotation - * @memberof google.protobuf.GeneratedCodeInfo - * @instance - */ - GeneratedCodeInfo.prototype.annotation = $util.emptyArray; - - /** - * Creates a new GeneratedCodeInfo instance using the specified properties. + * Creates a new Empty instance using the specified properties. * @function create - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.Empty * @static - * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set - * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo instance + * @param {google.protobuf.IEmpty=} [properties] Properties to set + * @returns {google.protobuf.Empty} Empty instance */ - GeneratedCodeInfo.create = function create(properties) { - return new GeneratedCodeInfo(properties); + Empty.create = function create(properties) { + return new Empty(properties); }; /** - * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. * @function encode - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.Empty * @static - * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode + * @param {google.protobuf.IEmpty} message Empty message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GeneratedCodeInfo.encode = function encode(message, writer) { + Empty.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.annotation != null && message.annotation.length) - for (var i = 0; i < message.annotation.length; ++i) - $root.google.protobuf.GeneratedCodeInfo.Annotation.encode(message.annotation[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.Empty * @static - * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode + * @param {google.protobuf.IEmpty} message Empty message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GeneratedCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { + Empty.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * Decodes an Empty message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.Empty * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + * @returns {google.protobuf.Empty} Empty * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GeneratedCodeInfo.decode = function decode(reader, length) { + Empty.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.protobuf.GeneratedCodeInfo(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Empty(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.annotation && message.annotation.length)) - message.annotation = []; - message.annotation.push($root.google.protobuf.GeneratedCodeInfo.Annotation.decode(reader, reader.uint32())); - break; default: reader.skipType(tag & 7); break; @@ -62478,404 +96278,297 @@ }; /** - * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. + * Decodes an Empty message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.Empty * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + * @returns {google.protobuf.Empty} Empty * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GeneratedCodeInfo.decodeDelimited = function decodeDelimited(reader) { + Empty.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GeneratedCodeInfo message. + * Verifies an Empty message. * @function verify - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.Empty * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GeneratedCodeInfo.verify = function verify(message) { + Empty.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.annotation != null && message.hasOwnProperty("annotation")) { - if (!Array.isArray(message.annotation)) - return "annotation: array expected"; - for (var i = 0; i < message.annotation.length; ++i) { - var error = $root.google.protobuf.GeneratedCodeInfo.Annotation.verify(message.annotation[i]); - if (error) - return "annotation." + error; - } - } return null; }; /** - * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. + * Creates an Empty message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.Empty * @static * @param {Object.} object Plain object - * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + * @returns {google.protobuf.Empty} Empty */ - GeneratedCodeInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.GeneratedCodeInfo) + Empty.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Empty) return object; - var message = new $root.google.protobuf.GeneratedCodeInfo(); - if (object.annotation) { - if (!Array.isArray(object.annotation)) - throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: array expected"); - message.annotation = []; - for (var i = 0; i < object.annotation.length; ++i) { - if (typeof object.annotation[i] !== "object") - throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: object expected"); - message.annotation[i] = $root.google.protobuf.GeneratedCodeInfo.Annotation.fromObject(object.annotation[i]); - } - } - return message; + return new $root.google.protobuf.Empty(); }; /** - * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. + * Creates a plain object from an Empty message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.Empty * @static - * @param {google.protobuf.GeneratedCodeInfo} message GeneratedCodeInfo + * @param {google.protobuf.Empty} message Empty * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GeneratedCodeInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.annotation = []; - if (message.annotation && message.annotation.length) { - object.annotation = []; - for (var j = 0; j < message.annotation.length; ++j) - object.annotation[j] = $root.google.protobuf.GeneratedCodeInfo.Annotation.toObject(message.annotation[j], options); - } - return object; + Empty.toObject = function toObject() { + return {}; }; /** - * Converts this GeneratedCodeInfo to JSON. + * Converts this Empty to JSON. * @function toJSON - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.Empty * @instance * @returns {Object.} JSON object */ - GeneratedCodeInfo.prototype.toJSON = function toJSON() { + Empty.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - GeneratedCodeInfo.Annotation = (function() { - - /** - * Properties of an Annotation. - * @memberof google.protobuf.GeneratedCodeInfo - * @interface IAnnotation - * @property {Array.|null} [path] Annotation path - * @property {string|null} [sourceFile] Annotation sourceFile - * @property {number|null} [begin] Annotation begin - * @property {number|null} [end] Annotation end - */ - - /** - * Constructs a new Annotation. - * @memberof google.protobuf.GeneratedCodeInfo - * @classdesc Represents an Annotation. - * @implements IAnnotation - * @constructor - * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set - */ - function Annotation(properties) { - this.path = []; - 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]]; - } - - /** - * Annotation path. - * @member {Array.} path - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.path = $util.emptyArray; - - /** - * Annotation sourceFile. - * @member {string} sourceFile - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.sourceFile = ""; + return Empty; + })(); - /** - * Annotation begin. - * @member {number} begin - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.begin = 0; + protobuf.FieldMask = (function() { - /** - * Annotation end. - * @member {number} end - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.end = 0; + /** + * Properties of a FieldMask. + * @memberof google.protobuf + * @interface IFieldMask + * @property {Array.|null} [paths] FieldMask paths + */ - /** - * Creates a new Annotation instance using the specified properties. - * @function create - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set - * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation instance - */ - Annotation.create = function create(properties) { - return new Annotation(properties); - }; + /** + * Constructs a new FieldMask. + * @memberof google.protobuf + * @classdesc Represents a FieldMask. + * @implements IFieldMask + * @constructor + * @param {google.protobuf.IFieldMask=} [properties] Properties to set + */ + function FieldMask(properties) { + this.paths = []; + 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]]; + } - /** - * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. - * @function encode - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Annotation.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.path != null && message.path.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.path.length; ++i) - writer.int32(message.path[i]); - writer.ldelim(); - } - if (message.sourceFile != null && Object.hasOwnProperty.call(message, "sourceFile")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceFile); - if (message.begin != null && Object.hasOwnProperty.call(message, "begin")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.begin); - if (message.end != null && Object.hasOwnProperty.call(message, "end")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.end); - return writer; - }; + /** + * FieldMask paths. + * @member {Array.} paths + * @memberof google.protobuf.FieldMask + * @instance + */ + FieldMask.prototype.paths = $util.emptyArray; - /** - * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Annotation.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new FieldMask instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldMask + * @static + * @param {google.protobuf.IFieldMask=} [properties] Properties to set + * @returns {google.protobuf.FieldMask} FieldMask instance + */ + FieldMask.create = function create(properties) { + return new FieldMask(properties); + }; - /** - * Decodes an Annotation message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Annotation.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.protobuf.GeneratedCodeInfo.Annotation(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.path && message.path.length)) - message.path = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.path.push(reader.int32()); - } else - message.path.push(reader.int32()); - break; - case 2: - message.sourceFile = reader.string(); - break; - case 3: - message.begin = reader.int32(); - break; - case 4: - message.end = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FieldMask + * @static + * @param {google.protobuf.IFieldMask} message FieldMask message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldMask.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.paths != null && message.paths.length) + for (var i = 0; i < message.paths.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.paths[i]); + return writer; + }; - /** - * Decodes an Annotation message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Annotation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FieldMask + * @static + * @param {google.protobuf.IFieldMask} message FieldMask message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldMask.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies an Annotation message. - * @function verify - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Annotation.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) { - if (!Array.isArray(message.path)) - return "path: array expected"; - for (var i = 0; i < message.path.length; ++i) - if (!$util.isInteger(message.path[i])) - return "path: integer[] expected"; + /** + * Decodes a FieldMask message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FieldMask + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FieldMask} FieldMask + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldMask.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.protobuf.FieldMask(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.paths && message.paths.length)) + message.paths = []; + message.paths.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; } - if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) - if (!$util.isString(message.sourceFile)) - return "sourceFile: string expected"; - if (message.begin != null && message.hasOwnProperty("begin")) - if (!$util.isInteger(message.begin)) - return "begin: integer expected"; - if (message.end != null && message.hasOwnProperty("end")) - if (!$util.isInteger(message.end)) - return "end: integer expected"; - return null; - }; + } + return message; + }; - /** - * Creates an Annotation message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation - */ - Annotation.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.GeneratedCodeInfo.Annotation) - return object; - var message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); - if (object.path) { - if (!Array.isArray(object.path)) - throw TypeError(".google.protobuf.GeneratedCodeInfo.Annotation.path: array expected"); - message.path = []; - for (var i = 0; i < object.path.length; ++i) - message.path[i] = object.path[i] | 0; - } - if (object.sourceFile != null) - message.sourceFile = String(object.sourceFile); - if (object.begin != null) - message.begin = object.begin | 0; - if (object.end != null) - message.end = object.end | 0; - return message; - }; + /** + * Decodes a FieldMask message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FieldMask + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FieldMask} FieldMask + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldMask.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from an Annotation message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {google.protobuf.GeneratedCodeInfo.Annotation} message Annotation - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Annotation.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.path = []; - if (options.defaults) { - object.sourceFile = ""; - object.begin = 0; - object.end = 0; - } - if (message.path && message.path.length) { - object.path = []; - for (var j = 0; j < message.path.length; ++j) - object.path[j] = message.path[j]; - } - if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) - object.sourceFile = message.sourceFile; - if (message.begin != null && message.hasOwnProperty("begin")) - object.begin = message.begin; - if (message.end != null && message.hasOwnProperty("end")) - object.end = message.end; + /** + * Verifies a FieldMask message. + * @function verify + * @memberof google.protobuf.FieldMask + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FieldMask.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.paths != null && message.hasOwnProperty("paths")) { + if (!Array.isArray(message.paths)) + return "paths: array expected"; + for (var i = 0; i < message.paths.length; ++i) + if (!$util.isString(message.paths[i])) + return "paths: string[] expected"; + } + return null; + }; + + /** + * Creates a FieldMask message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FieldMask + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FieldMask} FieldMask + */ + FieldMask.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldMask) return object; - }; + var message = new $root.google.protobuf.FieldMask(); + if (object.paths) { + if (!Array.isArray(object.paths)) + throw TypeError(".google.protobuf.FieldMask.paths: array expected"); + message.paths = []; + for (var i = 0; i < object.paths.length; ++i) + message.paths[i] = String(object.paths[i]); + } + return message; + }; - /** - * Converts this Annotation to JSON. - * @function toJSON - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - * @returns {Object.} JSON object - */ - Annotation.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a FieldMask message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FieldMask + * @static + * @param {google.protobuf.FieldMask} message FieldMask + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FieldMask.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.paths = []; + if (message.paths && message.paths.length) { + object.paths = []; + for (var j = 0; j < message.paths.length; ++j) + object.paths[j] = message.paths[j]; + } + return object; + }; - return Annotation; - })(); + /** + * Converts this FieldMask to JSON. + * @function toJSON + * @memberof google.protobuf.FieldMask + * @instance + * @returns {Object.} JSON object + */ + FieldMask.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return GeneratedCodeInfo; + return FieldMask; })(); - protobuf.Struct = (function() { + protobuf.DoubleValue = (function() { /** - * Properties of a Struct. + * Properties of a DoubleValue. * @memberof google.protobuf - * @interface IStruct - * @property {Object.|null} [fields] Struct fields + * @interface IDoubleValue + * @property {number|null} [value] DoubleValue value */ /** - * Constructs a new Struct. + * Constructs a new DoubleValue. * @memberof google.protobuf - * @classdesc Represents a Struct. - * @implements IStruct + * @classdesc Represents a DoubleValue. + * @implements IDoubleValue * @constructor - * @param {google.protobuf.IStruct=} [properties] Properties to set + * @param {google.protobuf.IDoubleValue=} [properties] Properties to set */ - function Struct(properties) { - this.fields = {}; + function DoubleValue(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62883,97 +96576,75 @@ } /** - * Struct fields. - * @member {Object.} fields - * @memberof google.protobuf.Struct + * DoubleValue value. + * @member {number} value + * @memberof google.protobuf.DoubleValue * @instance */ - Struct.prototype.fields = $util.emptyObject; + DoubleValue.prototype.value = 0; /** - * Creates a new Struct instance using the specified properties. + * Creates a new DoubleValue instance using the specified properties. * @function create - * @memberof google.protobuf.Struct + * @memberof google.protobuf.DoubleValue * @static - * @param {google.protobuf.IStruct=} [properties] Properties to set - * @returns {google.protobuf.Struct} Struct instance + * @param {google.protobuf.IDoubleValue=} [properties] Properties to set + * @returns {google.protobuf.DoubleValue} DoubleValue instance */ - Struct.create = function create(properties) { - return new Struct(properties); + DoubleValue.create = function create(properties) { + return new DoubleValue(properties); }; /** - * Encodes the specified Struct message. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages. + * Encodes the specified DoubleValue message. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages. * @function encode - * @memberof google.protobuf.Struct + * @memberof google.protobuf.DoubleValue * @static - * @param {google.protobuf.IStruct} message Struct message or plain object to encode + * @param {google.protobuf.IDoubleValue} message DoubleValue message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Struct.encode = function encode(message, writer) { + DoubleValue.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.fields != null && Object.hasOwnProperty.call(message, "fields")) - for (var keys = Object.keys(message.fields), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.protobuf.Value.encode(message.fields[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.value); return writer; }; /** - * Encodes the specified Struct message, length delimited. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages. + * Encodes the specified DoubleValue message, length delimited. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.Struct + * @memberof google.protobuf.DoubleValue * @static - * @param {google.protobuf.IStruct} message Struct message or plain object to encode + * @param {google.protobuf.IDoubleValue} message DoubleValue message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Struct.encodeDelimited = function encodeDelimited(message, writer) { + DoubleValue.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Struct message from the specified reader or buffer. + * Decodes a DoubleValue message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.Struct + * @memberof google.protobuf.DoubleValue * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Struct} Struct + * @returns {google.protobuf.DoubleValue} DoubleValue * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Struct.decode = function decode(reader, length) { + DoubleValue.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.protobuf.Struct(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DoubleValue(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (message.fields === $util.emptyObject) - message.fields = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.fields[key] = value; + message.value = reader.double(); break; default: reader.skipType(tag & 7); @@ -62984,131 +96655,107 @@ }; /** - * Decodes a Struct message from the specified reader or buffer, length delimited. + * Decodes a DoubleValue message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.Struct + * @memberof google.protobuf.DoubleValue * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.Struct} Struct + * @returns {google.protobuf.DoubleValue} DoubleValue * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Struct.decodeDelimited = function decodeDelimited(reader) { + DoubleValue.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Struct message. + * Verifies a DoubleValue message. * @function verify - * @memberof google.protobuf.Struct + * @memberof google.protobuf.DoubleValue * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Struct.verify = function verify(message) { + DoubleValue.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.fields != null && message.hasOwnProperty("fields")) { - if (!$util.isObject(message.fields)) - return "fields: object expected"; - var key = Object.keys(message.fields); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.protobuf.Value.verify(message.fields[key[i]]); - if (error) - return "fields." + error; - } - } + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value !== "number") + return "value: number expected"; return null; }; /** - * Creates a Struct message from a plain object. Also converts values to their respective internal types. + * Creates a DoubleValue message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.Struct + * @memberof google.protobuf.DoubleValue * @static * @param {Object.} object Plain object - * @returns {google.protobuf.Struct} Struct + * @returns {google.protobuf.DoubleValue} DoubleValue */ - Struct.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.Struct) + DoubleValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DoubleValue) return object; - var message = new $root.google.protobuf.Struct(); - if (object.fields) { - if (typeof object.fields !== "object") - throw TypeError(".google.protobuf.Struct.fields: object expected"); - message.fields = {}; - for (var keys = Object.keys(object.fields), i = 0; i < keys.length; ++i) { - if (typeof object.fields[keys[i]] !== "object") - throw TypeError(".google.protobuf.Struct.fields: object expected"); - message.fields[keys[i]] = $root.google.protobuf.Value.fromObject(object.fields[keys[i]]); - } - } + var message = new $root.google.protobuf.DoubleValue(); + if (object.value != null) + message.value = Number(object.value); return message; }; /** - * Creates a plain object from a Struct message. Also converts values to other types if specified. + * Creates a plain object from a DoubleValue message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.Struct + * @memberof google.protobuf.DoubleValue * @static - * @param {google.protobuf.Struct} message Struct + * @param {google.protobuf.DoubleValue} message DoubleValue * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Struct.toObject = function toObject(message, options) { + DoubleValue.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.fields = {}; - var keys2; - if (message.fields && (keys2 = Object.keys(message.fields)).length) { - object.fields = {}; - for (var j = 0; j < keys2.length; ++j) - object.fields[keys2[j]] = $root.google.protobuf.Value.toObject(message.fields[keys2[j]], options); - } + if (options.defaults) + object.value = 0; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; return object; }; /** - * Converts this Struct to JSON. + * Converts this DoubleValue to JSON. * @function toJSON - * @memberof google.protobuf.Struct + * @memberof google.protobuf.DoubleValue * @instance * @returns {Object.} JSON object */ - Struct.prototype.toJSON = function toJSON() { + DoubleValue.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Struct; + return DoubleValue; })(); - protobuf.Value = (function() { + protobuf.FloatValue = (function() { /** - * Properties of a Value. + * Properties of a FloatValue. * @memberof google.protobuf - * @interface IValue - * @property {google.protobuf.NullValue|null} [nullValue] Value nullValue - * @property {number|null} [numberValue] Value numberValue - * @property {string|null} [stringValue] Value stringValue - * @property {boolean|null} [boolValue] Value boolValue - * @property {google.protobuf.IStruct|null} [structValue] Value structValue - * @property {google.protobuf.IListValue|null} [listValue] Value listValue + * @interface IFloatValue + * @property {number|null} [value] FloatValue value */ /** - * Constructs a new Value. + * Constructs a new FloatValue. * @memberof google.protobuf - * @classdesc Represents a Value. - * @implements IValue + * @classdesc Represents a FloatValue. + * @implements IFloatValue * @constructor - * @param {google.protobuf.IValue=} [properties] Properties to set + * @param {google.protobuf.IFloatValue=} [properties] Properties to set */ - function Value(properties) { + function FloatValue(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -63116,154 +96763,262 @@ } /** - * Value nullValue. - * @member {google.protobuf.NullValue} nullValue - * @memberof google.protobuf.Value + * FloatValue value. + * @member {number} value + * @memberof google.protobuf.FloatValue * @instance */ - Value.prototype.nullValue = 0; + FloatValue.prototype.value = 0; /** - * Value numberValue. - * @member {number} numberValue - * @memberof google.protobuf.Value - * @instance + * Creates a new FloatValue instance using the specified properties. + * @function create + * @memberof google.protobuf.FloatValue + * @static + * @param {google.protobuf.IFloatValue=} [properties] Properties to set + * @returns {google.protobuf.FloatValue} FloatValue instance */ - Value.prototype.numberValue = 0; + FloatValue.create = function create(properties) { + return new FloatValue(properties); + }; + + /** + * Encodes the specified FloatValue message. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FloatValue + * @static + * @param {google.protobuf.IFloatValue} message FloatValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FloatValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.value); + return writer; + }; + + /** + * Encodes the specified FloatValue message, length delimited. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FloatValue + * @static + * @param {google.protobuf.IFloatValue} message FloatValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FloatValue.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FloatValue message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FloatValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FloatValue} FloatValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FloatValue.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.protobuf.FloatValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.float(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FloatValue message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FloatValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FloatValue} FloatValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FloatValue.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FloatValue message. + * @function verify + * @memberof google.protobuf.FloatValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FloatValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value !== "number") + return "value: number expected"; + return null; + }; /** - * Value stringValue. - * @member {string} stringValue - * @memberof google.protobuf.Value - * @instance + * Creates a FloatValue message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FloatValue + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FloatValue} FloatValue */ - Value.prototype.stringValue = ""; + FloatValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FloatValue) + return object; + var message = new $root.google.protobuf.FloatValue(); + if (object.value != null) + message.value = Number(object.value); + return message; + }; /** - * Value boolValue. - * @member {boolean} boolValue - * @memberof google.protobuf.Value - * @instance + * Creates a plain object from a FloatValue message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FloatValue + * @static + * @param {google.protobuf.FloatValue} message FloatValue + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Value.prototype.boolValue = false; + FloatValue.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.value = 0; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; + return object; + }; /** - * Value structValue. - * @member {google.protobuf.IStruct|null|undefined} structValue - * @memberof google.protobuf.Value + * Converts this FloatValue to JSON. + * @function toJSON + * @memberof google.protobuf.FloatValue * @instance + * @returns {Object.} JSON object */ - Value.prototype.structValue = null; + FloatValue.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return FloatValue; + })(); + + protobuf.Int64Value = (function() { /** - * Value listValue. - * @member {google.protobuf.IListValue|null|undefined} listValue - * @memberof google.protobuf.Value - * @instance + * Properties of an Int64Value. + * @memberof google.protobuf + * @interface IInt64Value + * @property {number|Long|null} [value] Int64Value value */ - Value.prototype.listValue = null; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Constructs a new Int64Value. + * @memberof google.protobuf + * @classdesc Represents an Int64Value. + * @implements IInt64Value + * @constructor + * @param {google.protobuf.IInt64Value=} [properties] Properties to set + */ + function Int64Value(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]]; + } /** - * Value kind. - * @member {"nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue"|undefined} kind - * @memberof google.protobuf.Value + * Int64Value value. + * @member {number|Long} value + * @memberof google.protobuf.Int64Value * @instance */ - Object.defineProperty(Value.prototype, "kind", { - get: $util.oneOfGetter($oneOfFields = ["nullValue", "numberValue", "stringValue", "boolValue", "structValue", "listValue"]), - set: $util.oneOfSetter($oneOfFields) - }); + Int64Value.prototype.value = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new Value instance using the specified properties. + * Creates a new Int64Value instance using the specified properties. * @function create - * @memberof google.protobuf.Value + * @memberof google.protobuf.Int64Value * @static - * @param {google.protobuf.IValue=} [properties] Properties to set - * @returns {google.protobuf.Value} Value instance + * @param {google.protobuf.IInt64Value=} [properties] Properties to set + * @returns {google.protobuf.Int64Value} Int64Value instance */ - Value.create = function create(properties) { - return new Value(properties); + Int64Value.create = function create(properties) { + return new Int64Value(properties); }; /** - * Encodes the specified Value message. Does not implicitly {@link google.protobuf.Value.verify|verify} messages. + * Encodes the specified Int64Value message. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages. * @function encode - * @memberof google.protobuf.Value + * @memberof google.protobuf.Int64Value * @static - * @param {google.protobuf.IValue} message Value message or plain object to encode + * @param {google.protobuf.IInt64Value} message Int64Value message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Value.encode = function encode(message, writer) { + Int64Value.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.nullValue != null && Object.hasOwnProperty.call(message, "nullValue")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.nullValue); - if (message.numberValue != null && Object.hasOwnProperty.call(message, "numberValue")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.numberValue); - if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.stringValue); - if (message.boolValue != null && Object.hasOwnProperty.call(message, "boolValue")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.boolValue); - if (message.structValue != null && Object.hasOwnProperty.call(message, "structValue")) - $root.google.protobuf.Struct.encode(message.structValue, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.listValue != null && Object.hasOwnProperty.call(message, "listValue")) - $root.google.protobuf.ListValue.encode(message.listValue, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.value); return writer; }; /** - * Encodes the specified Value message, length delimited. Does not implicitly {@link google.protobuf.Value.verify|verify} messages. + * Encodes the specified Int64Value message, length delimited. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.Value + * @memberof google.protobuf.Int64Value * @static - * @param {google.protobuf.IValue} message Value message or plain object to encode + * @param {google.protobuf.IInt64Value} message Int64Value message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Value.encodeDelimited = function encodeDelimited(message, writer) { + Int64Value.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Value message from the specified reader or buffer. + * Decodes an Int64Value message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.Value + * @memberof google.protobuf.Int64Value * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Value} Value + * @returns {google.protobuf.Int64Value} Int64Value * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Value.decode = function decode(reader, length) { + Int64Value.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.protobuf.Value(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Int64Value(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.nullValue = reader.int32(); - break; - case 2: - message.numberValue = reader.double(); - break; - case 3: - message.stringValue = reader.string(); - break; - case 4: - message.boolValue = reader.bool(); - break; - case 5: - message.structValue = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 6: - message.listValue = $root.google.protobuf.ListValue.decode(reader, reader.uint32()); + message.value = reader.int64(); break; default: reader.skipType(tag & 7); @@ -63274,214 +97029,121 @@ }; /** - * Decodes a Value message from the specified reader or buffer, length delimited. + * Decodes an Int64Value message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.Value + * @memberof google.protobuf.Int64Value * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.Value} Value + * @returns {google.protobuf.Int64Value} Int64Value * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Value.decodeDelimited = function decodeDelimited(reader) { + Int64Value.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Value message. + * Verifies an Int64Value message. * @function verify - * @memberof google.protobuf.Value + * @memberof google.protobuf.Int64Value * @static * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Value.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.nullValue != null && message.hasOwnProperty("nullValue")) { - properties.kind = 1; - switch (message.nullValue) { - default: - return "nullValue: enum value expected"; - case 0: - break; - } - } - if (message.numberValue != null && message.hasOwnProperty("numberValue")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - if (typeof message.numberValue !== "number") - return "numberValue: number expected"; - } - if (message.stringValue != null && message.hasOwnProperty("stringValue")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - if (!$util.isString(message.stringValue)) - return "stringValue: string expected"; - } - if (message.boolValue != null && message.hasOwnProperty("boolValue")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - if (typeof message.boolValue !== "boolean") - return "boolValue: boolean expected"; - } - if (message.structValue != null && message.hasOwnProperty("structValue")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - var error = $root.google.protobuf.Struct.verify(message.structValue); - if (error) - return "structValue." + error; - } - } - if (message.listValue != null && message.hasOwnProperty("listValue")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - var error = $root.google.protobuf.ListValue.verify(message.listValue); - if (error) - return "listValue." + error; - } - } - return null; - }; - - /** - * Creates a Value message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.Value - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.Value} Value - */ - Value.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.Value) - return object; - var message = new $root.google.protobuf.Value(); - switch (object.nullValue) { - case "NULL_VALUE": - case 0: - message.nullValue = 0; - break; - } - if (object.numberValue != null) - message.numberValue = Number(object.numberValue); - if (object.stringValue != null) - message.stringValue = String(object.stringValue); - if (object.boolValue != null) - message.boolValue = Boolean(object.boolValue); - if (object.structValue != null) { - if (typeof object.structValue !== "object") - throw TypeError(".google.protobuf.Value.structValue: object expected"); - message.structValue = $root.google.protobuf.Struct.fromObject(object.structValue); - } - if (object.listValue != null) { - if (typeof object.listValue !== "object") - throw TypeError(".google.protobuf.Value.listValue: object expected"); - message.listValue = $root.google.protobuf.ListValue.fromObject(object.listValue); - } - return message; - }; - - /** - * Creates a plain object from a Value message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.Value - * @static - * @param {google.protobuf.Value} message Value - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Value.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.nullValue != null && message.hasOwnProperty("nullValue")) { - object.nullValue = options.enums === String ? $root.google.protobuf.NullValue[message.nullValue] : message.nullValue; - if (options.oneofs) - object.kind = "nullValue"; - } - if (message.numberValue != null && message.hasOwnProperty("numberValue")) { - object.numberValue = options.json && !isFinite(message.numberValue) ? String(message.numberValue) : message.numberValue; - if (options.oneofs) - object.kind = "numberValue"; - } - if (message.stringValue != null && message.hasOwnProperty("stringValue")) { - object.stringValue = message.stringValue; - if (options.oneofs) - object.kind = "stringValue"; - } - if (message.boolValue != null && message.hasOwnProperty("boolValue")) { - object.boolValue = message.boolValue; - if (options.oneofs) - object.kind = "boolValue"; - } - if (message.structValue != null && message.hasOwnProperty("structValue")) { - object.structValue = $root.google.protobuf.Struct.toObject(message.structValue, options); - if (options.oneofs) - object.kind = "structValue"; - } - if (message.listValue != null && message.hasOwnProperty("listValue")) { - object.listValue = $root.google.protobuf.ListValue.toObject(message.listValue, options); - if (options.oneofs) - object.kind = "listValue"; - } + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Int64Value.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isInteger(message.value) && !(message.value && $util.isInteger(message.value.low) && $util.isInteger(message.value.high))) + return "value: integer|Long expected"; + return null; + }; + + /** + * Creates an Int64Value message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Int64Value + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Int64Value} Int64Value + */ + Int64Value.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Int64Value) + return object; + var message = new $root.google.protobuf.Int64Value(); + if (object.value != null) + if ($util.Long) + (message.value = $util.Long.fromValue(object.value)).unsigned = false; + else if (typeof object.value === "string") + message.value = parseInt(object.value, 10); + else if (typeof object.value === "number") + message.value = object.value; + else if (typeof object.value === "object") + message.value = new $util.LongBits(object.value.low >>> 0, object.value.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from an Int64Value message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Int64Value + * @static + * @param {google.protobuf.Int64Value} message Int64Value + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Int64Value.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.value = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.value = options.longs === String ? "0" : 0; + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value === "number") + object.value = options.longs === String ? String(message.value) : message.value; + else + object.value = options.longs === String ? $util.Long.prototype.toString.call(message.value) : options.longs === Number ? new $util.LongBits(message.value.low >>> 0, message.value.high >>> 0).toNumber() : message.value; return object; }; /** - * Converts this Value to JSON. + * Converts this Int64Value to JSON. * @function toJSON - * @memberof google.protobuf.Value + * @memberof google.protobuf.Int64Value * @instance * @returns {Object.} JSON object */ - Value.prototype.toJSON = function toJSON() { + Int64Value.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Value; - })(); - - /** - * NullValue enum. - * @name google.protobuf.NullValue - * @enum {number} - * @property {number} NULL_VALUE=0 NULL_VALUE value - */ - protobuf.NullValue = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NULL_VALUE"] = 0; - return values; + return Int64Value; })(); - protobuf.ListValue = (function() { + protobuf.UInt64Value = (function() { /** - * Properties of a ListValue. + * Properties of a UInt64Value. * @memberof google.protobuf - * @interface IListValue - * @property {Array.|null} [values] ListValue values + * @interface IUInt64Value + * @property {number|Long|null} [value] UInt64Value value */ /** - * Constructs a new ListValue. + * Constructs a new UInt64Value. * @memberof google.protobuf - * @classdesc Represents a ListValue. - * @implements IListValue + * @classdesc Represents a UInt64Value. + * @implements IUInt64Value * @constructor - * @param {google.protobuf.IListValue=} [properties] Properties to set + * @param {google.protobuf.IUInt64Value=} [properties] Properties to set */ - function ListValue(properties) { - this.values = []; + function UInt64Value(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -63489,78 +97151,75 @@ } /** - * ListValue values. - * @member {Array.} values - * @memberof google.protobuf.ListValue + * UInt64Value value. + * @member {number|Long} value + * @memberof google.protobuf.UInt64Value * @instance */ - ListValue.prototype.values = $util.emptyArray; + UInt64Value.prototype.value = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Creates a new ListValue instance using the specified properties. + * Creates a new UInt64Value instance using the specified properties. * @function create - * @memberof google.protobuf.ListValue + * @memberof google.protobuf.UInt64Value * @static - * @param {google.protobuf.IListValue=} [properties] Properties to set - * @returns {google.protobuf.ListValue} ListValue instance + * @param {google.protobuf.IUInt64Value=} [properties] Properties to set + * @returns {google.protobuf.UInt64Value} UInt64Value instance */ - ListValue.create = function create(properties) { - return new ListValue(properties); + UInt64Value.create = function create(properties) { + return new UInt64Value(properties); }; /** - * Encodes the specified ListValue message. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages. + * Encodes the specified UInt64Value message. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages. * @function encode - * @memberof google.protobuf.ListValue + * @memberof google.protobuf.UInt64Value * @static - * @param {google.protobuf.IListValue} message ListValue message or plain object to encode + * @param {google.protobuf.IUInt64Value} message UInt64Value message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListValue.encode = function encode(message, writer) { + UInt64Value.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.values != null && message.values.length) - for (var i = 0; i < message.values.length; ++i) - $root.google.protobuf.Value.encode(message.values[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.value); return writer; }; /** - * Encodes the specified ListValue message, length delimited. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages. + * Encodes the specified UInt64Value message, length delimited. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.ListValue + * @memberof google.protobuf.UInt64Value * @static - * @param {google.protobuf.IListValue} message ListValue message or plain object to encode + * @param {google.protobuf.IUInt64Value} message UInt64Value message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListValue.encodeDelimited = function encodeDelimited(message, writer) { + UInt64Value.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListValue message from the specified reader or buffer. + * Decodes a UInt64Value message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.ListValue + * @memberof google.protobuf.UInt64Value * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.ListValue} ListValue + * @returns {google.protobuf.UInt64Value} UInt64Value * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListValue.decode = function decode(reader, length) { + UInt64Value.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.protobuf.ListValue(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UInt64Value(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.values && message.values.length)) - message.values = []; - message.values.push($root.google.protobuf.Value.decode(reader, reader.uint32())); + message.value = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -63571,125 +97230,121 @@ }; /** - * Decodes a ListValue message from the specified reader or buffer, length delimited. + * Decodes a UInt64Value message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.ListValue + * @memberof google.protobuf.UInt64Value * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.ListValue} ListValue + * @returns {google.protobuf.UInt64Value} UInt64Value * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListValue.decodeDelimited = function decodeDelimited(reader) { + UInt64Value.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListValue message. + * Verifies a UInt64Value message. * @function verify - * @memberof google.protobuf.ListValue + * @memberof google.protobuf.UInt64Value * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListValue.verify = function verify(message) { + UInt64Value.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) { - var error = $root.google.protobuf.Value.verify(message.values[i]); - if (error) - return "values." + error; - } - } + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isInteger(message.value) && !(message.value && $util.isInteger(message.value.low) && $util.isInteger(message.value.high))) + return "value: integer|Long expected"; return null; }; /** - * Creates a ListValue message from a plain object. Also converts values to their respective internal types. + * Creates a UInt64Value message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.ListValue + * @memberof google.protobuf.UInt64Value * @static * @param {Object.} object Plain object - * @returns {google.protobuf.ListValue} ListValue + * @returns {google.protobuf.UInt64Value} UInt64Value */ - ListValue.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.ListValue) + UInt64Value.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.UInt64Value) return object; - var message = new $root.google.protobuf.ListValue(); - if (object.values) { - if (!Array.isArray(object.values)) - throw TypeError(".google.protobuf.ListValue.values: array expected"); - message.values = []; - for (var i = 0; i < object.values.length; ++i) { - if (typeof object.values[i] !== "object") - throw TypeError(".google.protobuf.ListValue.values: object expected"); - message.values[i] = $root.google.protobuf.Value.fromObject(object.values[i]); - } - } + var message = new $root.google.protobuf.UInt64Value(); + if (object.value != null) + if ($util.Long) + (message.value = $util.Long.fromValue(object.value)).unsigned = true; + else if (typeof object.value === "string") + message.value = parseInt(object.value, 10); + else if (typeof object.value === "number") + message.value = object.value; + else if (typeof object.value === "object") + message.value = new $util.LongBits(object.value.low >>> 0, object.value.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a ListValue message. Also converts values to other types if specified. + * Creates a plain object from a UInt64Value message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.ListValue + * @memberof google.protobuf.UInt64Value * @static - * @param {google.protobuf.ListValue} message ListValue + * @param {google.protobuf.UInt64Value} message UInt64Value * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListValue.toObject = function toObject(message, options) { + UInt64Value.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.values = []; - if (message.values && message.values.length) { - object.values = []; - for (var j = 0; j < message.values.length; ++j) - object.values[j] = $root.google.protobuf.Value.toObject(message.values[j], options); - } + if (options.defaults) + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.value = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.value = options.longs === String ? "0" : 0; + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value === "number") + object.value = options.longs === String ? String(message.value) : message.value; + else + object.value = options.longs === String ? $util.Long.prototype.toString.call(message.value) : options.longs === Number ? new $util.LongBits(message.value.low >>> 0, message.value.high >>> 0).toNumber(true) : message.value; return object; }; /** - * Converts this ListValue to JSON. + * Converts this UInt64Value to JSON. * @function toJSON - * @memberof google.protobuf.ListValue + * @memberof google.protobuf.UInt64Value * @instance * @returns {Object.} JSON object */ - ListValue.prototype.toJSON = function toJSON() { + UInt64Value.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListValue; + return UInt64Value; })(); - protobuf.Timestamp = (function() { + protobuf.Int32Value = (function() { /** - * Properties of a Timestamp. + * Properties of an Int32Value. * @memberof google.protobuf - * @interface ITimestamp - * @property {number|Long|null} [seconds] Timestamp seconds - * @property {number|null} [nanos] Timestamp nanos + * @interface IInt32Value + * @property {number|null} [value] Int32Value value */ /** - * Constructs a new Timestamp. + * Constructs a new Int32Value. * @memberof google.protobuf - * @classdesc Represents a Timestamp. - * @implements ITimestamp + * @classdesc Represents an Int32Value. + * @implements IInt32Value * @constructor - * @param {google.protobuf.ITimestamp=} [properties] Properties to set + * @param {google.protobuf.IInt32Value=} [properties] Properties to set */ - function Timestamp(properties) { + function Int32Value(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -63697,88 +97352,75 @@ } /** - * Timestamp seconds. - * @member {number|Long} seconds - * @memberof google.protobuf.Timestamp - * @instance - */ - Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Timestamp nanos. - * @member {number} nanos - * @memberof google.protobuf.Timestamp + * Int32Value value. + * @member {number} value + * @memberof google.protobuf.Int32Value * @instance */ - Timestamp.prototype.nanos = 0; + Int32Value.prototype.value = 0; /** - * Creates a new Timestamp instance using the specified properties. + * Creates a new Int32Value instance using the specified properties. * @function create - * @memberof google.protobuf.Timestamp + * @memberof google.protobuf.Int32Value * @static - * @param {google.protobuf.ITimestamp=} [properties] Properties to set - * @returns {google.protobuf.Timestamp} Timestamp instance + * @param {google.protobuf.IInt32Value=} [properties] Properties to set + * @returns {google.protobuf.Int32Value} Int32Value instance */ - Timestamp.create = function create(properties) { - return new Timestamp(properties); + Int32Value.create = function create(properties) { + return new Int32Value(properties); }; /** - * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * Encodes the specified Int32Value message. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages. * @function encode - * @memberof google.protobuf.Timestamp + * @memberof google.protobuf.Int32Value * @static - * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode + * @param {google.protobuf.IInt32Value} message Int32Value message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Timestamp.encode = function encode(message, writer) { + Int32Value.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); - if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.value); return writer; }; /** - * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * Encodes the specified Int32Value message, length delimited. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.Timestamp + * @memberof google.protobuf.Int32Value * @static - * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode + * @param {google.protobuf.IInt32Value} message Int32Value message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Timestamp.encodeDelimited = function encodeDelimited(message, writer) { + Int32Value.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Timestamp message from the specified reader or buffer. + * Decodes an Int32Value message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.Timestamp + * @memberof google.protobuf.Int32Value * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Timestamp} Timestamp + * @returns {google.protobuf.Int32Value} Int32Value * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Timestamp.decode = function decode(reader, length) { + Int32Value.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.protobuf.Timestamp(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Int32Value(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.seconds = reader.int64(); - break; - case 2: - message.nanos = reader.int32(); + message.value = reader.int32(); break; default: reader.skipType(tag & 7); @@ -63789,131 +97431,107 @@ }; /** - * Decodes a Timestamp message from the specified reader or buffer, length delimited. + * Decodes an Int32Value message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.Timestamp + * @memberof google.protobuf.Int32Value * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.Timestamp} Timestamp + * @returns {google.protobuf.Int32Value} Int32Value * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Timestamp.decodeDelimited = function decodeDelimited(reader) { + Int32Value.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Timestamp message. + * Verifies an Int32Value message. * @function verify - * @memberof google.protobuf.Timestamp + * @memberof google.protobuf.Int32Value * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Timestamp.verify = function verify(message) { + Int32Value.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) - return "seconds: integer|Long expected"; - if (message.nanos != null && message.hasOwnProperty("nanos")) - if (!$util.isInteger(message.nanos)) - return "nanos: integer expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isInteger(message.value)) + return "value: integer expected"; return null; }; /** - * Creates a Timestamp message from a plain object. Also converts values to their respective internal types. + * Creates an Int32Value message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.Timestamp + * @memberof google.protobuf.Int32Value * @static * @param {Object.} object Plain object - * @returns {google.protobuf.Timestamp} Timestamp + * @returns {google.protobuf.Int32Value} Int32Value */ - Timestamp.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.Timestamp) + Int32Value.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Int32Value) return object; - var message = new $root.google.protobuf.Timestamp(); - if (object.seconds != null) - if ($util.Long) - (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; - else if (typeof object.seconds === "string") - message.seconds = parseInt(object.seconds, 10); - else if (typeof object.seconds === "number") - message.seconds = object.seconds; - else if (typeof object.seconds === "object") - message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); - if (object.nanos != null) - message.nanos = object.nanos | 0; + var message = new $root.google.protobuf.Int32Value(); + if (object.value != null) + message.value = object.value | 0; return message; }; /** - * Creates a plain object from a Timestamp message. Also converts values to other types if specified. + * Creates a plain object from an Int32Value message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.Timestamp + * @memberof google.protobuf.Int32Value * @static - * @param {google.protobuf.Timestamp} message Timestamp + * @param {google.protobuf.Int32Value} message Int32Value * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Timestamp.toObject = function toObject(message, options) { + Int32Value.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.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.seconds = options.longs === String ? "0" : 0; - object.nanos = 0; - } - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (typeof message.seconds === "number") - object.seconds = options.longs === String ? String(message.seconds) : message.seconds; - else - object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; - if (message.nanos != null && message.hasOwnProperty("nanos")) - object.nanos = message.nanos; + if (options.defaults) + object.value = 0; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; return object; }; /** - * Converts this Timestamp to JSON. + * Converts this Int32Value to JSON. * @function toJSON - * @memberof google.protobuf.Timestamp + * @memberof google.protobuf.Int32Value * @instance * @returns {Object.} JSON object */ - Timestamp.prototype.toJSON = function toJSON() { + Int32Value.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Timestamp; + return Int32Value; })(); - protobuf.Any = (function() { + protobuf.UInt32Value = (function() { /** - * Properties of an Any. + * Properties of a UInt32Value. * @memberof google.protobuf - * @interface IAny - * @property {string|null} [type_url] Any type_url - * @property {Uint8Array|null} [value] Any value + * @interface IUInt32Value + * @property {number|null} [value] UInt32Value value */ /** - * Constructs a new Any. + * Constructs a new UInt32Value. * @memberof google.protobuf - * @classdesc Represents an Any. - * @implements IAny + * @classdesc Represents a UInt32Value. + * @implements IUInt32Value * @constructor - * @param {google.protobuf.IAny=} [properties] Properties to set + * @param {google.protobuf.IUInt32Value=} [properties] Properties to set */ - function Any(properties) { + function UInt32Value(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -63921,88 +97539,75 @@ } /** - * Any type_url. - * @member {string} type_url - * @memberof google.protobuf.Any - * @instance - */ - Any.prototype.type_url = ""; - - /** - * Any value. - * @member {Uint8Array} value - * @memberof google.protobuf.Any + * UInt32Value value. + * @member {number} value + * @memberof google.protobuf.UInt32Value * @instance */ - Any.prototype.value = $util.newBuffer([]); + UInt32Value.prototype.value = 0; /** - * Creates a new Any instance using the specified properties. + * Creates a new UInt32Value instance using the specified properties. * @function create - * @memberof google.protobuf.Any + * @memberof google.protobuf.UInt32Value * @static - * @param {google.protobuf.IAny=} [properties] Properties to set - * @returns {google.protobuf.Any} Any instance + * @param {google.protobuf.IUInt32Value=} [properties] Properties to set + * @returns {google.protobuf.UInt32Value} UInt32Value instance */ - Any.create = function create(properties) { - return new Any(properties); + UInt32Value.create = function create(properties) { + return new UInt32Value(properties); }; /** - * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * Encodes the specified UInt32Value message. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages. * @function encode - * @memberof google.protobuf.Any + * @memberof google.protobuf.UInt32Value * @static - * @param {google.protobuf.IAny} message Any message or plain object to encode + * @param {google.protobuf.IUInt32Value} message UInt32Value message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Any.encode = function encode(message, writer) { + UInt32Value.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type_url != null && Object.hasOwnProperty.call(message, "type_url")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.type_url); if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); + writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.value); return writer; }; /** - * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * Encodes the specified UInt32Value message, length delimited. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.Any + * @memberof google.protobuf.UInt32Value * @static - * @param {google.protobuf.IAny} message Any message or plain object to encode + * @param {google.protobuf.IUInt32Value} message UInt32Value message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Any.encodeDelimited = function encodeDelimited(message, writer) { + UInt32Value.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Any message from the specified reader or buffer. + * Decodes a UInt32Value message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.Any + * @memberof google.protobuf.UInt32Value * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Any} Any + * @returns {google.protobuf.UInt32Value} UInt32Value * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Any.decode = function decode(reader, length) { + UInt32Value.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.protobuf.Any(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UInt32Value(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.type_url = reader.string(); - break; - case 2: - message.value = reader.bytes(); + message.value = reader.uint32(); break; default: reader.skipType(tag & 7); @@ -64013,126 +97618,107 @@ }; /** - * Decodes an Any message from the specified reader or buffer, length delimited. + * Decodes a UInt32Value message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.Any + * @memberof google.protobuf.UInt32Value * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.Any} Any + * @returns {google.protobuf.UInt32Value} UInt32Value * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Any.decodeDelimited = function decodeDelimited(reader) { + UInt32Value.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Any message. + * Verifies a UInt32Value message. * @function verify - * @memberof google.protobuf.Any + * @memberof google.protobuf.UInt32Value * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Any.verify = function verify(message) { + UInt32Value.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.type_url != null && message.hasOwnProperty("type_url")) - if (!$util.isString(message.type_url)) - return "type_url: string expected"; if (message.value != null && message.hasOwnProperty("value")) - if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) - return "value: buffer expected"; + if (!$util.isInteger(message.value)) + return "value: integer expected"; return null; }; /** - * Creates an Any message from a plain object. Also converts values to their respective internal types. + * Creates a UInt32Value message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.Any + * @memberof google.protobuf.UInt32Value * @static * @param {Object.} object Plain object - * @returns {google.protobuf.Any} Any + * @returns {google.protobuf.UInt32Value} UInt32Value */ - Any.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.Any) + UInt32Value.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.UInt32Value) return object; - var message = new $root.google.protobuf.Any(); - if (object.type_url != null) - message.type_url = String(object.type_url); + var message = new $root.google.protobuf.UInt32Value(); if (object.value != null) - if (typeof object.value === "string") - $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); - else if (object.value.length) - message.value = object.value; + message.value = object.value >>> 0; return message; }; /** - * Creates a plain object from an Any message. Also converts values to other types if specified. + * Creates a plain object from a UInt32Value message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.Any + * @memberof google.protobuf.UInt32Value * @static - * @param {google.protobuf.Any} message Any + * @param {google.protobuf.UInt32Value} message UInt32Value * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Any.toObject = function toObject(message, options) { + UInt32Value.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.type_url = ""; - if (options.bytes === String) - object.value = ""; - else { - object.value = []; - if (options.bytes !== Array) - object.value = $util.newBuffer(object.value); - } - } - if (message.type_url != null && message.hasOwnProperty("type_url")) - object.type_url = message.type_url; + if (options.defaults) + object.value = 0; if (message.value != null && message.hasOwnProperty("value")) - object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; + object.value = message.value; return object; }; /** - * Converts this Any to JSON. + * Converts this UInt32Value to JSON. * @function toJSON - * @memberof google.protobuf.Any + * @memberof google.protobuf.UInt32Value * @instance * @returns {Object.} JSON object */ - Any.prototype.toJSON = function toJSON() { + UInt32Value.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Any; + return UInt32Value; })(); - protobuf.Duration = (function() { + protobuf.BoolValue = (function() { /** - * Properties of a Duration. + * Properties of a BoolValue. * @memberof google.protobuf - * @interface IDuration - * @property {number|Long|null} [seconds] Duration seconds - * @property {number|null} [nanos] Duration nanos + * @interface IBoolValue + * @property {boolean|null} [value] BoolValue value */ /** - * Constructs a new Duration. + * Constructs a new BoolValue. * @memberof google.protobuf - * @classdesc Represents a Duration. - * @implements IDuration + * @classdesc Represents a BoolValue. + * @implements IBoolValue * @constructor - * @param {google.protobuf.IDuration=} [properties] Properties to set + * @param {google.protobuf.IBoolValue=} [properties] Properties to set */ - function Duration(properties) { + function BoolValue(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64140,88 +97726,75 @@ } /** - * Duration seconds. - * @member {number|Long} seconds - * @memberof google.protobuf.Duration - * @instance - */ - Duration.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Duration nanos. - * @member {number} nanos - * @memberof google.protobuf.Duration + * BoolValue value. + * @member {boolean} value + * @memberof google.protobuf.BoolValue * @instance */ - Duration.prototype.nanos = 0; + BoolValue.prototype.value = false; /** - * Creates a new Duration instance using the specified properties. + * Creates a new BoolValue instance using the specified properties. * @function create - * @memberof google.protobuf.Duration + * @memberof google.protobuf.BoolValue * @static - * @param {google.protobuf.IDuration=} [properties] Properties to set - * @returns {google.protobuf.Duration} Duration instance + * @param {google.protobuf.IBoolValue=} [properties] Properties to set + * @returns {google.protobuf.BoolValue} BoolValue instance */ - Duration.create = function create(properties) { - return new Duration(properties); + BoolValue.create = function create(properties) { + return new BoolValue(properties); }; /** - * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * Encodes the specified BoolValue message. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages. * @function encode - * @memberof google.protobuf.Duration + * @memberof google.protobuf.BoolValue * @static - * @param {google.protobuf.IDuration} message Duration message or plain object to encode + * @param {google.protobuf.IBoolValue} message BoolValue message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Duration.encode = function encode(message, writer) { + BoolValue.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); - if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.value); return writer; }; /** - * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * Encodes the specified BoolValue message, length delimited. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.Duration + * @memberof google.protobuf.BoolValue * @static - * @param {google.protobuf.IDuration} message Duration message or plain object to encode + * @param {google.protobuf.IBoolValue} message BoolValue message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Duration.encodeDelimited = function encodeDelimited(message, writer) { + BoolValue.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Duration message from the specified reader or buffer. + * Decodes a BoolValue message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.Duration + * @memberof google.protobuf.BoolValue * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Duration} Duration + * @returns {google.protobuf.BoolValue} BoolValue * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Duration.decode = function decode(reader, length) { + BoolValue.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.protobuf.Duration(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.BoolValue(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.seconds = reader.int64(); - break; - case 2: - message.nanos = reader.int32(); + message.value = reader.bool(); break; default: reader.skipType(tag & 7); @@ -64232,129 +97805,107 @@ }; /** - * Decodes a Duration message from the specified reader or buffer, length delimited. + * Decodes a BoolValue message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.Duration + * @memberof google.protobuf.BoolValue * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.Duration} Duration + * @returns {google.protobuf.BoolValue} BoolValue * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Duration.decodeDelimited = function decodeDelimited(reader) { + BoolValue.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Duration message. + * Verifies a BoolValue message. * @function verify - * @memberof google.protobuf.Duration + * @memberof google.protobuf.BoolValue * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Duration.verify = function verify(message) { + BoolValue.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) - return "seconds: integer|Long expected"; - if (message.nanos != null && message.hasOwnProperty("nanos")) - if (!$util.isInteger(message.nanos)) - return "nanos: integer expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value !== "boolean") + return "value: boolean expected"; return null; }; /** - * Creates a Duration message from a plain object. Also converts values to their respective internal types. + * Creates a BoolValue message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.Duration + * @memberof google.protobuf.BoolValue * @static * @param {Object.} object Plain object - * @returns {google.protobuf.Duration} Duration + * @returns {google.protobuf.BoolValue} BoolValue */ - Duration.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.Duration) + BoolValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.BoolValue) return object; - var message = new $root.google.protobuf.Duration(); - if (object.seconds != null) - if ($util.Long) - (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; - else if (typeof object.seconds === "string") - message.seconds = parseInt(object.seconds, 10); - else if (typeof object.seconds === "number") - message.seconds = object.seconds; - else if (typeof object.seconds === "object") - message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); - if (object.nanos != null) - message.nanos = object.nanos | 0; + var message = new $root.google.protobuf.BoolValue(); + if (object.value != null) + message.value = Boolean(object.value); return message; }; /** - * Creates a plain object from a Duration message. Also converts values to other types if specified. + * Creates a plain object from a BoolValue message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.Duration + * @memberof google.protobuf.BoolValue * @static - * @param {google.protobuf.Duration} message Duration + * @param {google.protobuf.BoolValue} message BoolValue * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Duration.toObject = function toObject(message, options) { + BoolValue.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.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.seconds = options.longs === String ? "0" : 0; - object.nanos = 0; - } - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (typeof message.seconds === "number") - object.seconds = options.longs === String ? String(message.seconds) : message.seconds; - else - object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; - if (message.nanos != null && message.hasOwnProperty("nanos")) - object.nanos = message.nanos; + if (options.defaults) + object.value = false; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; return object; }; /** - * Converts this Duration to JSON. + * Converts this BoolValue to JSON. * @function toJSON - * @memberof google.protobuf.Duration + * @memberof google.protobuf.BoolValue * @instance * @returns {Object.} JSON object */ - Duration.prototype.toJSON = function toJSON() { + BoolValue.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Duration; + return BoolValue; })(); - protobuf.Empty = (function() { + protobuf.StringValue = (function() { /** - * Properties of an Empty. + * Properties of a StringValue. * @memberof google.protobuf - * @interface IEmpty + * @interface IStringValue + * @property {string|null} [value] StringValue value */ /** - * Constructs a new Empty. + * Constructs a new StringValue. * @memberof google.protobuf - * @classdesc Represents an Empty. - * @implements IEmpty + * @classdesc Represents a StringValue. + * @implements IStringValue * @constructor - * @param {google.protobuf.IEmpty=} [properties] Properties to set + * @param {google.protobuf.IStringValue=} [properties] Properties to set */ - function Empty(properties) { + function StringValue(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64362,63 +97913,76 @@ } /** - * Creates a new Empty instance using the specified properties. + * StringValue value. + * @member {string} value + * @memberof google.protobuf.StringValue + * @instance + */ + StringValue.prototype.value = ""; + + /** + * Creates a new StringValue instance using the specified properties. * @function create - * @memberof google.protobuf.Empty + * @memberof google.protobuf.StringValue * @static - * @param {google.protobuf.IEmpty=} [properties] Properties to set - * @returns {google.protobuf.Empty} Empty instance + * @param {google.protobuf.IStringValue=} [properties] Properties to set + * @returns {google.protobuf.StringValue} StringValue instance */ - Empty.create = function create(properties) { - return new Empty(properties); + StringValue.create = function create(properties) { + return new StringValue(properties); }; /** - * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. + * Encodes the specified StringValue message. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages. * @function encode - * @memberof google.protobuf.Empty + * @memberof google.protobuf.StringValue * @static - * @param {google.protobuf.IEmpty} message Empty message or plain object to encode + * @param {google.protobuf.IStringValue} message StringValue message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Empty.encode = function encode(message, writer) { + StringValue.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.value); return writer; }; /** - * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. + * Encodes the specified StringValue message, length delimited. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.Empty + * @memberof google.protobuf.StringValue * @static - * @param {google.protobuf.IEmpty} message Empty message or plain object to encode + * @param {google.protobuf.IStringValue} message StringValue message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Empty.encodeDelimited = function encodeDelimited(message, writer) { + StringValue.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Empty message from the specified reader or buffer. + * Decodes a StringValue message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.Empty + * @memberof google.protobuf.StringValue * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Empty} Empty + * @returns {google.protobuf.StringValue} StringValue * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Empty.decode = function decode(reader, length) { + StringValue.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.protobuf.Empty(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.StringValue(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.value = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -64428,95 +97992,107 @@ }; /** - * Decodes an Empty message from the specified reader or buffer, length delimited. + * Decodes a StringValue message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.Empty + * @memberof google.protobuf.StringValue * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.Empty} Empty + * @returns {google.protobuf.StringValue} StringValue * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Empty.decodeDelimited = function decodeDelimited(reader) { + StringValue.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Empty message. + * Verifies a StringValue message. * @function verify - * @memberof google.protobuf.Empty + * @memberof google.protobuf.StringValue * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Empty.verify = function verify(message) { + StringValue.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; return null; }; /** - * Creates an Empty message from a plain object. Also converts values to their respective internal types. + * Creates a StringValue message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.Empty + * @memberof google.protobuf.StringValue * @static * @param {Object.} object Plain object - * @returns {google.protobuf.Empty} Empty + * @returns {google.protobuf.StringValue} StringValue */ - Empty.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.Empty) + StringValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.StringValue) return object; - return new $root.google.protobuf.Empty(); + var message = new $root.google.protobuf.StringValue(); + if (object.value != null) + message.value = String(object.value); + return message; }; /** - * Creates a plain object from an Empty message. Also converts values to other types if specified. + * Creates a plain object from a StringValue message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.Empty + * @memberof google.protobuf.StringValue * @static - * @param {google.protobuf.Empty} message Empty + * @param {google.protobuf.StringValue} message StringValue * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Empty.toObject = function toObject() { - return {}; + StringValue.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.value = ""; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; + return object; }; /** - * Converts this Empty to JSON. + * Converts this StringValue to JSON. * @function toJSON - * @memberof google.protobuf.Empty + * @memberof google.protobuf.StringValue * @instance * @returns {Object.} JSON object */ - Empty.prototype.toJSON = function toJSON() { + StringValue.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Empty; + return StringValue; })(); - protobuf.FieldMask = (function() { + protobuf.BytesValue = (function() { /** - * Properties of a FieldMask. + * Properties of a BytesValue. * @memberof google.protobuf - * @interface IFieldMask - * @property {Array.|null} [paths] FieldMask paths + * @interface IBytesValue + * @property {Uint8Array|null} [value] BytesValue value */ /** - * Constructs a new FieldMask. + * Constructs a new BytesValue. * @memberof google.protobuf - * @classdesc Represents a FieldMask. - * @implements IFieldMask + * @classdesc Represents a BytesValue. + * @implements IBytesValue * @constructor - * @param {google.protobuf.IFieldMask=} [properties] Properties to set + * @param {google.protobuf.IBytesValue=} [properties] Properties to set */ - function FieldMask(properties) { - this.paths = []; + function BytesValue(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64524,78 +98100,75 @@ } /** - * FieldMask paths. - * @member {Array.} paths - * @memberof google.protobuf.FieldMask + * BytesValue value. + * @member {Uint8Array} value + * @memberof google.protobuf.BytesValue * @instance */ - FieldMask.prototype.paths = $util.emptyArray; + BytesValue.prototype.value = $util.newBuffer([]); /** - * Creates a new FieldMask instance using the specified properties. + * Creates a new BytesValue instance using the specified properties. * @function create - * @memberof google.protobuf.FieldMask + * @memberof google.protobuf.BytesValue * @static - * @param {google.protobuf.IFieldMask=} [properties] Properties to set - * @returns {google.protobuf.FieldMask} FieldMask instance + * @param {google.protobuf.IBytesValue=} [properties] Properties to set + * @returns {google.protobuf.BytesValue} BytesValue instance */ - FieldMask.create = function create(properties) { - return new FieldMask(properties); + BytesValue.create = function create(properties) { + return new BytesValue(properties); }; /** - * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. + * Encodes the specified BytesValue message. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages. * @function encode - * @memberof google.protobuf.FieldMask + * @memberof google.protobuf.BytesValue * @static - * @param {google.protobuf.IFieldMask} message FieldMask message or plain object to encode + * @param {google.protobuf.IBytesValue} message BytesValue message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FieldMask.encode = function encode(message, writer) { + BytesValue.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.paths != null && message.paths.length) - for (var i = 0; i < message.paths.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.paths[i]); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.value); return writer; }; /** - * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. + * Encodes the specified BytesValue message, length delimited. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.FieldMask + * @memberof google.protobuf.BytesValue * @static - * @param {google.protobuf.IFieldMask} message FieldMask message or plain object to encode + * @param {google.protobuf.IBytesValue} message BytesValue message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FieldMask.encodeDelimited = function encodeDelimited(message, writer) { + BytesValue.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FieldMask message from the specified reader or buffer. + * Decodes a BytesValue message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.FieldMask + * @memberof google.protobuf.BytesValue * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FieldMask} FieldMask + * @returns {google.protobuf.BytesValue} BytesValue * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FieldMask.decode = function decode(reader, length) { + BytesValue.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.protobuf.FieldMask(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.BytesValue(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.paths && message.paths.length)) - message.paths = []; - message.paths.push(reader.string()); + message.value = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -64606,99 +98179,96 @@ }; /** - * Decodes a FieldMask message from the specified reader or buffer, length delimited. + * Decodes a BytesValue message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.FieldMask + * @memberof google.protobuf.BytesValue * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FieldMask} FieldMask + * @returns {google.protobuf.BytesValue} BytesValue * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FieldMask.decodeDelimited = function decodeDelimited(reader) { + BytesValue.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FieldMask message. + * Verifies a BytesValue message. * @function verify - * @memberof google.protobuf.FieldMask + * @memberof google.protobuf.BytesValue * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FieldMask.verify = function verify(message) { + BytesValue.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.paths != null && message.hasOwnProperty("paths")) { - if (!Array.isArray(message.paths)) - return "paths: array expected"; - for (var i = 0; i < message.paths.length; ++i) - if (!$util.isString(message.paths[i])) - return "paths: string[] expected"; - } + if (message.value != null && message.hasOwnProperty("value")) + if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) + return "value: buffer expected"; return null; }; /** - * Creates a FieldMask message from a plain object. Also converts values to their respective internal types. + * Creates a BytesValue message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.FieldMask + * @memberof google.protobuf.BytesValue * @static * @param {Object.} object Plain object - * @returns {google.protobuf.FieldMask} FieldMask + * @returns {google.protobuf.BytesValue} BytesValue */ - FieldMask.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FieldMask) + BytesValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.BytesValue) return object; - var message = new $root.google.protobuf.FieldMask(); - if (object.paths) { - if (!Array.isArray(object.paths)) - throw TypeError(".google.protobuf.FieldMask.paths: array expected"); - message.paths = []; - for (var i = 0; i < object.paths.length; ++i) - message.paths[i] = String(object.paths[i]); - } + var message = new $root.google.protobuf.BytesValue(); + if (object.value != null) + if (typeof object.value === "string") + $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); + else if (object.value.length) + message.value = object.value; return message; }; /** - * Creates a plain object from a FieldMask message. Also converts values to other types if specified. + * Creates a plain object from a BytesValue message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.FieldMask + * @memberof google.protobuf.BytesValue * @static - * @param {google.protobuf.FieldMask} message FieldMask + * @param {google.protobuf.BytesValue} message BytesValue * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FieldMask.toObject = function toObject(message, options) { + BytesValue.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.paths = []; - if (message.paths && message.paths.length) { - object.paths = []; - for (var j = 0; j < message.paths.length; ++j) - object.paths[j] = message.paths[j]; - } + if (options.defaults) + if (options.bytes === String) + object.value = ""; + else { + object.value = []; + if (options.bytes !== Array) + object.value = $util.newBuffer(object.value); + } + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; return object; }; /** - * Converts this FieldMask to JSON. + * Converts this BytesValue to JSON. * @function toJSON - * @memberof google.protobuf.FieldMask + * @memberof google.protobuf.BytesValue * @instance * @returns {Object.} JSON object */ - FieldMask.prototype.toJSON = function toJSON() { + BytesValue.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FieldMask; + return BytesValue; })(); return protobuf; @@ -65225,6 +98795,265 @@ return Money; })(); + type.Color = (function() { + + /** + * Properties of a Color. + * @memberof google.type + * @interface IColor + * @property {number|null} [red] Color red + * @property {number|null} [green] Color green + * @property {number|null} [blue] Color blue + * @property {google.protobuf.IFloatValue|null} [alpha] Color alpha + */ + + /** + * Constructs a new Color. + * @memberof google.type + * @classdesc Represents a Color. + * @implements IColor + * @constructor + * @param {google.type.IColor=} [properties] Properties to set + */ + function Color(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]]; + } + + /** + * Color red. + * @member {number} red + * @memberof google.type.Color + * @instance + */ + Color.prototype.red = 0; + + /** + * Color green. + * @member {number} green + * @memberof google.type.Color + * @instance + */ + Color.prototype.green = 0; + + /** + * Color blue. + * @member {number} blue + * @memberof google.type.Color + * @instance + */ + Color.prototype.blue = 0; + + /** + * Color alpha. + * @member {google.protobuf.IFloatValue|null|undefined} alpha + * @memberof google.type.Color + * @instance + */ + Color.prototype.alpha = null; + + /** + * Creates a new Color instance using the specified properties. + * @function create + * @memberof google.type.Color + * @static + * @param {google.type.IColor=} [properties] Properties to set + * @returns {google.type.Color} Color instance + */ + Color.create = function create(properties) { + return new Color(properties); + }; + + /** + * Encodes the specified Color message. Does not implicitly {@link google.type.Color.verify|verify} messages. + * @function encode + * @memberof google.type.Color + * @static + * @param {google.type.IColor} message Color message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Color.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.red != null && Object.hasOwnProperty.call(message, "red")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.red); + if (message.green != null && Object.hasOwnProperty.call(message, "green")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.green); + if (message.blue != null && Object.hasOwnProperty.call(message, "blue")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.blue); + if (message.alpha != null && Object.hasOwnProperty.call(message, "alpha")) + $root.google.protobuf.FloatValue.encode(message.alpha, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Color message, length delimited. Does not implicitly {@link google.type.Color.verify|verify} messages. + * @function encodeDelimited + * @memberof google.type.Color + * @static + * @param {google.type.IColor} message Color message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Color.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Color message from the specified reader or buffer. + * @function decode + * @memberof google.type.Color + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.type.Color} Color + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Color.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.type.Color(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.red = reader.float(); + break; + case 2: + message.green = reader.float(); + break; + case 3: + message.blue = reader.float(); + break; + case 4: + message.alpha = $root.google.protobuf.FloatValue.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Color message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.type.Color + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.type.Color} Color + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Color.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Color message. + * @function verify + * @memberof google.type.Color + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Color.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.red != null && message.hasOwnProperty("red")) + if (typeof message.red !== "number") + return "red: number expected"; + if (message.green != null && message.hasOwnProperty("green")) + if (typeof message.green !== "number") + return "green: number expected"; + if (message.blue != null && message.hasOwnProperty("blue")) + if (typeof message.blue !== "number") + return "blue: number expected"; + if (message.alpha != null && message.hasOwnProperty("alpha")) { + var error = $root.google.protobuf.FloatValue.verify(message.alpha); + if (error) + return "alpha." + error; + } + return null; + }; + + /** + * Creates a Color message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.type.Color + * @static + * @param {Object.} object Plain object + * @returns {google.type.Color} Color + */ + Color.fromObject = function fromObject(object) { + if (object instanceof $root.google.type.Color) + return object; + var message = new $root.google.type.Color(); + if (object.red != null) + message.red = Number(object.red); + if (object.green != null) + message.green = Number(object.green); + if (object.blue != null) + message.blue = Number(object.blue); + if (object.alpha != null) { + if (typeof object.alpha !== "object") + throw TypeError(".google.type.Color.alpha: object expected"); + message.alpha = $root.google.protobuf.FloatValue.fromObject(object.alpha); + } + return message; + }; + + /** + * Creates a plain object from a Color message. Also converts values to other types if specified. + * @function toObject + * @memberof google.type.Color + * @static + * @param {google.type.Color} message Color + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Color.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.red = 0; + object.green = 0; + object.blue = 0; + object.alpha = null; + } + if (message.red != null && message.hasOwnProperty("red")) + object.red = options.json && !isFinite(message.red) ? String(message.red) : message.red; + if (message.green != null && message.hasOwnProperty("green")) + object.green = options.json && !isFinite(message.green) ? String(message.green) : message.green; + if (message.blue != null && message.hasOwnProperty("blue")) + object.blue = options.json && !isFinite(message.blue) ? String(message.blue) : message.blue; + if (message.alpha != null && message.hasOwnProperty("alpha")) + object.alpha = $root.google.protobuf.FloatValue.toObject(message.alpha, options); + return object; + }; + + /** + * Converts this Color to JSON. + * @function toJSON + * @memberof google.type.Color + * @instance + * @returns {Object.} JSON object + */ + Color.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Color; + })(); + return type; })(); diff --git a/packages/google-cloud-aiplatform/protos/protos.json b/packages/google-cloud-aiplatform/protos/protos.json index 1e1abaa8046..c90ceb87114 100644 --- a/packages/google-cloud-aiplatform/protos/protos.json +++ b/packages/google-cloud-aiplatform/protos/protos.json @@ -5897,6 +5897,2222 @@ } } }, + "schema": { + "options": { + "go_package": "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema;schema", + "java_multiple_files": true, + "java_outer_classname": "SavedQueryMetadataProto", + "java_package": "com.google.cloud.aiplatform.v1beta1.schema" + }, + "nested": { + "ImageClassificationAnnotation": { + "fields": { + "annotationSpecId": { + "type": "string", + "id": 1 + }, + "displayName": { + "type": "string", + "id": 2 + } + } + }, + "ImageBoundingBoxAnnotation": { + "fields": { + "annotationSpecId": { + "type": "string", + "id": 1 + }, + "displayName": { + "type": "string", + "id": 2 + }, + "xMin": { + "type": "double", + "id": 3 + }, + "xMax": { + "type": "double", + "id": 4 + }, + "yMin": { + "type": "double", + "id": 5 + }, + "yMax": { + "type": "double", + "id": 6 + } + } + }, + "ImageSegmentationAnnotation": { + "oneofs": { + "annotation": { + "oneof": [ + "maskAnnotation", + "polygonAnnotation", + "polylineAnnotation" + ] + } + }, + "fields": { + "maskAnnotation": { + "type": "MaskAnnotation", + "id": 3 + }, + "polygonAnnotation": { + "type": "PolygonAnnotation", + "id": 4 + }, + "polylineAnnotation": { + "type": "PolylineAnnotation", + "id": 5 + } + }, + "nested": { + "MaskAnnotation": { + "fields": { + "maskGcsUri": { + "type": "string", + "id": 1 + }, + "annotationSpecColors": { + "rule": "repeated", + "type": "AnnotationSpecColor", + "id": 2 + } + } + }, + "PolygonAnnotation": { + "fields": { + "vertexes": { + "rule": "repeated", + "type": "Vertex", + "id": 1 + }, + "annotationSpecId": { + "type": "string", + "id": 2 + }, + "displayName": { + "type": "string", + "id": 3 + } + } + }, + "PolylineAnnotation": { + "fields": { + "vertexes": { + "rule": "repeated", + "type": "Vertex", + "id": 1 + }, + "annotationSpecId": { + "type": "string", + "id": 2 + }, + "displayName": { + "type": "string", + "id": 3 + } + } + } + } + }, + "TextClassificationAnnotation": { + "fields": { + "annotationSpecId": { + "type": "string", + "id": 1 + }, + "displayName": { + "type": "string", + "id": 2 + } + } + }, + "TextExtractionAnnotation": { + "fields": { + "textSegment": { + "type": "TextSegment", + "id": 1 + }, + "annotationSpecId": { + "type": "string", + "id": 2 + }, + "displayName": { + "type": "string", + "id": 3 + } + } + }, + "TextSegment": { + "fields": { + "startOffset": { + "type": "uint64", + "id": 1 + }, + "endOffset": { + "type": "uint64", + "id": 2 + }, + "content": { + "type": "string", + "id": 3 + } + } + }, + "TextSentimentAnnotation": { + "fields": { + "sentiment": { + "type": "int32", + "id": 1 + }, + "sentimentMax": { + "type": "int32", + "id": 2 + }, + "annotationSpecId": { + "type": "string", + "id": 3 + }, + "displayName": { + "type": "string", + "id": 4 + } + } + }, + "VideoClassificationAnnotation": { + "fields": { + "timeSegment": { + "type": "TimeSegment", + "id": 1 + }, + "annotationSpecId": { + "type": "string", + "id": 2 + }, + "displayName": { + "type": "string", + "id": 3 + } + } + }, + "TimeSegment": { + "fields": { + "startTimeOffset": { + "type": "google.protobuf.Duration", + "id": 1 + }, + "endTimeOffset": { + "type": "google.protobuf.Duration", + "id": 2 + } + } + }, + "VideoObjectTrackingAnnotation": { + "fields": { + "timeOffset": { + "type": "google.protobuf.Duration", + "id": 1 + }, + "xMin": { + "type": "double", + "id": 2 + }, + "xMax": { + "type": "double", + "id": 3 + }, + "yMin": { + "type": "double", + "id": 4 + }, + "yMax": { + "type": "double", + "id": 5 + }, + "instanceId": { + "type": "int64", + "id": 6 + }, + "annotationSpecId": { + "type": "string", + "id": 7 + }, + "displayName": { + "type": "string", + "id": 8 + } + } + }, + "VideoActionRecognitionAnnotation": { + "fields": { + "timeSegment": { + "type": "TimeSegment", + "id": 1 + }, + "annotationSpecId": { + "type": "string", + "id": 2 + }, + "displayName": { + "type": "string", + "id": 3 + } + } + }, + "AnnotationSpecColor": { + "fields": { + "color": { + "type": "google.type.Color", + "id": 1 + }, + "displayName": { + "type": "string", + "id": 2 + }, + "id": { + "type": "string", + "id": 3 + } + } + }, + "Vertex": { + "fields": { + "x": { + "type": "double", + "id": 1 + }, + "y": { + "type": "double", + "id": 2 + } + } + }, + "ImageDataItem": { + "fields": { + "gcsUri": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "mimeType": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "VideoDataItem": { + "fields": { + "gcsUri": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "mimeType": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "TextDataItem": { + "fields": { + "gcsUri": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "ImageDatasetMetadata": { + "fields": { + "dataItemSchemaUri": { + "type": "string", + "id": 1 + }, + "gcsBucket": { + "type": "string", + "id": 2 + } + } + }, + "TextDatasetMetadata": { + "fields": { + "dataItemSchemaUri": { + "type": "string", + "id": 1 + }, + "gcsBucket": { + "type": "string", + "id": 2 + } + } + }, + "VideoDatasetMetadata": { + "fields": { + "dataItemSchemaUri": { + "type": "string", + "id": 1 + }, + "gcsBucket": { + "type": "string", + "id": 2 + } + } + }, + "TablesDatasetMetadata": { + "fields": { + "inputConfig": { + "type": "InputConfig", + "id": 1 + } + }, + "nested": { + "InputConfig": { + "oneofs": { + "source": { + "oneof": [ + "gcsSource", + "bigquerySource" + ] + } + }, + "fields": { + "gcsSource": { + "type": "GcsSource", + "id": 1 + }, + "bigquerySource": { + "type": "BigQuerySource", + "id": 2 + } + } + }, + "GcsSource": { + "fields": { + "uri": { + "rule": "repeated", + "type": "string", + "id": 1 + } + } + }, + "BigQuerySource": { + "fields": { + "uri": { + "type": "string", + "id": 1 + } + } + } + } + }, + "TimeSeriesDatasetMetadata": { + "fields": { + "inputConfig": { + "type": "InputConfig", + "id": 1 + }, + "timeSeriesIdentifierColumn": { + "type": "string", + "id": 2 + }, + "timeColumn": { + "type": "string", + "id": 3 + } + }, + "nested": { + "InputConfig": { + "oneofs": { + "source": { + "oneof": [ + "gcsSource", + "bigquerySource" + ] + } + }, + "fields": { + "gcsSource": { + "type": "GcsSource", + "id": 1 + }, + "bigquerySource": { + "type": "BigQuerySource", + "id": 2 + } + } + }, + "GcsSource": { + "fields": { + "uri": { + "rule": "repeated", + "type": "string", + "id": 1 + } + } + }, + "BigQuerySource": { + "fields": { + "uri": { + "type": "string", + "id": 1 + } + } + } + } + }, + "ImageClassificationPredictionInstance": { + "fields": { + "content": { + "type": "string", + "id": 1 + }, + "mimeType": { + "type": "string", + "id": 2 + } + } + }, + "ImageObjectDetectionPredictionInstance": { + "fields": { + "content": { + "type": "string", + "id": 1 + }, + "mimeType": { + "type": "string", + "id": 2 + } + } + }, + "ImageSegmentationPredictionInstance": { + "fields": { + "content": { + "type": "string", + "id": 1 + }, + "mimeType": { + "type": "string", + "id": 2 + } + } + }, + "VideoClassificationPredictionInstance": { + "fields": { + "content": { + "type": "string", + "id": 1 + }, + "mimeType": { + "type": "string", + "id": 2 + }, + "timeSegmentStart": { + "type": "string", + "id": 3 + }, + "timeSegmentEnd": { + "type": "string", + "id": 4 + } + } + }, + "VideoObjectTrackingPredictionInstance": { + "fields": { + "content": { + "type": "string", + "id": 1 + }, + "mimeType": { + "type": "string", + "id": 2 + }, + "timeSegmentStart": { + "type": "string", + "id": 3 + }, + "timeSegmentEnd": { + "type": "string", + "id": 4 + } + } + }, + "VideoActionRecognitionPredictionInstance": { + "fields": { + "content": { + "type": "string", + "id": 1 + }, + "mimeType": { + "type": "string", + "id": 2 + }, + "timeSegmentStart": { + "type": "string", + "id": 3 + }, + "timeSegmentEnd": { + "type": "string", + "id": 4 + } + } + }, + "TextClassificationPredictionInstance": { + "fields": { + "content": { + "type": "string", + "id": 1 + }, + "mimeType": { + "type": "string", + "id": 2 + } + } + }, + "TextSentimentPredictionInstance": { + "fields": { + "content": { + "type": "string", + "id": 1 + }, + "mimeType": { + "type": "string", + "id": 2 + } + } + }, + "TextExtractionPredictionInstance": { + "fields": { + "content": { + "type": "string", + "id": 1 + }, + "mimeType": { + "type": "string", + "id": 2 + }, + "key": { + "type": "string", + "id": 3 + } + } + }, + "ImageClassificationPredictionParams": { + "fields": { + "confidenceThreshold": { + "type": "float", + "id": 1 + }, + "maxPredictions": { + "type": "int32", + "id": 2 + } + } + }, + "ImageObjectDetectionPredictionParams": { + "fields": { + "confidenceThreshold": { + "type": "float", + "id": 1 + }, + "maxPredictions": { + "type": "int32", + "id": 2 + } + } + }, + "ImageSegmentationPredictionParams": { + "fields": { + "confidenceThreshold": { + "type": "float", + "id": 1 + } + } + }, + "VideoClassificationPredictionParams": { + "fields": { + "confidenceThreshold": { + "type": "float", + "id": 1 + }, + "maxPredictions": { + "type": "int32", + "id": 2 + }, + "segmentClassification": { + "type": "bool", + "id": 3 + }, + "shotClassification": { + "type": "bool", + "id": 4 + }, + "oneSecIntervalClassification": { + "type": "bool", + "id": 5 + } + } + }, + "VideoObjectTrackingPredictionParams": { + "fields": { + "confidenceThreshold": { + "type": "float", + "id": 1 + }, + "maxPredictions": { + "type": "int32", + "id": 2 + }, + "minBoundingBoxSize": { + "type": "float", + "id": 3 + } + } + }, + "VideoActionRecognitionPredictionParams": { + "fields": { + "confidenceThreshold": { + "type": "float", + "id": 1 + }, + "maxPredictions": { + "type": "int32", + "id": 2 + } + } + }, + "PredictionResult": { + "oneofs": { + "input": { + "oneof": [ + "instance", + "key" + ] + } + }, + "fields": { + "instance": { + "type": "google.protobuf.Struct", + "id": 1 + }, + "key": { + "type": "string", + "id": 2 + }, + "prediction": { + "type": "google.protobuf.Value", + "id": 3 + } + } + }, + "TextSentimentPredictionResult": { + "fields": { + "instance": { + "type": "TextSentimentPredictionInstance", + "id": 1 + }, + "prediction": { + "type": "Prediction", + "id": 2 + } + }, + "nested": { + "Prediction": { + "fields": { + "sentiment": { + "type": "int32", + "id": 1 + } + } + } + } + }, + "ClassificationPredictionResult": { + "fields": { + "ids": { + "rule": "repeated", + "type": "int64", + "id": 1 + }, + "displayNames": { + "rule": "repeated", + "type": "string", + "id": 2 + }, + "confidences": { + "rule": "repeated", + "type": "float", + "id": 3 + } + } + }, + "ImageObjectDetectionPredictionResult": { + "fields": { + "ids": { + "rule": "repeated", + "type": "int64", + "id": 1 + }, + "displayNames": { + "rule": "repeated", + "type": "string", + "id": 2 + }, + "confidences": { + "rule": "repeated", + "type": "float", + "id": 3 + }, + "bboxes": { + "rule": "repeated", + "type": "google.protobuf.ListValue", + "id": 4 + } + } + }, + "VideoClassificationPredictionResult": { + "fields": { + "id": { + "type": "string", + "id": 1 + }, + "displayName": { + "type": "string", + "id": 2 + }, + "type": { + "type": "string", + "id": 3 + }, + "timeSegmentStart": { + "type": "google.protobuf.Duration", + "id": 4 + }, + "timeSegmentEnd": { + "type": "google.protobuf.Duration", + "id": 5 + }, + "confidence": { + "type": "google.protobuf.FloatValue", + "id": 6 + } + } + }, + "VideoObjectTrackingPredictionResult": { + "fields": { + "id": { + "type": "string", + "id": 1 + }, + "displayName": { + "type": "string", + "id": 2 + }, + "timeSegmentStart": { + "type": "google.protobuf.Duration", + "id": 3 + }, + "timeSegmentEnd": { + "type": "google.protobuf.Duration", + "id": 4 + }, + "confidence": { + "type": "google.protobuf.FloatValue", + "id": 5 + }, + "frames": { + "rule": "repeated", + "type": "Frame", + "id": 6 + } + }, + "nested": { + "Frame": { + "fields": { + "timeOffset": { + "type": "google.protobuf.Duration", + "id": 1 + }, + "xMin": { + "type": "google.protobuf.FloatValue", + "id": 2 + }, + "xMax": { + "type": "google.protobuf.FloatValue", + "id": 3 + }, + "yMin": { + "type": "google.protobuf.FloatValue", + "id": 4 + }, + "yMax": { + "type": "google.protobuf.FloatValue", + "id": 5 + } + } + } + } + }, + "TextExtractionPredictionResult": { + "fields": { + "ids": { + "rule": "repeated", + "type": "int64", + "id": 1 + }, + "displayNames": { + "rule": "repeated", + "type": "string", + "id": 2 + }, + "textSegmentStartOffsets": { + "rule": "repeated", + "type": "int64", + "id": 3 + }, + "textSegmentEndOffsets": { + "rule": "repeated", + "type": "int64", + "id": 4 + }, + "confidences": { + "rule": "repeated", + "type": "float", + "id": 5 + } + } + }, + "predict": { + "nested": { + "instance": { + "options": { + "go_package": "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/instance;instance", + "java_multiple_files": true, + "java_outer_classname": "VideoObjectTrackingPredictionInstanceProto", + "java_package": "com.google.cloud.aiplatform.v1beta1.schema.predict.instance" + }, + "nested": { + "ImageClassificationPredictionInstance": { + "fields": { + "content": { + "type": "string", + "id": 1 + }, + "mimeType": { + "type": "string", + "id": 2 + } + } + }, + "ImageObjectDetectionPredictionInstance": { + "fields": { + "content": { + "type": "string", + "id": 1 + }, + "mimeType": { + "type": "string", + "id": 2 + } + } + }, + "ImageSegmentationPredictionInstance": { + "fields": { + "content": { + "type": "string", + "id": 1 + }, + "mimeType": { + "type": "string", + "id": 2 + } + } + }, + "TextClassificationPredictionInstance": { + "fields": { + "content": { + "type": "string", + "id": 1 + }, + "mimeType": { + "type": "string", + "id": 2 + } + } + }, + "TextExtractionPredictionInstance": { + "fields": { + "content": { + "type": "string", + "id": 1 + }, + "mimeType": { + "type": "string", + "id": 2 + }, + "key": { + "type": "string", + "id": 3 + } + } + }, + "TextSentimentPredictionInstance": { + "fields": { + "content": { + "type": "string", + "id": 1 + }, + "mimeType": { + "type": "string", + "id": 2 + } + } + }, + "VideoActionRecognitionPredictionInstance": { + "fields": { + "content": { + "type": "string", + "id": 1 + }, + "mimeType": { + "type": "string", + "id": 2 + }, + "timeSegmentStart": { + "type": "string", + "id": 3 + }, + "timeSegmentEnd": { + "type": "string", + "id": 4 + } + } + }, + "VideoClassificationPredictionInstance": { + "fields": { + "content": { + "type": "string", + "id": 1 + }, + "mimeType": { + "type": "string", + "id": 2 + }, + "timeSegmentStart": { + "type": "string", + "id": 3 + }, + "timeSegmentEnd": { + "type": "string", + "id": 4 + } + } + }, + "VideoObjectTrackingPredictionInstance": { + "fields": { + "content": { + "type": "string", + "id": 1 + }, + "mimeType": { + "type": "string", + "id": 2 + }, + "timeSegmentStart": { + "type": "string", + "id": 3 + }, + "timeSegmentEnd": { + "type": "string", + "id": 4 + } + } + } + } + }, + "params": { + "options": { + "go_package": "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/params;params", + "java_multiple_files": true, + "java_outer_classname": "VideoObjectTrackingPredictionParamsProto", + "java_package": "com.google.cloud.aiplatform.v1beta1.schema.predict.params" + }, + "nested": { + "ImageClassificationPredictionParams": { + "fields": { + "confidenceThreshold": { + "type": "float", + "id": 1 + }, + "maxPredictions": { + "type": "int32", + "id": 2 + } + } + }, + "ImageObjectDetectionPredictionParams": { + "fields": { + "confidenceThreshold": { + "type": "float", + "id": 1 + }, + "maxPredictions": { + "type": "int32", + "id": 2 + } + } + }, + "ImageSegmentationPredictionParams": { + "fields": { + "confidenceThreshold": { + "type": "float", + "id": 1 + } + } + }, + "VideoActionRecognitionPredictionParams": { + "fields": { + "confidenceThreshold": { + "type": "float", + "id": 1 + }, + "maxPredictions": { + "type": "int32", + "id": 2 + } + } + }, + "VideoClassificationPredictionParams": { + "fields": { + "confidenceThreshold": { + "type": "float", + "id": 1 + }, + "maxPredictions": { + "type": "int32", + "id": 2 + }, + "segmentClassification": { + "type": "bool", + "id": 3 + }, + "shotClassification": { + "type": "bool", + "id": 4 + }, + "oneSecIntervalClassification": { + "type": "bool", + "id": 5 + } + } + }, + "VideoObjectTrackingPredictionParams": { + "fields": { + "confidenceThreshold": { + "type": "float", + "id": 1 + }, + "maxPredictions": { + "type": "int32", + "id": 2 + }, + "minBoundingBoxSize": { + "type": "float", + "id": 3 + } + } + } + } + }, + "prediction": { + "options": { + "go_package": "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction;prediction", + "java_multiple_files": true, + "java_outer_classname": "VideoObjectTrackingPredictionResultProto", + "java_package": "com.google.cloud.aiplatform.v1beta1.schema.predict.prediction" + }, + "nested": { + "ClassificationPredictionResult": { + "fields": { + "ids": { + "rule": "repeated", + "type": "int64", + "id": 1 + }, + "displayNames": { + "rule": "repeated", + "type": "string", + "id": 2 + }, + "confidences": { + "rule": "repeated", + "type": "float", + "id": 3 + } + } + }, + "ImageObjectDetectionPredictionResult": { + "fields": { + "ids": { + "rule": "repeated", + "type": "int64", + "id": 1 + }, + "displayNames": { + "rule": "repeated", + "type": "string", + "id": 2 + }, + "confidences": { + "rule": "repeated", + "type": "float", + "id": 3 + }, + "bboxes": { + "rule": "repeated", + "type": "google.protobuf.ListValue", + "id": 4 + } + } + }, + "ImageSegmentationPredictionResult": { + "fields": { + "categoryMask": { + "type": "bytes", + "id": 1 + }, + "confidenceMask": { + "type": "bytes", + "id": 2 + } + } + }, + "TabularClassificationPredictionResult": { + "fields": { + "classes": { + "rule": "repeated", + "type": "string", + "id": 1 + }, + "scores": { + "rule": "repeated", + "type": "float", + "id": 2 + } + } + }, + "TabularRegressionPredictionResult": { + "fields": { + "value": { + "type": "float", + "id": 1 + }, + "lowerBound": { + "type": "float", + "id": 2 + }, + "upperBound": { + "type": "float", + "id": 3 + } + } + }, + "TextExtractionPredictionResult": { + "fields": { + "ids": { + "rule": "repeated", + "type": "int64", + "id": 1 + }, + "displayNames": { + "rule": "repeated", + "type": "string", + "id": 2 + }, + "textSegmentStartOffsets": { + "rule": "repeated", + "type": "int64", + "id": 3 + }, + "textSegmentEndOffsets": { + "rule": "repeated", + "type": "int64", + "id": 4 + }, + "confidences": { + "rule": "repeated", + "type": "float", + "id": 5 + } + } + }, + "TextSentimentPredictionResult": { + "fields": { + "instance": { + "type": "google.cloud.aiplatform.v1beta1.schema.predict.instance.TextSentimentPredictionInstance", + "id": 1 + }, + "prediction": { + "type": "Prediction", + "id": 2 + } + }, + "nested": { + "Prediction": { + "fields": { + "sentiment": { + "type": "int32", + "id": 1 + } + } + } + } + }, + "TimeSeriesForecastingPredictionResult": { + "fields": { + "value": { + "type": "float", + "id": 1 + }, + "lowerBound": { + "type": "float", + "id": 2 + }, + "upperBound": { + "type": "float", + "id": 3 + } + } + }, + "VideoActionRecognitionPredictionResult": { + "fields": { + "id": { + "type": "string", + "id": 1 + }, + "displayName": { + "type": "string", + "id": 2 + }, + "timeSegmentStart": { + "type": "google.protobuf.Duration", + "id": 4 + }, + "timeSegmentEnd": { + "type": "google.protobuf.Duration", + "id": 5 + }, + "confidence": { + "type": "google.protobuf.FloatValue", + "id": 6 + } + } + }, + "VideoClassificationPredictionResult": { + "fields": { + "id": { + "type": "string", + "id": 1 + }, + "displayName": { + "type": "string", + "id": 2 + }, + "type": { + "type": "string", + "id": 3 + }, + "timeSegmentStart": { + "type": "google.protobuf.Duration", + "id": 4 + }, + "timeSegmentEnd": { + "type": "google.protobuf.Duration", + "id": 5 + }, + "confidence": { + "type": "google.protobuf.FloatValue", + "id": 6 + } + } + }, + "VideoObjectTrackingPredictionResult": { + "fields": { + "id": { + "type": "string", + "id": 1 + }, + "displayName": { + "type": "string", + "id": 2 + }, + "timeSegmentStart": { + "type": "google.protobuf.Duration", + "id": 3 + }, + "timeSegmentEnd": { + "type": "google.protobuf.Duration", + "id": 4 + }, + "confidence": { + "type": "google.protobuf.FloatValue", + "id": 5 + }, + "frames": { + "rule": "repeated", + "type": "Frame", + "id": 6 + } + }, + "nested": { + "Frame": { + "fields": { + "timeOffset": { + "type": "google.protobuf.Duration", + "id": 1 + }, + "xMin": { + "type": "google.protobuf.FloatValue", + "id": 2 + }, + "xMax": { + "type": "google.protobuf.FloatValue", + "id": 3 + }, + "yMin": { + "type": "google.protobuf.FloatValue", + "id": 4 + }, + "yMax": { + "type": "google.protobuf.FloatValue", + "id": 5 + } + } + } + } + } + } + } + } + }, + "TextSentimentSavedQueryMetadata": { + "fields": { + "sentimentMax": { + "type": "int32", + "id": 1 + } + } + }, + "VisualInspectionClassificationLabelSavedQueryMetadata": { + "fields": { + "multiLabel": { + "type": "bool", + "id": 1 + } + } + }, + "VisualInspectionMaskSavedQueryMetadata": { + "fields": { + "colorMap": { + "rule": "repeated", + "type": "AnnotationSpecColor", + "id": 2 + } + } + }, + "trainingjob": { + "nested": { + "definition": { + "options": { + "go_package": "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition", + "java_multiple_files": true, + "java_outer_classname": "AutoMLVideoObjectTrackingProto", + "java_package": "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition" + }, + "nested": { + "AutoMlForecasting": { + "fields": { + "inputs": { + "type": "AutoMlForecastingInputs", + "id": 1 + }, + "metadata": { + "type": "AutoMlForecastingMetadata", + "id": 2 + } + } + }, + "AutoMlForecastingInputs": { + "fields": { + "targetColumn": { + "type": "string", + "id": 1 + }, + "timeSeriesIdentifierColumn": { + "type": "string", + "id": 2 + }, + "timeColumn": { + "type": "string", + "id": 3 + }, + "transformations": { + "rule": "repeated", + "type": "Transformation", + "id": 4 + }, + "optimizationObjective": { + "type": "string", + "id": 5 + }, + "trainBudgetMilliNodeHours": { + "type": "int64", + "id": 6 + }, + "weightColumn": { + "type": "string", + "id": 7 + }, + "staticColumns": { + "rule": "repeated", + "type": "string", + "id": 8 + }, + "timeVariantPastOnlyColumns": { + "rule": "repeated", + "type": "string", + "id": 9 + }, + "timeVariantPastAndFutureColumns": { + "rule": "repeated", + "type": "string", + "id": 10 + }, + "period": { + "type": "Period", + "id": 11 + }, + "forecastWindowStart": { + "type": "int64", + "id": 12 + }, + "forecastWindowEnd": { + "type": "int64", + "id": 13 + }, + "pastHorizon": { + "type": "int64", + "id": 14 + }, + "exportEvaluatedDataItemsConfig": { + "type": "ExportEvaluatedDataItemsConfig", + "id": 15 + } + }, + "nested": { + "Transformation": { + "oneofs": { + "transformationDetail": { + "oneof": [ + "auto", + "numeric", + "categorical", + "timestamp", + "text", + "repeatedNumeric", + "repeatedCategorical", + "repeatedText" + ] + } + }, + "fields": { + "auto": { + "type": "AutoTransformation", + "id": 1 + }, + "numeric": { + "type": "NumericTransformation", + "id": 2 + }, + "categorical": { + "type": "CategoricalTransformation", + "id": 3 + }, + "timestamp": { + "type": "TimestampTransformation", + "id": 4 + }, + "text": { + "type": "TextTransformation", + "id": 5 + }, + "repeatedNumeric": { + "type": "NumericArrayTransformation", + "id": 6 + }, + "repeatedCategorical": { + "type": "CategoricalArrayTransformation", + "id": 7 + }, + "repeatedText": { + "type": "TextArrayTransformation", + "id": 8 + } + }, + "nested": { + "AutoTransformation": { + "fields": { + "columnName": { + "type": "string", + "id": 1 + } + } + }, + "NumericTransformation": { + "fields": { + "columnName": { + "type": "string", + "id": 1 + }, + "invalidValuesAllowed": { + "type": "bool", + "id": 2 + } + } + }, + "CategoricalTransformation": { + "fields": { + "columnName": { + "type": "string", + "id": 1 + } + } + }, + "TimestampTransformation": { + "fields": { + "columnName": { + "type": "string", + "id": 1 + }, + "timeFormat": { + "type": "string", + "id": 2 + }, + "invalidValuesAllowed": { + "type": "bool", + "id": 3 + } + } + }, + "TextTransformation": { + "fields": { + "columnName": { + "type": "string", + "id": 1 + } + } + }, + "NumericArrayTransformation": { + "fields": { + "columnName": { + "type": "string", + "id": 1 + }, + "invalidValuesAllowed": { + "type": "bool", + "id": 2 + } + } + }, + "CategoricalArrayTransformation": { + "fields": { + "columnName": { + "type": "string", + "id": 1 + } + } + }, + "TextArrayTransformation": { + "fields": { + "columnName": { + "type": "string", + "id": 1 + } + } + } + } + }, + "Period": { + "fields": { + "unit": { + "type": "string", + "id": 1 + }, + "quantity": { + "type": "int64", + "id": 2 + } + } + } + } + }, + "AutoMlForecastingMetadata": { + "fields": { + "trainCostMilliNodeHours": { + "type": "int64", + "id": 1 + } + } + }, + "ExportEvaluatedDataItemsConfig": { + "fields": { + "destinationBigqueryUri": { + "type": "string", + "id": 1 + }, + "overrideExistingTable": { + "type": "bool", + "id": 2 + } + } + }, + "AutoMlImageClassification": { + "fields": { + "inputs": { + "type": "AutoMlImageClassificationInputs", + "id": 1 + }, + "metadata": { + "type": "AutoMlImageClassificationMetadata", + "id": 2 + } + } + }, + "AutoMlImageClassificationInputs": { + "fields": { + "modelType": { + "type": "ModelType", + "id": 1 + }, + "baseModelId": { + "type": "string", + "id": 2 + }, + "budgetMilliNodeHours": { + "type": "int64", + "id": 3 + }, + "disableEarlyStopping": { + "type": "bool", + "id": 4 + }, + "multiLabel": { + "type": "bool", + "id": 5 + } + }, + "nested": { + "ModelType": { + "values": { + "MODEL_TYPE_UNSPECIFIED": 0, + "CLOUD": 1, + "MOBILE_TF_LOW_LATENCY_1": 2, + "MOBILE_TF_VERSATILE_1": 3, + "MOBILE_TF_HIGH_ACCURACY_1": 4 + } + } + } + }, + "AutoMlImageClassificationMetadata": { + "fields": { + "costMilliNodeHours": { + "type": "int64", + "id": 1 + }, + "successfulStopReason": { + "type": "SuccessfulStopReason", + "id": 2 + } + }, + "nested": { + "SuccessfulStopReason": { + "values": { + "SUCCESSFUL_STOP_REASON_UNSPECIFIED": 0, + "BUDGET_REACHED": 1, + "MODEL_CONVERGED": 2 + } + } + } + }, + "AutoMlImageObjectDetection": { + "fields": { + "inputs": { + "type": "AutoMlImageObjectDetectionInputs", + "id": 1 + }, + "metadata": { + "type": "AutoMlImageObjectDetectionMetadata", + "id": 2 + } + } + }, + "AutoMlImageObjectDetectionInputs": { + "fields": { + "modelType": { + "type": "ModelType", + "id": 1 + }, + "budgetMilliNodeHours": { + "type": "int64", + "id": 2 + }, + "disableEarlyStopping": { + "type": "bool", + "id": 3 + } + }, + "nested": { + "ModelType": { + "values": { + "MODEL_TYPE_UNSPECIFIED": 0, + "CLOUD_HIGH_ACCURACY_1": 1, + "CLOUD_LOW_LATENCY_1": 2, + "MOBILE_TF_LOW_LATENCY_1": 3, + "MOBILE_TF_VERSATILE_1": 4, + "MOBILE_TF_HIGH_ACCURACY_1": 5 + } + } + } + }, + "AutoMlImageObjectDetectionMetadata": { + "fields": { + "costMilliNodeHours": { + "type": "int64", + "id": 1 + }, + "successfulStopReason": { + "type": "SuccessfulStopReason", + "id": 2 + } + }, + "nested": { + "SuccessfulStopReason": { + "values": { + "SUCCESSFUL_STOP_REASON_UNSPECIFIED": 0, + "BUDGET_REACHED": 1, + "MODEL_CONVERGED": 2 + } + } + } + }, + "AutoMlImageSegmentation": { + "fields": { + "inputs": { + "type": "AutoMlImageSegmentationInputs", + "id": 1 + }, + "metadata": { + "type": "AutoMlImageSegmentationMetadata", + "id": 2 + } + } + }, + "AutoMlImageSegmentationInputs": { + "fields": { + "modelType": { + "type": "ModelType", + "id": 1 + }, + "budgetMilliNodeHours": { + "type": "int64", + "id": 2 + }, + "baseModelId": { + "type": "string", + "id": 3 + } + }, + "nested": { + "ModelType": { + "values": { + "MODEL_TYPE_UNSPECIFIED": 0, + "CLOUD_HIGH_ACCURACY_1": 1, + "CLOUD_LOW_ACCURACY_1": 2 + } + } + } + }, + "AutoMlImageSegmentationMetadata": { + "fields": { + "costMilliNodeHours": { + "type": "int64", + "id": 1 + }, + "successfulStopReason": { + "type": "SuccessfulStopReason", + "id": 2 + } + }, + "nested": { + "SuccessfulStopReason": { + "values": { + "SUCCESSFUL_STOP_REASON_UNSPECIFIED": 0, + "BUDGET_REACHED": 1, + "MODEL_CONVERGED": 2 + } + } + } + }, + "AutoMlTables": { + "fields": { + "inputs": { + "type": "AutoMlTablesInputs", + "id": 1 + }, + "metadata": { + "type": "AutoMlTablesMetadata", + "id": 2 + } + } + }, + "AutoMlTablesInputs": { + "oneofs": { + "additionalOptimizationObjectiveConfig": { + "oneof": [ + "optimizationObjectiveRecallValue", + "optimizationObjectivePrecisionValue" + ] + } + }, + "fields": { + "optimizationObjectiveRecallValue": { + "type": "float", + "id": 5 + }, + "optimizationObjectivePrecisionValue": { + "type": "float", + "id": 6 + }, + "predictionType": { + "type": "string", + "id": 1 + }, + "targetColumn": { + "type": "string", + "id": 2 + }, + "transformations": { + "rule": "repeated", + "type": "Transformation", + "id": 3 + }, + "optimizationObjective": { + "type": "string", + "id": 4 + }, + "trainBudgetMilliNodeHours": { + "type": "int64", + "id": 7 + }, + "disableEarlyStopping": { + "type": "bool", + "id": 8 + }, + "weightColumnName": { + "type": "string", + "id": 9 + }, + "exportEvaluatedDataItemsConfig": { + "type": "ExportEvaluatedDataItemsConfig", + "id": 10 + } + }, + "nested": { + "Transformation": { + "oneofs": { + "transformationDetail": { + "oneof": [ + "auto", + "numeric", + "categorical", + "timestamp", + "text", + "repeatedNumeric", + "repeatedCategorical", + "repeatedText" + ] + } + }, + "fields": { + "auto": { + "type": "AutoTransformation", + "id": 1 + }, + "numeric": { + "type": "NumericTransformation", + "id": 2 + }, + "categorical": { + "type": "CategoricalTransformation", + "id": 3 + }, + "timestamp": { + "type": "TimestampTransformation", + "id": 4 + }, + "text": { + "type": "TextTransformation", + "id": 5 + }, + "repeatedNumeric": { + "type": "NumericArrayTransformation", + "id": 6 + }, + "repeatedCategorical": { + "type": "CategoricalArrayTransformation", + "id": 7 + }, + "repeatedText": { + "type": "TextArrayTransformation", + "id": 8 + } + }, + "nested": { + "AutoTransformation": { + "fields": { + "columnName": { + "type": "string", + "id": 1 + } + } + }, + "NumericTransformation": { + "fields": { + "columnName": { + "type": "string", + "id": 1 + }, + "invalidValuesAllowed": { + "type": "bool", + "id": 2 + } + } + }, + "CategoricalTransformation": { + "fields": { + "columnName": { + "type": "string", + "id": 1 + } + } + }, + "TimestampTransformation": { + "fields": { + "columnName": { + "type": "string", + "id": 1 + }, + "timeFormat": { + "type": "string", + "id": 2 + }, + "invalidValuesAllowed": { + "type": "bool", + "id": 3 + } + } + }, + "TextTransformation": { + "fields": { + "columnName": { + "type": "string", + "id": 1 + } + } + }, + "NumericArrayTransformation": { + "fields": { + "columnName": { + "type": "string", + "id": 1 + }, + "invalidValuesAllowed": { + "type": "bool", + "id": 2 + } + } + }, + "CategoricalArrayTransformation": { + "fields": { + "columnName": { + "type": "string", + "id": 1 + } + } + }, + "TextArrayTransformation": { + "fields": { + "columnName": { + "type": "string", + "id": 1 + } + } + } + } + } + } + }, + "AutoMlTablesMetadata": { + "fields": { + "trainCostMilliNodeHours": { + "type": "int64", + "id": 1 + } + } + }, + "AutoMlTextClassification": { + "fields": { + "inputs": { + "type": "AutoMlTextClassificationInputs", + "id": 1 + } + } + }, + "AutoMlTextClassificationInputs": { + "fields": { + "multiLabel": { + "type": "bool", + "id": 1 + } + } + }, + "AutoMlTextExtraction": { + "fields": { + "inputs": { + "type": "AutoMlTextExtractionInputs", + "id": 1 + } + } + }, + "AutoMlTextExtractionInputs": { + "fields": {} + }, + "AutoMlTextSentiment": { + "fields": { + "inputs": { + "type": "AutoMlTextSentimentInputs", + "id": 1 + } + } + }, + "AutoMlTextSentimentInputs": { + "fields": { + "sentimentMax": { + "type": "int32", + "id": 1 + } + } + }, + "AutoMlVideoActionRecognition": { + "fields": { + "inputs": { + "type": "AutoMlVideoActionRecognitionInputs", + "id": 1 + } + } + }, + "AutoMlVideoActionRecognitionInputs": { + "fields": { + "modelType": { + "type": "ModelType", + "id": 1 + } + }, + "nested": { + "ModelType": { + "values": { + "MODEL_TYPE_UNSPECIFIED": 0, + "CLOUD": 1, + "MOBILE_VERSATILE_1": 2 + } + } + } + }, + "AutoMlVideoClassification": { + "fields": { + "inputs": { + "type": "AutoMlVideoClassificationInputs", + "id": 1 + } + } + }, + "AutoMlVideoClassificationInputs": { + "fields": { + "modelType": { + "type": "ModelType", + "id": 1 + } + }, + "nested": { + "ModelType": { + "values": { + "MODEL_TYPE_UNSPECIFIED": 0, + "CLOUD": 1, + "MOBILE_VERSATILE_1": 2 + } + } + } + }, + "AutoMlVideoObjectTracking": { + "fields": { + "inputs": { + "type": "AutoMlVideoObjectTrackingInputs", + "id": 1 + } + } + }, + "AutoMlVideoObjectTrackingInputs": { + "fields": { + "modelType": { + "type": "ModelType", + "id": 1 + } + }, + "nested": { + "ModelType": { + "values": { + "MODEL_TYPE_UNSPECIFIED": 0, + "CLOUD": 1, + "MOBILE_VERSATILE_1": 2, + "MOBILE_CORAL_VERSATILE_1": 3, + "MOBILE_CORAL_LOW_LATENCY_1": 4, + "MOBILE_JETSON_VERSATILE_1": 5, + "MOBILE_JETSON_LOW_LATENCY_1": 6 + } + } + } + } + } + } + } + } + } + }, "SpecialistPoolService": { "options": { "(google.api.default_host)": "aiplatform.googleapis.com", @@ -7357,6 +9573,78 @@ "id": 1 } } + }, + "DoubleValue": { + "fields": { + "value": { + "type": "double", + "id": 1 + } + } + }, + "FloatValue": { + "fields": { + "value": { + "type": "float", + "id": 1 + } + } + }, + "Int64Value": { + "fields": { + "value": { + "type": "int64", + "id": 1 + } + } + }, + "UInt64Value": { + "fields": { + "value": { + "type": "uint64", + "id": 1 + } + } + }, + "Int32Value": { + "fields": { + "value": { + "type": "int32", + "id": 1 + } + } + }, + "UInt32Value": { + "fields": { + "value": { + "type": "uint32", + "id": 1 + } + } + }, + "BoolValue": { + "fields": { + "value": { + "type": "bool", + "id": 1 + } + } + }, + "StringValue": { + "fields": { + "value": { + "type": "string", + "id": 1 + } + } + }, + "BytesValue": { + "fields": { + "value": { + "type": "bytes", + "id": 1 + } + } } } }, @@ -7392,9 +9680,9 @@ "type": { "options": { "cc_enable_arenas": true, - "go_package": "google.golang.org/genproto/googleapis/type/money;money", + "go_package": "google.golang.org/genproto/googleapis/type/color;color", "java_multiple_files": true, - "java_outer_classname": "MoneyProto", + "java_outer_classname": "ColorProto", "java_package": "com.google.type", "objc_class_prefix": "GTP" }, @@ -7414,6 +9702,26 @@ "id": 3 } } + }, + "Color": { + "fields": { + "red": { + "type": "float", + "id": 1 + }, + "green": { + "type": "float", + "id": 2 + }, + "blue": { + "type": "float", + "id": 3 + }, + "alpha": { + "type": "google.protobuf.FloatValue", + "id": 4 + } + } } } }, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_client.ts index c08befab871..f867f917531 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_client.ts @@ -16,6 +16,7 @@ // ** https://github.com/googleapis/gapic-generator-typescript ** // ** All changes to this file may be overwritten. ** +/* global window */ import * as gax from 'google-gax'; import { Callback, @@ -31,6 +32,11 @@ import * as path from 'path'; import {Transform} from 'stream'; import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; +/** + * Client JSON configuration object, loaded from + * `src/v1beta1/dataset_service_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ import * as gapicConfig from './dataset_service_client_config.json'; import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; @@ -84,9 +90,9 @@ export class DatasetServiceClient { * your project ID will be detected automatically. * @param {string} [options.apiEndpoint] - The domain name of the * API remote host. - * @param {gax.ClientConfig} [options.clientConfig] - client configuration override. - * TODO(@alexander-fenster): link to gax documentation. - * @param {boolean} fallback - Use HTTP fallback mode. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP fallback mode. * In fallback mode, a special browser-compatible transport implementation is used * instead of gRPC transport. In browser context (if the `window` object is defined) * the fallback mode is enabled automatically; set `options.fallback` to `false` @@ -99,7 +105,9 @@ export class DatasetServiceClient { opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; - const fallback = opts?.fallback ?? typeof window !== 'undefined'; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. @@ -433,7 +441,7 @@ export class DatasetServiceClient { // ------------------- getDataset( request: protos.google.cloud.aiplatform.v1beta1.IGetDatasetRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.aiplatform.v1beta1.IDataset, @@ -443,7 +451,7 @@ export class DatasetServiceClient { >; getDataset( request: protos.google.cloud.aiplatform.v1beta1.IGetDatasetRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.cloud.aiplatform.v1beta1.IDataset, | protos.google.cloud.aiplatform.v1beta1.IGetDatasetRequest @@ -484,7 +492,7 @@ export class DatasetServiceClient { getDataset( request: protos.google.cloud.aiplatform.v1beta1.IGetDatasetRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.cloud.aiplatform.v1beta1.IDataset, | protos.google.cloud.aiplatform.v1beta1.IGetDatasetRequest @@ -507,12 +515,12 @@ export class DatasetServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -527,7 +535,7 @@ export class DatasetServiceClient { } updateDataset( request: protos.google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.aiplatform.v1beta1.IDataset, @@ -537,7 +545,7 @@ export class DatasetServiceClient { >; updateDataset( request: protos.google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.cloud.aiplatform.v1beta1.IDataset, | protos.google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest @@ -587,7 +595,7 @@ export class DatasetServiceClient { updateDataset( request: protos.google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.cloud.aiplatform.v1beta1.IDataset, | protos.google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest @@ -610,12 +618,12 @@ export class DatasetServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -630,7 +638,7 @@ export class DatasetServiceClient { } getAnnotationSpec( request: protos.google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.aiplatform.v1beta1.IAnnotationSpec, @@ -643,7 +651,7 @@ export class DatasetServiceClient { >; getAnnotationSpec( request: protos.google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.cloud.aiplatform.v1beta1.IAnnotationSpec, | protos.google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest @@ -687,7 +695,7 @@ export class DatasetServiceClient { getAnnotationSpec( request: protos.google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.cloud.aiplatform.v1beta1.IAnnotationSpec, | protos.google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest @@ -713,12 +721,12 @@ export class DatasetServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -734,7 +742,7 @@ export class DatasetServiceClient { createDataset( request: protos.google.cloud.aiplatform.v1beta1.ICreateDatasetRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ LROperation< @@ -747,7 +755,7 @@ export class DatasetServiceClient { >; createDataset( request: protos.google.cloud.aiplatform.v1beta1.ICreateDatasetRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< LROperation< protos.google.cloud.aiplatform.v1beta1.IDataset, @@ -794,7 +802,7 @@ export class DatasetServiceClient { createDataset( request: protos.google.cloud.aiplatform.v1beta1.ICreateDatasetRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< LROperation< protos.google.cloud.aiplatform.v1beta1.IDataset, @@ -822,12 +830,12 @@ export class DatasetServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -879,7 +887,7 @@ export class DatasetServiceClient { } deleteDataset( request: protos.google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ LROperation< @@ -892,7 +900,7 @@ export class DatasetServiceClient { >; deleteDataset( request: protos.google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< LROperation< protos.google.protobuf.IEmpty, @@ -938,7 +946,7 @@ export class DatasetServiceClient { deleteDataset( request: protos.google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< LROperation< protos.google.protobuf.IEmpty, @@ -966,12 +974,12 @@ export class DatasetServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1023,7 +1031,7 @@ export class DatasetServiceClient { } importData( request: protos.google.cloud.aiplatform.v1beta1.IImportDataRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ LROperation< @@ -1036,7 +1044,7 @@ export class DatasetServiceClient { >; importData( request: protos.google.cloud.aiplatform.v1beta1.IImportDataRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< LROperation< protos.google.cloud.aiplatform.v1beta1.IImportDataResponse, @@ -1085,7 +1093,7 @@ export class DatasetServiceClient { importData( request: protos.google.cloud.aiplatform.v1beta1.IImportDataRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< LROperation< protos.google.cloud.aiplatform.v1beta1.IImportDataResponse, @@ -1113,12 +1121,12 @@ export class DatasetServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1170,7 +1178,7 @@ export class DatasetServiceClient { } exportData( request: protos.google.cloud.aiplatform.v1beta1.IExportDataRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ LROperation< @@ -1183,7 +1191,7 @@ export class DatasetServiceClient { >; exportData( request: protos.google.cloud.aiplatform.v1beta1.IExportDataRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< LROperation< protos.google.cloud.aiplatform.v1beta1.IExportDataResponse, @@ -1231,7 +1239,7 @@ export class DatasetServiceClient { exportData( request: protos.google.cloud.aiplatform.v1beta1.IExportDataRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< LROperation< protos.google.cloud.aiplatform.v1beta1.IExportDataResponse, @@ -1259,12 +1267,12 @@ export class DatasetServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1316,7 +1324,7 @@ export class DatasetServiceClient { } listDatasets( request: protos.google.cloud.aiplatform.v1beta1.IListDatasetsRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.aiplatform.v1beta1.IDataset[], @@ -1326,7 +1334,7 @@ export class DatasetServiceClient { >; listDatasets( request: protos.google.cloud.aiplatform.v1beta1.IListDatasetsRequest, - options: gax.CallOptions, + options: CallOptions, callback: PaginationCallback< protos.google.cloud.aiplatform.v1beta1.IListDatasetsRequest, | protos.google.cloud.aiplatform.v1beta1.IListDatasetsResponse @@ -1384,7 +1392,7 @@ export class DatasetServiceClient { listDatasets( request: protos.google.cloud.aiplatform.v1beta1.IListDatasetsRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< protos.google.cloud.aiplatform.v1beta1.IListDatasetsRequest, | protos.google.cloud.aiplatform.v1beta1.IListDatasetsResponse @@ -1407,12 +1415,12 @@ export class DatasetServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1462,7 +1470,7 @@ export class DatasetServiceClient { */ listDatasetsStream( request?: protos.google.cloud.aiplatform.v1beta1.IListDatasetsRequest, - options?: gax.CallOptions + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -1524,7 +1532,7 @@ export class DatasetServiceClient { */ listDatasetsAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListDatasetsRequest, - options?: gax.CallOptions + options?: CallOptions ): AsyncIterable { request = request || {}; options = options || {}; @@ -1546,7 +1554,7 @@ export class DatasetServiceClient { } listDataItems( request: protos.google.cloud.aiplatform.v1beta1.IListDataItemsRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.aiplatform.v1beta1.IDataItem[], @@ -1556,7 +1564,7 @@ export class DatasetServiceClient { >; listDataItems( request: protos.google.cloud.aiplatform.v1beta1.IListDataItemsRequest, - options: gax.CallOptions, + options: CallOptions, callback: PaginationCallback< protos.google.cloud.aiplatform.v1beta1.IListDataItemsRequest, | protos.google.cloud.aiplatform.v1beta1.IListDataItemsResponse @@ -1611,7 +1619,7 @@ export class DatasetServiceClient { listDataItems( request: protos.google.cloud.aiplatform.v1beta1.IListDataItemsRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< protos.google.cloud.aiplatform.v1beta1.IListDataItemsRequest, | protos.google.cloud.aiplatform.v1beta1.IListDataItemsResponse @@ -1634,12 +1642,12 @@ export class DatasetServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1686,7 +1694,7 @@ export class DatasetServiceClient { */ listDataItemsStream( request?: protos.google.cloud.aiplatform.v1beta1.IListDataItemsRequest, - options?: gax.CallOptions + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -1745,7 +1753,7 @@ export class DatasetServiceClient { */ listDataItemsAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListDataItemsRequest, - options?: gax.CallOptions + options?: CallOptions ): AsyncIterable { request = request || {}; options = options || {}; @@ -1767,7 +1775,7 @@ export class DatasetServiceClient { } listAnnotations( request: protos.google.cloud.aiplatform.v1beta1.IListAnnotationsRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.aiplatform.v1beta1.IAnnotation[], @@ -1777,7 +1785,7 @@ export class DatasetServiceClient { >; listAnnotations( request: protos.google.cloud.aiplatform.v1beta1.IListAnnotationsRequest, - options: gax.CallOptions, + options: CallOptions, callback: PaginationCallback< protos.google.cloud.aiplatform.v1beta1.IListAnnotationsRequest, | protos.google.cloud.aiplatform.v1beta1.IListAnnotationsResponse @@ -1833,7 +1841,7 @@ export class DatasetServiceClient { listAnnotations( request: protos.google.cloud.aiplatform.v1beta1.IListAnnotationsRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< protos.google.cloud.aiplatform.v1beta1.IListAnnotationsRequest, | protos.google.cloud.aiplatform.v1beta1.IListAnnotationsResponse @@ -1856,12 +1864,12 @@ export class DatasetServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1909,7 +1917,7 @@ export class DatasetServiceClient { */ listAnnotationsStream( request?: protos.google.cloud.aiplatform.v1beta1.IListAnnotationsRequest, - options?: gax.CallOptions + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -1969,7 +1977,7 @@ export class DatasetServiceClient { */ listAnnotationsAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListAnnotationsRequest, - options?: gax.CallOptions + options?: CallOptions ): AsyncIterable { request = request || {}; options = options || {}; diff --git a/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_proto_list.json index 34c5c3401dd..48cc113f459 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_proto_list.json @@ -31,6 +31,51 @@ "../../protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/dataset_metadata.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/geometry.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/io_format.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_regression.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/time_series_forecasting.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/saved_query_metadata.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_forecasting.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_tables.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_client.ts index 72c135d4988..72f467ea94d 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_client.ts @@ -16,6 +16,7 @@ // ** https://github.com/googleapis/gapic-generator-typescript ** // ** All changes to this file may be overwritten. ** +/* global window */ import * as gax from 'google-gax'; import { Callback, @@ -31,6 +32,11 @@ import * as path from 'path'; import {Transform} from 'stream'; import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; +/** + * Client JSON configuration object, loaded from + * `src/v1beta1/endpoint_service_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ import * as gapicConfig from './endpoint_service_client_config.json'; import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; @@ -84,9 +90,9 @@ export class EndpointServiceClient { * your project ID will be detected automatically. * @param {string} [options.apiEndpoint] - The domain name of the * API remote host. - * @param {gax.ClientConfig} [options.clientConfig] - client configuration override. - * TODO(@alexander-fenster): link to gax documentation. - * @param {boolean} fallback - Use HTTP fallback mode. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP fallback mode. * In fallback mode, a special browser-compatible transport implementation is used * instead of gRPC transport. In browser context (if the `window` object is defined) * the fallback mode is enabled automatically; set `options.fallback` to `false` @@ -99,7 +105,9 @@ export class EndpointServiceClient { opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; - const fallback = opts?.fallback ?? typeof window !== 'undefined'; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. @@ -420,7 +428,7 @@ export class EndpointServiceClient { // ------------------- getEndpoint( request: protos.google.cloud.aiplatform.v1beta1.IGetEndpointRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.aiplatform.v1beta1.IEndpoint, @@ -430,7 +438,7 @@ export class EndpointServiceClient { >; getEndpoint( request: protos.google.cloud.aiplatform.v1beta1.IGetEndpointRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.cloud.aiplatform.v1beta1.IEndpoint, | protos.google.cloud.aiplatform.v1beta1.IGetEndpointRequest @@ -471,7 +479,7 @@ export class EndpointServiceClient { getEndpoint( request: protos.google.cloud.aiplatform.v1beta1.IGetEndpointRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.cloud.aiplatform.v1beta1.IEndpoint, | protos.google.cloud.aiplatform.v1beta1.IGetEndpointRequest @@ -494,12 +502,12 @@ export class EndpointServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -514,7 +522,7 @@ export class EndpointServiceClient { } updateEndpoint( request: protos.google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.aiplatform.v1beta1.IEndpoint, @@ -524,7 +532,7 @@ export class EndpointServiceClient { >; updateEndpoint( request: protos.google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.cloud.aiplatform.v1beta1.IEndpoint, | protos.google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest @@ -565,7 +573,7 @@ export class EndpointServiceClient { updateEndpoint( request: protos.google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.cloud.aiplatform.v1beta1.IEndpoint, | protos.google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest @@ -588,12 +596,12 @@ export class EndpointServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -609,7 +617,7 @@ export class EndpointServiceClient { createEndpoint( request: protos.google.cloud.aiplatform.v1beta1.ICreateEndpointRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ LROperation< @@ -622,7 +630,7 @@ export class EndpointServiceClient { >; createEndpoint( request: protos.google.cloud.aiplatform.v1beta1.ICreateEndpointRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< LROperation< protos.google.cloud.aiplatform.v1beta1.IEndpoint, @@ -669,7 +677,7 @@ export class EndpointServiceClient { createEndpoint( request: protos.google.cloud.aiplatform.v1beta1.ICreateEndpointRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< LROperation< protos.google.cloud.aiplatform.v1beta1.IEndpoint, @@ -697,12 +705,12 @@ export class EndpointServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -754,7 +762,7 @@ export class EndpointServiceClient { } deleteEndpoint( request: protos.google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ LROperation< @@ -767,7 +775,7 @@ export class EndpointServiceClient { >; deleteEndpoint( request: protos.google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< LROperation< protos.google.protobuf.IEmpty, @@ -813,7 +821,7 @@ export class EndpointServiceClient { deleteEndpoint( request: protos.google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< LROperation< protos.google.protobuf.IEmpty, @@ -841,12 +849,12 @@ export class EndpointServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -898,7 +906,7 @@ export class EndpointServiceClient { } deployModel( request: protos.google.cloud.aiplatform.v1beta1.IDeployModelRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ LROperation< @@ -911,7 +919,7 @@ export class EndpointServiceClient { >; deployModel( request: protos.google.cloud.aiplatform.v1beta1.IDeployModelRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< LROperation< protos.google.cloud.aiplatform.v1beta1.IDeployModelResponse, @@ -974,7 +982,7 @@ export class EndpointServiceClient { deployModel( request: protos.google.cloud.aiplatform.v1beta1.IDeployModelRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< LROperation< protos.google.cloud.aiplatform.v1beta1.IDeployModelResponse, @@ -1002,12 +1010,12 @@ export class EndpointServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1059,7 +1067,7 @@ export class EndpointServiceClient { } undeployModel( request: protos.google.cloud.aiplatform.v1beta1.IUndeployModelRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ LROperation< @@ -1072,7 +1080,7 @@ export class EndpointServiceClient { >; undeployModel( request: protos.google.cloud.aiplatform.v1beta1.IUndeployModelRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< LROperation< protos.google.cloud.aiplatform.v1beta1.IUndeployModelResponse, @@ -1129,7 +1137,7 @@ export class EndpointServiceClient { undeployModel( request: protos.google.cloud.aiplatform.v1beta1.IUndeployModelRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< LROperation< protos.google.cloud.aiplatform.v1beta1.IUndeployModelResponse, @@ -1157,12 +1165,12 @@ export class EndpointServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1214,7 +1222,7 @@ export class EndpointServiceClient { } listEndpoints( request: protos.google.cloud.aiplatform.v1beta1.IListEndpointsRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.aiplatform.v1beta1.IEndpoint[], @@ -1224,7 +1232,7 @@ export class EndpointServiceClient { >; listEndpoints( request: protos.google.cloud.aiplatform.v1beta1.IListEndpointsRequest, - options: gax.CallOptions, + options: CallOptions, callback: PaginationCallback< protos.google.cloud.aiplatform.v1beta1.IListEndpointsRequest, | protos.google.cloud.aiplatform.v1beta1.IListEndpointsResponse @@ -1294,7 +1302,7 @@ export class EndpointServiceClient { listEndpoints( request: protos.google.cloud.aiplatform.v1beta1.IListEndpointsRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< protos.google.cloud.aiplatform.v1beta1.IListEndpointsRequest, | protos.google.cloud.aiplatform.v1beta1.IListEndpointsResponse @@ -1317,12 +1325,12 @@ export class EndpointServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1384,7 +1392,7 @@ export class EndpointServiceClient { */ listEndpointsStream( request?: protos.google.cloud.aiplatform.v1beta1.IListEndpointsRequest, - options?: gax.CallOptions + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -1458,7 +1466,7 @@ export class EndpointServiceClient { */ listEndpointsAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListEndpointsRequest, - options?: gax.CallOptions + options?: CallOptions ): AsyncIterable { request = request || {}; options = options || {}; diff --git a/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_proto_list.json index 34c5c3401dd..48cc113f459 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_proto_list.json @@ -31,6 +31,51 @@ "../../protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/dataset_metadata.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/geometry.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/io_format.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_regression.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/time_series_forecasting.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/saved_query_metadata.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_forecasting.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_tables.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/job_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/job_service_client.ts index ecec9fd244d..1937a0f9c7a 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/job_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/job_service_client.ts @@ -16,6 +16,7 @@ // ** https://github.com/googleapis/gapic-generator-typescript ** // ** All changes to this file may be overwritten. ** +/* global window */ import * as gax from 'google-gax'; import { Callback, @@ -31,6 +32,11 @@ import * as path from 'path'; import {Transform} from 'stream'; import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; +/** + * Client JSON configuration object, loaded from + * `src/v1beta1/job_service_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ import * as gapicConfig from './job_service_client_config.json'; import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; @@ -85,9 +91,9 @@ export class JobServiceClient { * your project ID will be detected automatically. * @param {string} [options.apiEndpoint] - The domain name of the * API remote host. - * @param {gax.ClientConfig} [options.clientConfig] - client configuration override. - * TODO(@alexander-fenster): link to gax documentation. - * @param {boolean} fallback - Use HTTP fallback mode. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP fallback mode. * In fallback mode, a special browser-compatible transport implementation is used * instead of gRPC transport. In browser context (if the `window` object is defined) * the fallback mode is enabled automatically; set `options.fallback` to `false` @@ -100,7 +106,9 @@ export class JobServiceClient { opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; - const fallback = opts?.fallback ?? typeof window !== 'undefined'; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. @@ -459,7 +467,7 @@ export class JobServiceClient { // ------------------- createCustomJob( request: protos.google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.aiplatform.v1beta1.ICustomJob, @@ -472,7 +480,7 @@ export class JobServiceClient { >; createCustomJob( request: protos.google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.cloud.aiplatform.v1beta1.ICustomJob, | protos.google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest @@ -515,7 +523,7 @@ export class JobServiceClient { createCustomJob( request: protos.google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.cloud.aiplatform.v1beta1.ICustomJob, | protos.google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest @@ -541,12 +549,12 @@ export class JobServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -561,7 +569,7 @@ export class JobServiceClient { } getCustomJob( request: protos.google.cloud.aiplatform.v1beta1.IGetCustomJobRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.aiplatform.v1beta1.ICustomJob, @@ -571,7 +579,7 @@ export class JobServiceClient { >; getCustomJob( request: protos.google.cloud.aiplatform.v1beta1.IGetCustomJobRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.cloud.aiplatform.v1beta1.ICustomJob, | protos.google.cloud.aiplatform.v1beta1.IGetCustomJobRequest @@ -612,7 +620,7 @@ export class JobServiceClient { getCustomJob( request: protos.google.cloud.aiplatform.v1beta1.IGetCustomJobRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.cloud.aiplatform.v1beta1.ICustomJob, | protos.google.cloud.aiplatform.v1beta1.IGetCustomJobRequest @@ -635,12 +643,12 @@ export class JobServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -655,7 +663,7 @@ export class JobServiceClient { } cancelCustomJob( request: protos.google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, @@ -668,7 +676,7 @@ export class JobServiceClient { >; cancelCustomJob( request: protos.google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, | protos.google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest @@ -718,7 +726,7 @@ export class JobServiceClient { cancelCustomJob( request: protos.google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.protobuf.IEmpty, | protos.google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest @@ -744,12 +752,12 @@ export class JobServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -764,7 +772,7 @@ export class JobServiceClient { } createDataLabelingJob( request: protos.google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob, @@ -777,7 +785,7 @@ export class JobServiceClient { >; createDataLabelingJob( request: protos.google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob, | protos.google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest @@ -819,7 +827,7 @@ export class JobServiceClient { createDataLabelingJob( request: protos.google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob, | protos.google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest @@ -845,12 +853,12 @@ export class JobServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -865,7 +873,7 @@ export class JobServiceClient { } getDataLabelingJob( request: protos.google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob, @@ -878,7 +886,7 @@ export class JobServiceClient { >; getDataLabelingJob( request: protos.google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob, | protos.google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest @@ -920,7 +928,7 @@ export class JobServiceClient { getDataLabelingJob( request: protos.google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob, | protos.google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest @@ -946,12 +954,12 @@ export class JobServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -966,7 +974,7 @@ export class JobServiceClient { } cancelDataLabelingJob( request: protos.google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, @@ -979,7 +987,7 @@ export class JobServiceClient { >; cancelDataLabelingJob( request: protos.google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, | protos.google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest @@ -1021,7 +1029,7 @@ export class JobServiceClient { cancelDataLabelingJob( request: protos.google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.protobuf.IEmpty, | protos.google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest @@ -1047,12 +1055,12 @@ export class JobServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1067,7 +1075,7 @@ export class JobServiceClient { } createHyperparameterTuningJob( request: protos.google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob, @@ -1080,7 +1088,7 @@ export class JobServiceClient { >; createHyperparameterTuningJob( request: protos.google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob, | protos.google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest @@ -1122,7 +1130,7 @@ export class JobServiceClient { createHyperparameterTuningJob( request: protos.google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob, | protos.google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest @@ -1148,12 +1156,12 @@ export class JobServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1172,7 +1180,7 @@ export class JobServiceClient { } getHyperparameterTuningJob( request: protos.google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob, @@ -1185,7 +1193,7 @@ export class JobServiceClient { >; getHyperparameterTuningJob( request: protos.google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob, | protos.google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest @@ -1227,7 +1235,7 @@ export class JobServiceClient { getHyperparameterTuningJob( request: protos.google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob, | protos.google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest @@ -1253,12 +1261,12 @@ export class JobServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1277,7 +1285,7 @@ export class JobServiceClient { } cancelHyperparameterTuningJob( request: protos.google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, @@ -1290,7 +1298,7 @@ export class JobServiceClient { >; cancelHyperparameterTuningJob( request: protos.google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, | protos.google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest @@ -1341,7 +1349,7 @@ export class JobServiceClient { cancelHyperparameterTuningJob( request: protos.google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.protobuf.IEmpty, | protos.google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest @@ -1367,12 +1375,12 @@ export class JobServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1391,7 +1399,7 @@ export class JobServiceClient { } createBatchPredictionJob( request: protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, @@ -1404,7 +1412,7 @@ export class JobServiceClient { >; createBatchPredictionJob( request: protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, | protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest @@ -1447,7 +1455,7 @@ export class JobServiceClient { createBatchPredictionJob( request: protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, | protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest @@ -1473,12 +1481,12 @@ export class JobServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1497,7 +1505,7 @@ export class JobServiceClient { } getBatchPredictionJob( request: protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, @@ -1510,7 +1518,7 @@ export class JobServiceClient { >; getBatchPredictionJob( request: protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, | protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest @@ -1552,7 +1560,7 @@ export class JobServiceClient { getBatchPredictionJob( request: protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, | protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest @@ -1578,12 +1586,12 @@ export class JobServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1598,7 +1606,7 @@ export class JobServiceClient { } cancelBatchPredictionJob( request: protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, @@ -1611,7 +1619,7 @@ export class JobServiceClient { >; cancelBatchPredictionJob( request: protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, | protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest @@ -1662,7 +1670,7 @@ export class JobServiceClient { cancelBatchPredictionJob( request: protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.protobuf.IEmpty, | protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest @@ -1688,12 +1696,12 @@ export class JobServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1713,7 +1721,7 @@ export class JobServiceClient { deleteCustomJob( request: protos.google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ LROperation< @@ -1726,7 +1734,7 @@ export class JobServiceClient { >; deleteCustomJob( request: protos.google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< LROperation< protos.google.protobuf.IEmpty, @@ -1772,7 +1780,7 @@ export class JobServiceClient { deleteCustomJob( request: protos.google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< LROperation< protos.google.protobuf.IEmpty, @@ -1800,12 +1808,12 @@ export class JobServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1857,7 +1865,7 @@ export class JobServiceClient { } deleteDataLabelingJob( request: protos.google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ LROperation< @@ -1870,7 +1878,7 @@ export class JobServiceClient { >; deleteDataLabelingJob( request: protos.google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< LROperation< protos.google.protobuf.IEmpty, @@ -1917,7 +1925,7 @@ export class JobServiceClient { deleteDataLabelingJob( request: protos.google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< LROperation< protos.google.protobuf.IEmpty, @@ -1945,12 +1953,12 @@ export class JobServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2002,7 +2010,7 @@ export class JobServiceClient { } deleteHyperparameterTuningJob( request: protos.google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ LROperation< @@ -2015,7 +2023,7 @@ export class JobServiceClient { >; deleteHyperparameterTuningJob( request: protos.google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< LROperation< protos.google.protobuf.IEmpty, @@ -2062,7 +2070,7 @@ export class JobServiceClient { deleteHyperparameterTuningJob( request: protos.google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< LROperation< protos.google.protobuf.IEmpty, @@ -2090,12 +2098,12 @@ export class JobServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2151,7 +2159,7 @@ export class JobServiceClient { } deleteBatchPredictionJob( request: protos.google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ LROperation< @@ -2164,7 +2172,7 @@ export class JobServiceClient { >; deleteBatchPredictionJob( request: protos.google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< LROperation< protos.google.protobuf.IEmpty, @@ -2212,7 +2220,7 @@ export class JobServiceClient { deleteBatchPredictionJob( request: protos.google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< LROperation< protos.google.protobuf.IEmpty, @@ -2240,12 +2248,12 @@ export class JobServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2301,7 +2309,7 @@ export class JobServiceClient { } listCustomJobs( request: protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.aiplatform.v1beta1.ICustomJob[], @@ -2311,7 +2319,7 @@ export class JobServiceClient { >; listCustomJobs( request: protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, - options: gax.CallOptions, + options: CallOptions, callback: PaginationCallback< protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, | protos.google.cloud.aiplatform.v1beta1.IListCustomJobsResponse @@ -2381,7 +2389,7 @@ export class JobServiceClient { listCustomJobs( request: protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, | protos.google.cloud.aiplatform.v1beta1.IListCustomJobsResponse @@ -2404,12 +2412,12 @@ export class JobServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2471,7 +2479,7 @@ export class JobServiceClient { */ listCustomJobsStream( request?: protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, - options?: gax.CallOptions + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -2545,7 +2553,7 @@ export class JobServiceClient { */ listCustomJobsAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, - options?: gax.CallOptions + options?: CallOptions ): AsyncIterable { request = request || {}; options = options || {}; @@ -2567,7 +2575,7 @@ export class JobServiceClient { } listDataLabelingJobs( request: protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob[], @@ -2577,7 +2585,7 @@ export class JobServiceClient { >; listDataLabelingJobs( request: protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, - options: gax.CallOptions, + options: CallOptions, callback: PaginationCallback< protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, | protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse @@ -2651,7 +2659,7 @@ export class JobServiceClient { listDataLabelingJobs( request: protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, | protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse @@ -2674,12 +2682,12 @@ export class JobServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2745,7 +2753,7 @@ export class JobServiceClient { */ listDataLabelingJobsStream( request?: protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, - options?: gax.CallOptions + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -2823,7 +2831,7 @@ export class JobServiceClient { */ listDataLabelingJobsAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, - options?: gax.CallOptions + options?: CallOptions ): AsyncIterable { request = request || {}; options = options || {}; @@ -2845,7 +2853,7 @@ export class JobServiceClient { } listHyperparameterTuningJobs( request: protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[], @@ -2855,7 +2863,7 @@ export class JobServiceClient { >; listHyperparameterTuningJobs( request: protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, - options: gax.CallOptions, + options: CallOptions, callback: PaginationCallback< protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, | protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse @@ -2925,7 +2933,7 @@ export class JobServiceClient { listHyperparameterTuningJobs( request: protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, | protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse @@ -2948,12 +2956,12 @@ export class JobServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -3019,7 +3027,7 @@ export class JobServiceClient { */ listHyperparameterTuningJobsStream( request?: protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, - options?: gax.CallOptions + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -3093,7 +3101,7 @@ export class JobServiceClient { */ listHyperparameterTuningJobsAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, - options?: gax.CallOptions + options?: CallOptions ): AsyncIterable { request = request || {}; options = options || {}; @@ -3115,7 +3123,7 @@ export class JobServiceClient { } listBatchPredictionJobs( request: protos.google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob[], @@ -3125,7 +3133,7 @@ export class JobServiceClient { >; listBatchPredictionJobs( request: protos.google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest, - options: gax.CallOptions, + options: CallOptions, callback: PaginationCallback< protos.google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest, | protos.google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse @@ -3195,7 +3203,7 @@ export class JobServiceClient { listBatchPredictionJobs( request: protos.google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< protos.google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest, | protos.google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse @@ -3218,12 +3226,12 @@ export class JobServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -3289,7 +3297,7 @@ export class JobServiceClient { */ listBatchPredictionJobsStream( request?: protos.google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest, - options?: gax.CallOptions + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -3363,7 +3371,7 @@ export class JobServiceClient { */ listBatchPredictionJobsAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest, - options?: gax.CallOptions + options?: CallOptions ): AsyncIterable { request = request || {}; options = options || {}; diff --git a/packages/google-cloud-aiplatform/src/v1beta1/job_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/job_service_proto_list.json index 34c5c3401dd..48cc113f459 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/job_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/job_service_proto_list.json @@ -31,6 +31,51 @@ "../../protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/dataset_metadata.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/geometry.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/io_format.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_regression.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/time_series_forecasting.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/saved_query_metadata.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_forecasting.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_tables.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/migration_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/migration_service_client.ts index 6423fd11a39..9e0e9cea6c3 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/migration_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/migration_service_client.ts @@ -16,6 +16,7 @@ // ** https://github.com/googleapis/gapic-generator-typescript ** // ** All changes to this file may be overwritten. ** +/* global window */ import * as gax from 'google-gax'; import { Callback, @@ -31,6 +32,11 @@ import * as path from 'path'; import {Transform} from 'stream'; import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; +/** + * Client JSON configuration object, loaded from + * `src/v1beta1/migration_service_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ import * as gapicConfig from './migration_service_client_config.json'; import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; @@ -86,9 +92,9 @@ export class MigrationServiceClient { * your project ID will be detected automatically. * @param {string} [options.apiEndpoint] - The domain name of the * API remote host. - * @param {gax.ClientConfig} [options.clientConfig] - client configuration override. - * TODO(@alexander-fenster): link to gax documentation. - * @param {boolean} fallback - Use HTTP fallback mode. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP fallback mode. * In fallback mode, a special browser-compatible transport implementation is used * instead of gRPC transport. In browser context (if the `window` object is defined) * the fallback mode is enabled automatically; set `options.fallback` to `false` @@ -101,7 +107,9 @@ export class MigrationServiceClient { opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; - const fallback = opts?.fallback ?? typeof window !== 'undefined'; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. @@ -388,7 +396,7 @@ export class MigrationServiceClient { batchMigrateResources( request: protos.google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ LROperation< @@ -401,7 +409,7 @@ export class MigrationServiceClient { >; batchMigrateResources( request: protos.google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< LROperation< protos.google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesResponse, @@ -451,7 +459,7 @@ export class MigrationServiceClient { batchMigrateResources( request: protos.google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< LROperation< protos.google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesResponse, @@ -479,12 +487,12 @@ export class MigrationServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -536,7 +544,7 @@ export class MigrationServiceClient { } searchMigratableResources( request: protos.google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.aiplatform.v1beta1.IMigratableResource[], @@ -546,7 +554,7 @@ export class MigrationServiceClient { >; searchMigratableResources( request: protos.google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest, - options: gax.CallOptions, + options: CallOptions, callback: PaginationCallback< protos.google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest, | protos.google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesResponse @@ -599,7 +607,7 @@ export class MigrationServiceClient { searchMigratableResources( request: protos.google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< protos.google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest, | protos.google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesResponse @@ -622,12 +630,12 @@ export class MigrationServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -674,7 +682,7 @@ export class MigrationServiceClient { */ searchMigratableResourcesStream( request?: protos.google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest, - options?: gax.CallOptions + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -729,7 +737,7 @@ export class MigrationServiceClient { */ searchMigratableResourcesAsync( request?: protos.google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest, - options?: gax.CallOptions + options?: CallOptions ): AsyncIterable { request = request || {}; options = options || {}; diff --git a/packages/google-cloud-aiplatform/src/v1beta1/migration_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/migration_service_proto_list.json index 34c5c3401dd..48cc113f459 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/migration_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/migration_service_proto_list.json @@ -31,6 +31,51 @@ "../../protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/dataset_metadata.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/geometry.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/io_format.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_regression.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/time_series_forecasting.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/saved_query_metadata.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_forecasting.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_tables.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/model_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/model_service_client.ts index f21a4797f51..d20ccf3ba98 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/model_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/model_service_client.ts @@ -16,6 +16,7 @@ // ** https://github.com/googleapis/gapic-generator-typescript ** // ** All changes to this file may be overwritten. ** +/* global window */ import * as gax from 'google-gax'; import { Callback, @@ -31,6 +32,11 @@ import * as path from 'path'; import {Transform} from 'stream'; import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; +/** + * Client JSON configuration object, loaded from + * `src/v1beta1/model_service_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ import * as gapicConfig from './model_service_client_config.json'; import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; @@ -85,9 +91,9 @@ export class ModelServiceClient { * your project ID will be detected automatically. * @param {string} [options.apiEndpoint] - The domain name of the * API remote host. - * @param {gax.ClientConfig} [options.clientConfig] - client configuration override. - * TODO(@alexander-fenster): link to gax documentation. - * @param {boolean} fallback - Use HTTP fallback mode. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP fallback mode. * In fallback mode, a special browser-compatible transport implementation is used * instead of gRPC transport. In browser context (if the `window` object is defined) * the fallback mode is enabled automatically; set `options.fallback` to `false` @@ -100,7 +106,9 @@ export class ModelServiceClient { opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; - const fallback = opts?.fallback ?? typeof window !== 'undefined'; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. @@ -423,7 +431,7 @@ export class ModelServiceClient { // ------------------- getModel( request: protos.google.cloud.aiplatform.v1beta1.IGetModelRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.aiplatform.v1beta1.IModel, @@ -433,7 +441,7 @@ export class ModelServiceClient { >; getModel( request: protos.google.cloud.aiplatform.v1beta1.IGetModelRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.cloud.aiplatform.v1beta1.IModel, | protos.google.cloud.aiplatform.v1beta1.IGetModelRequest @@ -473,7 +481,7 @@ export class ModelServiceClient { getModel( request: protos.google.cloud.aiplatform.v1beta1.IGetModelRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.cloud.aiplatform.v1beta1.IModel, | protos.google.cloud.aiplatform.v1beta1.IGetModelRequest @@ -496,12 +504,12 @@ export class ModelServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -516,7 +524,7 @@ export class ModelServiceClient { } updateModel( request: protos.google.cloud.aiplatform.v1beta1.IUpdateModelRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.aiplatform.v1beta1.IModel, @@ -526,7 +534,7 @@ export class ModelServiceClient { >; updateModel( request: protos.google.cloud.aiplatform.v1beta1.IUpdateModelRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.cloud.aiplatform.v1beta1.IModel, | protos.google.cloud.aiplatform.v1beta1.IUpdateModelRequest @@ -572,7 +580,7 @@ export class ModelServiceClient { updateModel( request: protos.google.cloud.aiplatform.v1beta1.IUpdateModelRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.cloud.aiplatform.v1beta1.IModel, | protos.google.cloud.aiplatform.v1beta1.IUpdateModelRequest @@ -595,12 +603,12 @@ export class ModelServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -615,7 +623,7 @@ export class ModelServiceClient { } getModelEvaluation( request: protos.google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.aiplatform.v1beta1.IModelEvaluation, @@ -628,7 +636,7 @@ export class ModelServiceClient { >; getModelEvaluation( request: protos.google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.cloud.aiplatform.v1beta1.IModelEvaluation, | protos.google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest @@ -670,7 +678,7 @@ export class ModelServiceClient { getModelEvaluation( request: protos.google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.cloud.aiplatform.v1beta1.IModelEvaluation, | protos.google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest @@ -696,12 +704,12 @@ export class ModelServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -716,7 +724,7 @@ export class ModelServiceClient { } getModelEvaluationSlice( request: protos.google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.aiplatform.v1beta1.IModelEvaluationSlice, @@ -729,7 +737,7 @@ export class ModelServiceClient { >; getModelEvaluationSlice( request: protos.google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.cloud.aiplatform.v1beta1.IModelEvaluationSlice, | protos.google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest @@ -771,7 +779,7 @@ export class ModelServiceClient { getModelEvaluationSlice( request: protos.google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.cloud.aiplatform.v1beta1.IModelEvaluationSlice, | protos.google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest @@ -797,12 +805,12 @@ export class ModelServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -822,7 +830,7 @@ export class ModelServiceClient { uploadModel( request: protos.google.cloud.aiplatform.v1beta1.IUploadModelRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ LROperation< @@ -835,7 +843,7 @@ export class ModelServiceClient { >; uploadModel( request: protos.google.cloud.aiplatform.v1beta1.IUploadModelRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< LROperation< protos.google.cloud.aiplatform.v1beta1.IUploadModelResponse, @@ -882,7 +890,7 @@ export class ModelServiceClient { uploadModel( request: protos.google.cloud.aiplatform.v1beta1.IUploadModelRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< LROperation< protos.google.cloud.aiplatform.v1beta1.IUploadModelResponse, @@ -910,12 +918,12 @@ export class ModelServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -967,7 +975,7 @@ export class ModelServiceClient { } deleteModel( request: protos.google.cloud.aiplatform.v1beta1.IDeleteModelRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ LROperation< @@ -980,7 +988,7 @@ export class ModelServiceClient { >; deleteModel( request: protos.google.cloud.aiplatform.v1beta1.IDeleteModelRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< LROperation< protos.google.protobuf.IEmpty, @@ -1027,7 +1035,7 @@ export class ModelServiceClient { deleteModel( request: protos.google.cloud.aiplatform.v1beta1.IDeleteModelRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< LROperation< protos.google.protobuf.IEmpty, @@ -1055,12 +1063,12 @@ export class ModelServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1112,7 +1120,7 @@ export class ModelServiceClient { } exportModel( request: protos.google.cloud.aiplatform.v1beta1.IExportModelRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ LROperation< @@ -1125,7 +1133,7 @@ export class ModelServiceClient { >; exportModel( request: protos.google.cloud.aiplatform.v1beta1.IExportModelRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< LROperation< protos.google.cloud.aiplatform.v1beta1.IExportModelResponse, @@ -1174,7 +1182,7 @@ export class ModelServiceClient { exportModel( request: protos.google.cloud.aiplatform.v1beta1.IExportModelRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< LROperation< protos.google.cloud.aiplatform.v1beta1.IExportModelResponse, @@ -1202,12 +1210,12 @@ export class ModelServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1259,7 +1267,7 @@ export class ModelServiceClient { } listModels( request: protos.google.cloud.aiplatform.v1beta1.IListModelsRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.aiplatform.v1beta1.IModel[], @@ -1269,7 +1277,7 @@ export class ModelServiceClient { >; listModels( request: protos.google.cloud.aiplatform.v1beta1.IListModelsRequest, - options: gax.CallOptions, + options: CallOptions, callback: PaginationCallback< protos.google.cloud.aiplatform.v1beta1.IListModelsRequest, | protos.google.cloud.aiplatform.v1beta1.IListModelsResponse @@ -1323,7 +1331,7 @@ export class ModelServiceClient { listModels( request: protos.google.cloud.aiplatform.v1beta1.IListModelsRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< protos.google.cloud.aiplatform.v1beta1.IListModelsRequest, | protos.google.cloud.aiplatform.v1beta1.IListModelsResponse @@ -1346,12 +1354,12 @@ export class ModelServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1397,7 +1405,7 @@ export class ModelServiceClient { */ listModelsStream( request?: protos.google.cloud.aiplatform.v1beta1.IListModelsRequest, - options?: gax.CallOptions + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -1455,7 +1463,7 @@ export class ModelServiceClient { */ listModelsAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListModelsRequest, - options?: gax.CallOptions + options?: CallOptions ): AsyncIterable { request = request || {}; options = options || {}; @@ -1477,7 +1485,7 @@ export class ModelServiceClient { } listModelEvaluations( request: protos.google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.aiplatform.v1beta1.IModelEvaluation[], @@ -1487,7 +1495,7 @@ export class ModelServiceClient { >; listModelEvaluations( request: protos.google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest, - options: gax.CallOptions, + options: CallOptions, callback: PaginationCallback< protos.google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest, | protos.google.cloud.aiplatform.v1beta1.IListModelEvaluationsResponse @@ -1541,7 +1549,7 @@ export class ModelServiceClient { listModelEvaluations( request: protos.google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< protos.google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest, | protos.google.cloud.aiplatform.v1beta1.IListModelEvaluationsResponse @@ -1564,12 +1572,12 @@ export class ModelServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1615,7 +1623,7 @@ export class ModelServiceClient { */ listModelEvaluationsStream( request?: protos.google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest, - options?: gax.CallOptions + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -1673,7 +1681,7 @@ export class ModelServiceClient { */ listModelEvaluationsAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest, - options?: gax.CallOptions + options?: CallOptions ): AsyncIterable { request = request || {}; options = options || {}; @@ -1695,7 +1703,7 @@ export class ModelServiceClient { } listModelEvaluationSlices( request: protos.google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.aiplatform.v1beta1.IModelEvaluationSlice[], @@ -1705,7 +1713,7 @@ export class ModelServiceClient { >; listModelEvaluationSlices( request: protos.google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest, - options: gax.CallOptions, + options: CallOptions, callback: PaginationCallback< protos.google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest, | protos.google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesResponse @@ -1763,7 +1771,7 @@ export class ModelServiceClient { listModelEvaluationSlices( request: protos.google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< protos.google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest, | protos.google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesResponse @@ -1786,12 +1794,12 @@ export class ModelServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1845,7 +1853,7 @@ export class ModelServiceClient { */ listModelEvaluationSlicesStream( request?: protos.google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest, - options?: gax.CallOptions + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -1907,7 +1915,7 @@ export class ModelServiceClient { */ listModelEvaluationSlicesAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest, - options?: gax.CallOptions + options?: CallOptions ): AsyncIterable { request = request || {}; options = options || {}; diff --git a/packages/google-cloud-aiplatform/src/v1beta1/model_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/model_service_proto_list.json index 34c5c3401dd..48cc113f459 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/model_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/model_service_proto_list.json @@ -31,6 +31,51 @@ "../../protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/dataset_metadata.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/geometry.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/io_format.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_regression.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/time_series_forecasting.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/saved_query_metadata.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_forecasting.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_tables.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client.ts index cc608a58631..200f0ba5bbe 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client.ts @@ -16,6 +16,7 @@ // ** https://github.com/googleapis/gapic-generator-typescript ** // ** All changes to this file may be overwritten. ** +/* global window */ import * as gax from 'google-gax'; import { Callback, @@ -31,6 +32,11 @@ import * as path from 'path'; import {Transform} from 'stream'; import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; +/** + * Client JSON configuration object, loaded from + * `src/v1beta1/pipeline_service_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ import * as gapicConfig from './pipeline_service_client_config.json'; import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; @@ -85,9 +91,9 @@ export class PipelineServiceClient { * your project ID will be detected automatically. * @param {string} [options.apiEndpoint] - The domain name of the * API remote host. - * @param {gax.ClientConfig} [options.clientConfig] - client configuration override. - * TODO(@alexander-fenster): link to gax documentation. - * @param {boolean} fallback - Use HTTP fallback mode. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP fallback mode. * In fallback mode, a special browser-compatible transport implementation is used * instead of gRPC transport. In browser context (if the `window` object is defined) * the fallback mode is enabled automatically; set `options.fallback` to `false` @@ -100,7 +106,9 @@ export class PipelineServiceClient { opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; - const fallback = opts?.fallback ?? typeof window !== 'undefined'; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. @@ -390,7 +398,7 @@ export class PipelineServiceClient { // ------------------- createTrainingPipeline( request: protos.google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.aiplatform.v1beta1.ITrainingPipeline, @@ -403,7 +411,7 @@ export class PipelineServiceClient { >; createTrainingPipeline( request: protos.google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.cloud.aiplatform.v1beta1.ITrainingPipeline, | protos.google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest @@ -446,7 +454,7 @@ export class PipelineServiceClient { createTrainingPipeline( request: protos.google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.cloud.aiplatform.v1beta1.ITrainingPipeline, | protos.google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest @@ -472,12 +480,12 @@ export class PipelineServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -496,7 +504,7 @@ export class PipelineServiceClient { } getTrainingPipeline( request: protos.google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.aiplatform.v1beta1.ITrainingPipeline, @@ -509,7 +517,7 @@ export class PipelineServiceClient { >; getTrainingPipeline( request: protos.google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.cloud.aiplatform.v1beta1.ITrainingPipeline, | protos.google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest @@ -551,7 +559,7 @@ export class PipelineServiceClient { getTrainingPipeline( request: protos.google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.cloud.aiplatform.v1beta1.ITrainingPipeline, | protos.google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest @@ -577,12 +585,12 @@ export class PipelineServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -597,7 +605,7 @@ export class PipelineServiceClient { } cancelTrainingPipeline( request: protos.google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, @@ -610,7 +618,7 @@ export class PipelineServiceClient { >; cancelTrainingPipeline( request: protos.google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, | protos.google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest @@ -661,7 +669,7 @@ export class PipelineServiceClient { cancelTrainingPipeline( request: protos.google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.protobuf.IEmpty, | protos.google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest @@ -687,12 +695,12 @@ export class PipelineServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -712,7 +720,7 @@ export class PipelineServiceClient { deleteTrainingPipeline( request: protos.google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ LROperation< @@ -725,7 +733,7 @@ export class PipelineServiceClient { >; deleteTrainingPipeline( request: protos.google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< LROperation< protos.google.protobuf.IEmpty, @@ -772,7 +780,7 @@ export class PipelineServiceClient { deleteTrainingPipeline( request: protos.google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< LROperation< protos.google.protobuf.IEmpty, @@ -800,12 +808,12 @@ export class PipelineServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -861,7 +869,7 @@ export class PipelineServiceClient { } listTrainingPipelines( request: protos.google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.aiplatform.v1beta1.ITrainingPipeline[], @@ -871,7 +879,7 @@ export class PipelineServiceClient { >; listTrainingPipelines( request: protos.google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest, - options: gax.CallOptions, + options: CallOptions, callback: PaginationCallback< protos.google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest, | protos.google.cloud.aiplatform.v1beta1.IListTrainingPipelinesResponse @@ -940,7 +948,7 @@ export class PipelineServiceClient { listTrainingPipelines( request: protos.google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< protos.google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest, | protos.google.cloud.aiplatform.v1beta1.IListTrainingPipelinesResponse @@ -963,12 +971,12 @@ export class PipelineServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1029,7 +1037,7 @@ export class PipelineServiceClient { */ listTrainingPipelinesStream( request?: protos.google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest, - options?: gax.CallOptions + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -1102,7 +1110,7 @@ export class PipelineServiceClient { */ listTrainingPipelinesAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest, - options?: gax.CallOptions + options?: CallOptions ): AsyncIterable { request = request || {}; options = options || {}; diff --git a/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_proto_list.json index 34c5c3401dd..48cc113f459 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_proto_list.json @@ -31,6 +31,51 @@ "../../protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/dataset_metadata.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/geometry.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/io_format.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_regression.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/time_series_forecasting.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/saved_query_metadata.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_forecasting.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_tables.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_client.ts index 3b6affb6d67..d138ace6160 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_client.ts @@ -16,11 +16,17 @@ // ** https://github.com/googleapis/gapic-generator-typescript ** // ** All changes to this file may be overwritten. ** +/* global window */ import * as gax from 'google-gax'; import {Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax'; import * as path from 'path'; import * as protos from '../../protos/protos'; +/** + * Client JSON configuration object, loaded from + * `src/v1beta1/prediction_service_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ import * as gapicConfig from './prediction_service_client_config.json'; const version = require('../../../package.json').version; @@ -74,9 +80,9 @@ export class PredictionServiceClient { * your project ID will be detected automatically. * @param {string} [options.apiEndpoint] - The domain name of the * API remote host. - * @param {gax.ClientConfig} [options.clientConfig] - client configuration override. - * TODO(@alexander-fenster): link to gax documentation. - * @param {boolean} fallback - Use HTTP fallback mode. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP fallback mode. * In fallback mode, a special browser-compatible transport implementation is used * instead of gRPC transport. In browser context (if the `window` object is defined) * the fallback mode is enabled automatically; set `options.fallback` to `false` @@ -89,7 +95,9 @@ export class PredictionServiceClient { opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; - const fallback = opts?.fallback ?? typeof window !== 'undefined'; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. @@ -322,7 +330,7 @@ export class PredictionServiceClient { // ------------------- predict( request: protos.google.cloud.aiplatform.v1beta1.IPredictRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.aiplatform.v1beta1.IPredictResponse, @@ -332,7 +340,7 @@ export class PredictionServiceClient { >; predict( request: protos.google.cloud.aiplatform.v1beta1.IPredictRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.cloud.aiplatform.v1beta1.IPredictResponse, protos.google.cloud.aiplatform.v1beta1.IPredictRequest | null | undefined, @@ -384,7 +392,7 @@ export class PredictionServiceClient { predict( request: protos.google.cloud.aiplatform.v1beta1.IPredictRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.cloud.aiplatform.v1beta1.IPredictResponse, | protos.google.cloud.aiplatform.v1beta1.IPredictRequest @@ -405,12 +413,12 @@ export class PredictionServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -425,7 +433,7 @@ export class PredictionServiceClient { } explain( request: protos.google.cloud.aiplatform.v1beta1.IExplainRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.aiplatform.v1beta1.IExplainResponse, @@ -435,7 +443,7 @@ export class PredictionServiceClient { >; explain( request: protos.google.cloud.aiplatform.v1beta1.IExplainRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.cloud.aiplatform.v1beta1.IExplainResponse, protos.google.cloud.aiplatform.v1beta1.IExplainRequest | null | undefined, @@ -499,7 +507,7 @@ export class PredictionServiceClient { explain( request: protos.google.cloud.aiplatform.v1beta1.IExplainRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.cloud.aiplatform.v1beta1.IExplainResponse, | protos.google.cloud.aiplatform.v1beta1.IExplainRequest @@ -520,12 +528,12 @@ export class PredictionServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; diff --git a/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_proto_list.json index 34c5c3401dd..48cc113f459 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_proto_list.json @@ -31,6 +31,51 @@ "../../protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/dataset_metadata.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/geometry.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/io_format.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_regression.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/time_series_forecasting.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/saved_query_metadata.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_forecasting.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_tables.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/specialist_pool_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/specialist_pool_service_client.ts index dcd1281722c..add2f7e7ba9 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/specialist_pool_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/specialist_pool_service_client.ts @@ -16,6 +16,7 @@ // ** https://github.com/googleapis/gapic-generator-typescript ** // ** All changes to this file may be overwritten. ** +/* global window */ import * as gax from 'google-gax'; import { Callback, @@ -31,6 +32,11 @@ import * as path from 'path'; import {Transform} from 'stream'; import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; +/** + * Client JSON configuration object, loaded from + * `src/v1beta1/specialist_pool_service_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ import * as gapicConfig from './specialist_pool_service_client_config.json'; import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; @@ -90,9 +96,9 @@ export class SpecialistPoolServiceClient { * your project ID will be detected automatically. * @param {string} [options.apiEndpoint] - The domain name of the * API remote host. - * @param {gax.ClientConfig} [options.clientConfig] - client configuration override. - * TODO(@alexander-fenster): link to gax documentation. - * @param {boolean} fallback - Use HTTP fallback mode. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP fallback mode. * In fallback mode, a special browser-compatible transport implementation is used * instead of gRPC transport. In browser context (if the `window` object is defined) * the fallback mode is enabled automatically; set `options.fallback` to `false` @@ -106,7 +112,9 @@ export class SpecialistPoolServiceClient { opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; - const fallback = opts?.fallback ?? typeof window !== 'undefined'; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. @@ -415,7 +423,7 @@ export class SpecialistPoolServiceClient { // ------------------- getSpecialistPool( request: protos.google.cloud.aiplatform.v1beta1.IGetSpecialistPoolRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.aiplatform.v1beta1.ISpecialistPool, @@ -428,7 +436,7 @@ export class SpecialistPoolServiceClient { >; getSpecialistPool( request: protos.google.cloud.aiplatform.v1beta1.IGetSpecialistPoolRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.cloud.aiplatform.v1beta1.ISpecialistPool, | protos.google.cloud.aiplatform.v1beta1.IGetSpecialistPoolRequest @@ -470,7 +478,7 @@ export class SpecialistPoolServiceClient { getSpecialistPool( request: protos.google.cloud.aiplatform.v1beta1.IGetSpecialistPoolRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.cloud.aiplatform.v1beta1.ISpecialistPool, | protos.google.cloud.aiplatform.v1beta1.IGetSpecialistPoolRequest @@ -496,12 +504,12 @@ export class SpecialistPoolServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -517,7 +525,7 @@ export class SpecialistPoolServiceClient { createSpecialistPool( request: protos.google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ LROperation< @@ -530,7 +538,7 @@ export class SpecialistPoolServiceClient { >; createSpecialistPool( request: protos.google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< LROperation< protos.google.cloud.aiplatform.v1beta1.ISpecialistPool, @@ -577,7 +585,7 @@ export class SpecialistPoolServiceClient { createSpecialistPool( request: protos.google.cloud.aiplatform.v1beta1.ICreateSpecialistPoolRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< LROperation< protos.google.cloud.aiplatform.v1beta1.ISpecialistPool, @@ -605,12 +613,12 @@ export class SpecialistPoolServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -662,7 +670,7 @@ export class SpecialistPoolServiceClient { } deleteSpecialistPool( request: protos.google.cloud.aiplatform.v1beta1.IDeleteSpecialistPoolRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ LROperation< @@ -675,7 +683,7 @@ export class SpecialistPoolServiceClient { >; deleteSpecialistPool( request: protos.google.cloud.aiplatform.v1beta1.IDeleteSpecialistPoolRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< LROperation< protos.google.protobuf.IEmpty, @@ -724,7 +732,7 @@ export class SpecialistPoolServiceClient { deleteSpecialistPool( request: protos.google.cloud.aiplatform.v1beta1.IDeleteSpecialistPoolRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< LROperation< protos.google.protobuf.IEmpty, @@ -752,12 +760,12 @@ export class SpecialistPoolServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -809,7 +817,7 @@ export class SpecialistPoolServiceClient { } updateSpecialistPool( request: protos.google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ LROperation< @@ -822,7 +830,7 @@ export class SpecialistPoolServiceClient { >; updateSpecialistPool( request: protos.google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< LROperation< protos.google.cloud.aiplatform.v1beta1.ISpecialistPool, @@ -868,7 +876,7 @@ export class SpecialistPoolServiceClient { updateSpecialistPool( request: protos.google.cloud.aiplatform.v1beta1.IUpdateSpecialistPoolRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< LROperation< protos.google.cloud.aiplatform.v1beta1.ISpecialistPool, @@ -896,12 +904,12 @@ export class SpecialistPoolServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -953,7 +961,7 @@ export class SpecialistPoolServiceClient { } listSpecialistPools( request: protos.google.cloud.aiplatform.v1beta1.IListSpecialistPoolsRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.cloud.aiplatform.v1beta1.ISpecialistPool[], @@ -963,7 +971,7 @@ export class SpecialistPoolServiceClient { >; listSpecialistPools( request: protos.google.cloud.aiplatform.v1beta1.IListSpecialistPoolsRequest, - options: gax.CallOptions, + options: CallOptions, callback: PaginationCallback< protos.google.cloud.aiplatform.v1beta1.IListSpecialistPoolsRequest, | protos.google.cloud.aiplatform.v1beta1.IListSpecialistPoolsResponse @@ -1015,7 +1023,7 @@ export class SpecialistPoolServiceClient { listSpecialistPools( request: protos.google.cloud.aiplatform.v1beta1.IListSpecialistPoolsRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< protos.google.cloud.aiplatform.v1beta1.IListSpecialistPoolsRequest, | protos.google.cloud.aiplatform.v1beta1.IListSpecialistPoolsResponse @@ -1038,12 +1046,12 @@ export class SpecialistPoolServiceClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1087,7 +1095,7 @@ export class SpecialistPoolServiceClient { */ listSpecialistPoolsStream( request?: protos.google.cloud.aiplatform.v1beta1.IListSpecialistPoolsRequest, - options?: gax.CallOptions + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -1143,7 +1151,7 @@ export class SpecialistPoolServiceClient { */ listSpecialistPoolsAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListSpecialistPoolsRequest, - options?: gax.CallOptions + options?: CallOptions ): AsyncIterable { request = request || {}; options = options || {}; diff --git a/packages/google-cloud-aiplatform/src/v1beta1/specialist_pool_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/specialist_pool_service_proto_list.json index 34c5c3401dd..48cc113f459 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/specialist_pool_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/specialist_pool_service_proto_list.json @@ -31,6 +31,51 @@ "../../protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/dataset_metadata.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/geometry.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/io_format.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_regression.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/time_series_forecasting.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/saved_query_metadata.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_forecasting.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_tables.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.proto", diff --git a/packages/google-cloud-aiplatform/synth.metadata b/packages/google-cloud-aiplatform/synth.metadata index 50b44cf378c..1bd118aacf5 100644 --- a/packages/google-cloud-aiplatform/synth.metadata +++ b/packages/google-cloud-aiplatform/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-ai-platform.git", - "sha": "19722b02063ac34a350ba6e5086bda12bc5e5bd1" + "sha": "45a721b238432130f82fc54d7523d79aa99b6fdf" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "6c0f55f33f882cf97fd3135e93b144ad9c94ebab", - "internalRef": "341478628" + "sha": "2f019bf70bfe06f1e2af1b04011b0a2405190e43", + "internalRef": "343202295" } }, { @@ -33,138 +33,5 @@ "generator": "bazel" } } - ], - "generatedFiles": [ - ".eslintignore", - ".eslintrc.json", - ".gitattributes", - ".github/ISSUE_TEMPLATE/bug_report.md", - ".github/ISSUE_TEMPLATE/feature_request.md", - ".github/ISSUE_TEMPLATE/support_request.md", - ".github/PULL_REQUEST_TEMPLATE.md", - ".github/release-please.yml", - ".github/workflows/ci.yaml", - ".gitignore", - ".jsdoc.js", - ".kokoro/.gitattributes", - ".kokoro/common.cfg", - ".kokoro/continuous/node10/common.cfg", - ".kokoro/continuous/node10/docs.cfg", - ".kokoro/continuous/node10/test.cfg", - ".kokoro/continuous/node12/common.cfg", - ".kokoro/continuous/node12/lint.cfg", - ".kokoro/continuous/node12/system-test.cfg", - ".kokoro/continuous/node12/test.cfg", - ".kokoro/docs.sh", - ".kokoro/lint.sh", - ".kokoro/populate-secrets.sh", - ".kokoro/presubmit/node10/common.cfg", - ".kokoro/presubmit/node12/common.cfg", - ".kokoro/presubmit/node12/system-test.cfg", - ".kokoro/presubmit/node12/test.cfg", - ".kokoro/publish.sh", - ".kokoro/release/docs-devsite.cfg", - ".kokoro/release/docs-devsite.sh", - ".kokoro/release/docs.cfg", - ".kokoro/release/docs.sh", - ".kokoro/release/publish.cfg", - ".kokoro/samples-test.sh", - ".kokoro/system-test.sh", - ".kokoro/test.bat", - ".kokoro/test.sh", - ".kokoro/trampoline.sh", - ".kokoro/trampoline_v2.sh", - ".mocharc.js", - ".nycrc", - ".prettierignore", - ".prettierrc.js", - ".trampolinerc", - "CODE_OF_CONDUCT.md", - "CONTRIBUTING.md", - "LICENSE", - "README.md", - "api-extractor.json", - "linkinator.config.json", - "protos/google/cloud/aiplatform/v1beta1/accelerator_type.proto", - "protos/google/cloud/aiplatform/v1beta1/annotation.proto", - "protos/google/cloud/aiplatform/v1beta1/annotation_spec.proto", - "protos/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto", - "protos/google/cloud/aiplatform/v1beta1/completion_stats.proto", - "protos/google/cloud/aiplatform/v1beta1/custom_job.proto", - "protos/google/cloud/aiplatform/v1beta1/data_item.proto", - "protos/google/cloud/aiplatform/v1beta1/data_labeling_job.proto", - "protos/google/cloud/aiplatform/v1beta1/dataset.proto", - "protos/google/cloud/aiplatform/v1beta1/dataset_service.proto", - "protos/google/cloud/aiplatform/v1beta1/deployed_model_ref.proto", - "protos/google/cloud/aiplatform/v1beta1/endpoint.proto", - "protos/google/cloud/aiplatform/v1beta1/endpoint_service.proto", - "protos/google/cloud/aiplatform/v1beta1/env_var.proto", - "protos/google/cloud/aiplatform/v1beta1/explanation.proto", - "protos/google/cloud/aiplatform/v1beta1/explanation_metadata.proto", - "protos/google/cloud/aiplatform/v1beta1/hyperparameter_tuning_job.proto", - "protos/google/cloud/aiplatform/v1beta1/io.proto", - "protos/google/cloud/aiplatform/v1beta1/job_service.proto", - "protos/google/cloud/aiplatform/v1beta1/job_state.proto", - "protos/google/cloud/aiplatform/v1beta1/machine_resources.proto", - "protos/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto", - "protos/google/cloud/aiplatform/v1beta1/migratable_resource.proto", - "protos/google/cloud/aiplatform/v1beta1/migration_service.proto", - "protos/google/cloud/aiplatform/v1beta1/model.proto", - "protos/google/cloud/aiplatform/v1beta1/model_evaluation.proto", - "protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto", - "protos/google/cloud/aiplatform/v1beta1/model_service.proto", - "protos/google/cloud/aiplatform/v1beta1/operation.proto", - "protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto", - "protos/google/cloud/aiplatform/v1beta1/pipeline_state.proto", - "protos/google/cloud/aiplatform/v1beta1/prediction_service.proto", - "protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", - "protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", - "protos/google/cloud/aiplatform/v1beta1/study.proto", - "protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto", - "protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto", - "protos/protos.d.ts", - "protos/protos.js", - "protos/protos.json", - "renovate.json", - "samples/README.md", - "src/index.ts", - "src/v1beta1/dataset_service_client.ts", - "src/v1beta1/dataset_service_client_config.json", - "src/v1beta1/dataset_service_proto_list.json", - "src/v1beta1/endpoint_service_client.ts", - "src/v1beta1/endpoint_service_client_config.json", - "src/v1beta1/endpoint_service_proto_list.json", - "src/v1beta1/index.ts", - "src/v1beta1/job_service_client.ts", - "src/v1beta1/job_service_client_config.json", - "src/v1beta1/job_service_proto_list.json", - "src/v1beta1/migration_service_client.ts", - "src/v1beta1/migration_service_client_config.json", - "src/v1beta1/migration_service_proto_list.json", - "src/v1beta1/model_service_client.ts", - "src/v1beta1/model_service_client_config.json", - "src/v1beta1/model_service_proto_list.json", - "src/v1beta1/pipeline_service_client.ts", - "src/v1beta1/pipeline_service_client_config.json", - "src/v1beta1/pipeline_service_proto_list.json", - "src/v1beta1/prediction_service_client.ts", - "src/v1beta1/prediction_service_client_config.json", - "src/v1beta1/prediction_service_proto_list.json", - "src/v1beta1/specialist_pool_service_client.ts", - "src/v1beta1/specialist_pool_service_client_config.json", - "src/v1beta1/specialist_pool_service_proto_list.json", - "system-test/fixtures/sample/src/index.js", - "system-test/fixtures/sample/src/index.ts", - "system-test/install.ts", - "test/gapic_dataset_service_v1beta1.ts", - "test/gapic_endpoint_service_v1beta1.ts", - "test/gapic_job_service_v1beta1.ts", - "test/gapic_migration_service_v1beta1.ts", - "test/gapic_model_service_v1beta1.ts", - "test/gapic_pipeline_service_v1beta1.ts", - "test/gapic_prediction_service_v1beta1.ts", - "test/gapic_specialist_pool_service_v1beta1.ts", - "tsconfig.json", - "webpack.config.js" ] } \ No newline at end of file