From 592cfaf46386abdc2dfdd5ecb9482fbfd8225c85 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 13 Mar 2024 03:00:35 +0000 Subject: [PATCH] feat: Automated regeneration of Language client --- .../google_api/language/v2/api/documents.ex | 322 ++++++++++++++++++ .../lib/google_api/language/v2/connection.ex | 35 ++ .../lib/google_api/language/v2/metadata.ex | 26 ++ .../v2/model/analyze_entities_request.ex | 49 +++ .../v2/model/analyze_entities_response.ex | 52 +++ .../v2/model/analyze_sentiment_request.ex | 49 +++ .../v2/model/analyze_sentiment_response.ex | 55 +++ .../v2/model/annotate_text_request.ex | 52 +++ .../model/annotate_text_request_features.ex | 55 +++ .../v2/model/annotate_text_response.ex | 67 ++++ .../v2/model/classification_category.ex | 49 +++ .../v2/model/classify_text_request.ex | 46 +++ .../v2/model/classify_text_response.ex | 52 +++ .../lib/google_api/language/v2/model/color.ex | 55 +++ .../language/v2/model/cpu_metric.ex | 58 ++++ .../language/v2/model/disk_metric.ex | 49 +++ .../google_api/language/v2/model/document.ex | 55 +++ .../google_api/language/v2/model/entity.ex | 58 ++++ .../language/v2/model/entity_mention.ex | 55 +++ .../language/v2/model/gpu_metric.ex | 55 +++ .../language/v2/model/infra_usage.ex | 58 ++++ .../v2/model/moderate_text_request.ex | 46 +++ .../v2/model/moderate_text_response.ex | 54 +++ .../language/v2/model/ram_metric.ex | 58 ++++ .../google_api/language/v2/model/sentence.ex | 49 +++ .../google_api/language/v2/model/sentiment.ex | 49 +++ .../google_api/language/v2/model/status.ex | 52 +++ .../google_api/language/v2/model/text_span.ex | 49 +++ .../language/v2/model/tpu_metric.ex | 49 +++ .../language/v2/model/xps_array_stats.ex | 49 +++ .../v2/model/xps_batch_predict_response.ex | 46 +++ .../model/xps_bounding_box_metrics_entry.ex | 58 ++++ ..._metrics_entry_confidence_metrics_entry.ex | 60 ++++ .../language/v2/model/xps_category_stats.ex | 54 +++ ...ps_category_stats_single_category_stats.ex | 49 +++ .../xps_classification_evaluation_metrics.ex | 70 ++++ .../language/v2/model/xps_color_map.ex | 55 +++ .../v2/model/xps_color_map_int_color.ex | 52 +++ .../language/v2/model/xps_column_spec.ex | 67 ++++ .../xps_column_spec_correlated_column.ex | 49 +++ .../xps_column_spec_forecasting_metadata.ex | 46 +++ .../language/v2/model/xps_common_stats.ex | 52 +++ .../v2/model/xps_confidence_metrics_entry.ex | 85 +++++ .../language/v2/model/xps_confusion_matrix.ex | 55 +++ .../v2/model/xps_confusion_matrix_row.ex | 49 +++ .../language/v2/model/xps_core_ml_format.ex | 41 +++ .../v2/model/xps_correlation_stats.ex | 46 +++ .../language/v2/model/xps_data_errors.ex | 49 +++ .../language/v2/model/xps_data_stats.ex | 70 ++++ .../language/v2/model/xps_data_type.ex | 61 ++++ .../language/v2/model/xps_docker_format.ex | 49 +++ .../v2/model/xps_edge_tpu_tf_lite_format.ex | 41 +++ .../v2/model/xps_evaluation_metrics.ex | 139 ++++++++ .../v2/model/xps_evaluation_metrics_set.ex | 52 +++ .../language/v2/model/xps_example_set.ex | 55 +++ .../model/xps_export_model_output_config.ex | 70 ++++ .../language/v2/model/xps_file_spec.ex | 55 +++ .../language/v2/model/xps_float64_stats.ex | 64 ++++ .../xps_float64_stats_histogram_bucket.ex | 52 +++ ...xps_image_classification_train_response.ex | 64 ++++ .../v2/model/xps_image_export_model_spec.ex | 50 +++ .../v2/model/xps_image_model_artifact_spec.ex | 61 ++++ .../v2/model/xps_image_model_serving_spec.ex | 60 ++++ ...erving_spec_model_throughput_estimation.ex | 60 ++++ ...age_object_detection_evaluation_metrics.ex | 58 ++++ .../xps_image_object_detection_model_spec.ex | 64 ++++ ...s_image_segmentation_evaluation_metrics.ex | 53 +++ ...uation_metrics_confidence_metrics_entry.ex | 66 ++++ .../xps_image_segmentation_train_response.ex | 61 ++++ .../xps_integrated_gradients_attribution.ex | 46 +++ .../language/v2/model/xps_metric_entry.ex | 58 ++++ .../v2/model/xps_metric_entry_label.ex | 49 +++ .../v2/model/xps_model_artifact_item.ex | 49 +++ .../v2/model/xps_preprocess_response.ex | 61 ++++ .../xps_regression_evaluation_metrics.ex | 67 ++++ .../v2/model/xps_regression_metrics_entry.ex | 49 +++ .../v2/model/xps_reporting_metrics.ex | 49 +++ .../xps_response_explanation_metadata.ex | 66 ++++ ...nse_explanation_metadata_input_metadata.ex | 54 +++ ...se_explanation_metadata_output_metadata.ex | 51 +++ .../xps_response_explanation_parameters.ex | 53 +++ .../v2/model/xps_response_explanation_spec.ex | 52 +++ .../google_api/language/v2/model/xps_row.ex | 49 +++ .../v2/model/xps_speech_evaluation_metrics.ex | 53 +++ ...ion_metrics_sub_model_evaluation_metric.ex | 75 ++++ .../v2/model/xps_speech_model_spec.ex | 57 ++++ .../xps_speech_model_spec_sub_model_spec.ex | 55 +++ .../model/xps_speech_preprocess_response.ex | 60 ++++ .../v2/model/xps_speech_preprocess_stats.ex | 73 ++++ .../language/v2/model/xps_string_stats.ex | 50 +++ .../model/xps_string_stats_unigram_stats.ex | 49 +++ .../language/v2/model/xps_struct_stats.ex | 50 +++ .../language/v2/model/xps_struct_type.ex | 46 +++ .../language/v2/model/xps_table_spec.ex | 59 ++++ .../xps_tables_classification_metrics.ex | 50 +++ ...es_classification_metrics_curve_metrics.ex | 69 ++++ .../xps_tables_confidence_metrics_entry.ex | 73 ++++ .../v2/model/xps_tables_dataset_metadata.ex | 61 ++++ .../v2/model/xps_tables_evaluation_metrics.ex | 50 +++ .../v2/model/xps_tables_model_column_info.ex | 49 +++ .../v2/model/xps_tables_model_structure.ex | 50 +++ ...tables_model_structure_model_parameters.ex | 51 +++ ...el_structure_model_parameters_parameter.ex | 60 ++++ .../model/xps_tables_preprocess_response.ex | 46 +++ .../v2/model/xps_tables_regression_metrics.ex | 67 ++++ .../v2/model/xps_tables_train_response.ex | 61 ++++ .../xps_tables_training_operation_metadata.ex | 67 ++++ .../v2/model/xps_text_component_model.ex | 70 ++++ .../xps_text_extraction_evaluation_metrics.ex | 68 ++++ .../xps_text_sentiment_evaluation_metrics.ex | 67 ++++ .../xps_text_to_speech_train_response.ex | 41 +++ .../v2/model/xps_text_train_response.ex | 46 +++ .../language/v2/model/xps_tf_js_format.ex | 41 +++ .../language/v2/model/xps_tf_lite_format.ex | 41 +++ .../v2/model/xps_tf_saved_model_format.ex | 41 +++ .../language/v2/model/xps_timestamp_stats.ex | 59 ++++ .../xps_timestamp_stats_granular_stats.ex | 46 +++ .../v2/model/xps_track_metrics_entry.ex | 63 ++++ ..._metrics_entry_confidence_metrics_entry.ex | 60 ++++ .../language/v2/model/xps_train_response.ex | 132 +++++++ .../v2/model/xps_training_objective_point.ex | 49 +++ .../xps_translation_evaluation_metrics.ex | 49 +++ .../xps_translation_preprocess_response.ex | 49 +++ .../model/xps_translation_train_response.ex | 46 +++ .../language/v2/model/xps_tuning_trial.ex | 50 +++ .../model/xps_video_action_metrics_entry.ex | 58 ++++ ..._metrics_entry_confidence_metrics_entry.ex | 60 ++++ ...o_action_recognition_evaluation_metrics.ex | 56 +++ ...video_action_recognition_train_response.ex | 49 +++ ..._video_batch_predict_operation_metadata.ex | 46 +++ ...xps_video_classification_train_response.ex | 49 +++ .../v2/model/xps_video_export_model_spec.ex | 50 +++ .../v2/model/xps_video_model_artifact_spec.ex | 49 +++ ...ideo_object_tracking_evaluation_metrics.ex | 76 +++++ ...ps_video_object_tracking_train_response.ex | 52 +++ .../xps_video_training_operation_metadata.ex | 46 +++ .../model/xps_vision_error_analysis_config.ex | 49 +++ .../xps_vision_training_operation_metadata.ex | 46 +++ .../language/v2/model/xps_visualization.ex | 61 ++++ .../v2/model/xps_xps_operation_metadata.ex | 77 +++++ .../language/v2/model/xps_xrai_attribution.ex | 46 +++ 141 files changed, 8117 insertions(+) create mode 100644 clients/language/lib/google_api/language/v2/api/documents.ex create mode 100644 clients/language/lib/google_api/language/v2/connection.ex create mode 100644 clients/language/lib/google_api/language/v2/metadata.ex create mode 100644 clients/language/lib/google_api/language/v2/model/analyze_entities_request.ex create mode 100644 clients/language/lib/google_api/language/v2/model/analyze_entities_response.ex create mode 100644 clients/language/lib/google_api/language/v2/model/analyze_sentiment_request.ex create mode 100644 clients/language/lib/google_api/language/v2/model/analyze_sentiment_response.ex create mode 100644 clients/language/lib/google_api/language/v2/model/annotate_text_request.ex create mode 100644 clients/language/lib/google_api/language/v2/model/annotate_text_request_features.ex create mode 100644 clients/language/lib/google_api/language/v2/model/annotate_text_response.ex create mode 100644 clients/language/lib/google_api/language/v2/model/classification_category.ex create mode 100644 clients/language/lib/google_api/language/v2/model/classify_text_request.ex create mode 100644 clients/language/lib/google_api/language/v2/model/classify_text_response.ex create mode 100644 clients/language/lib/google_api/language/v2/model/color.ex create mode 100644 clients/language/lib/google_api/language/v2/model/cpu_metric.ex create mode 100644 clients/language/lib/google_api/language/v2/model/disk_metric.ex create mode 100644 clients/language/lib/google_api/language/v2/model/document.ex create mode 100644 clients/language/lib/google_api/language/v2/model/entity.ex create mode 100644 clients/language/lib/google_api/language/v2/model/entity_mention.ex create mode 100644 clients/language/lib/google_api/language/v2/model/gpu_metric.ex create mode 100644 clients/language/lib/google_api/language/v2/model/infra_usage.ex create mode 100644 clients/language/lib/google_api/language/v2/model/moderate_text_request.ex create mode 100644 clients/language/lib/google_api/language/v2/model/moderate_text_response.ex create mode 100644 clients/language/lib/google_api/language/v2/model/ram_metric.ex create mode 100644 clients/language/lib/google_api/language/v2/model/sentence.ex create mode 100644 clients/language/lib/google_api/language/v2/model/sentiment.ex create mode 100644 clients/language/lib/google_api/language/v2/model/status.ex create mode 100644 clients/language/lib/google_api/language/v2/model/text_span.ex create mode 100644 clients/language/lib/google_api/language/v2/model/tpu_metric.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_array_stats.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_batch_predict_response.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_bounding_box_metrics_entry.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_bounding_box_metrics_entry_confidence_metrics_entry.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_category_stats.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_category_stats_single_category_stats.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_classification_evaluation_metrics.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_color_map.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_color_map_int_color.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_column_spec.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_column_spec_correlated_column.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_column_spec_forecasting_metadata.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_common_stats.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_confidence_metrics_entry.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_confusion_matrix.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_confusion_matrix_row.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_core_ml_format.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_correlation_stats.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_data_errors.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_data_stats.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_data_type.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_docker_format.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_edge_tpu_tf_lite_format.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_evaluation_metrics.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_evaluation_metrics_set.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_example_set.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_export_model_output_config.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_file_spec.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_float64_stats.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_float64_stats_histogram_bucket.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_image_classification_train_response.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_image_export_model_spec.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_image_model_artifact_spec.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_image_model_serving_spec.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_image_model_serving_spec_model_throughput_estimation.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_image_object_detection_evaluation_metrics.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_image_object_detection_model_spec.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_image_segmentation_evaluation_metrics.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_image_segmentation_evaluation_metrics_confidence_metrics_entry.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_image_segmentation_train_response.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_integrated_gradients_attribution.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_metric_entry.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_metric_entry_label.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_model_artifact_item.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_preprocess_response.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_regression_evaluation_metrics.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_regression_metrics_entry.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_reporting_metrics.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_response_explanation_metadata.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_response_explanation_metadata_input_metadata.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_response_explanation_metadata_output_metadata.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_response_explanation_parameters.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_response_explanation_spec.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_row.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_speech_evaluation_metrics.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_speech_evaluation_metrics_sub_model_evaluation_metric.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_speech_model_spec.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_speech_model_spec_sub_model_spec.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_speech_preprocess_response.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_speech_preprocess_stats.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_string_stats.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_string_stats_unigram_stats.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_struct_stats.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_struct_type.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_table_spec.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_tables_classification_metrics.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_tables_classification_metrics_curve_metrics.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_tables_confidence_metrics_entry.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_tables_dataset_metadata.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_tables_evaluation_metrics.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_tables_model_column_info.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_tables_model_structure.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_tables_model_structure_model_parameters.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_tables_model_structure_model_parameters_parameter.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_tables_preprocess_response.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_tables_regression_metrics.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_tables_train_response.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_tables_training_operation_metadata.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_text_component_model.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_text_extraction_evaluation_metrics.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_text_sentiment_evaluation_metrics.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_text_to_speech_train_response.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_text_train_response.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_tf_js_format.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_tf_lite_format.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_tf_saved_model_format.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_timestamp_stats.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_timestamp_stats_granular_stats.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_track_metrics_entry.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_track_metrics_entry_confidence_metrics_entry.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_train_response.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_training_objective_point.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_translation_evaluation_metrics.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_translation_preprocess_response.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_translation_train_response.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_tuning_trial.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_video_action_metrics_entry.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_video_action_metrics_entry_confidence_metrics_entry.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_video_action_recognition_evaluation_metrics.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_video_action_recognition_train_response.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_video_batch_predict_operation_metadata.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_video_classification_train_response.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_video_export_model_spec.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_video_model_artifact_spec.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_video_object_tracking_evaluation_metrics.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_video_object_tracking_train_response.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_video_training_operation_metadata.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_vision_error_analysis_config.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_vision_training_operation_metadata.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_visualization.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_xps_operation_metadata.ex create mode 100644 clients/language/lib/google_api/language/v2/model/xps_xrai_attribution.ex diff --git a/clients/language/lib/google_api/language/v2/api/documents.ex b/clients/language/lib/google_api/language/v2/api/documents.ex new file mode 100644 index 0000000000..dd3618bbc2 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/api/documents.ex @@ -0,0 +1,322 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Api.Documents do + @moduledoc """ + API calls for all endpoints tagged `Documents`. + """ + + alias GoogleApi.Language.V2.Connection + alias GoogleApi.Gax.{Request, Response} + + @library_version Mix.Project.config() |> Keyword.get(:version, "") + + @doc """ + Finds named entities (currently proper names and common nouns) in the text along with entity types, probability, mentions for each entity, and other properties. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Language.V2.Connection.t`) - Connection to server + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Language.V2.Model.AnalyzeEntitiesRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Language.V2.Model.AnalyzeEntitiesResponse{}}` on success + * `{:error, info}` on failure + """ + @spec language_documents_analyze_entities(Tesla.Env.client(), keyword(), keyword()) :: + {:ok, GoogleApi.Language.V2.Model.AnalyzeEntitiesResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def language_documents_analyze_entities(connection, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v2/documents:analyzeEntities", %{}) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.Language.V2.Model.AnalyzeEntitiesResponse{}]) + end + + @doc """ + Analyzes the sentiment of the provided text. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Language.V2.Connection.t`) - Connection to server + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Language.V2.Model.AnalyzeSentimentRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Language.V2.Model.AnalyzeSentimentResponse{}}` on success + * `{:error, info}` on failure + """ + @spec language_documents_analyze_sentiment(Tesla.Env.client(), keyword(), keyword()) :: + {:ok, GoogleApi.Language.V2.Model.AnalyzeSentimentResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def language_documents_analyze_sentiment(connection, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v2/documents:analyzeSentiment", %{}) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.Language.V2.Model.AnalyzeSentimentResponse{}]) + end + + @doc """ + A convenience method that provides all features in one call. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Language.V2.Connection.t`) - Connection to server + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Language.V2.Model.AnnotateTextRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Language.V2.Model.AnnotateTextResponse{}}` on success + * `{:error, info}` on failure + """ + @spec language_documents_annotate_text(Tesla.Env.client(), keyword(), keyword()) :: + {:ok, GoogleApi.Language.V2.Model.AnnotateTextResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def language_documents_annotate_text(connection, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v2/documents:annotateText", %{}) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.Language.V2.Model.AnnotateTextResponse{}]) + end + + @doc """ + Classifies a document into categories. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Language.V2.Connection.t`) - Connection to server + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Language.V2.Model.ClassifyTextRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Language.V2.Model.ClassifyTextResponse{}}` on success + * `{:error, info}` on failure + """ + @spec language_documents_classify_text(Tesla.Env.client(), keyword(), keyword()) :: + {:ok, GoogleApi.Language.V2.Model.ClassifyTextResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def language_documents_classify_text(connection, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v2/documents:classifyText", %{}) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.Language.V2.Model.ClassifyTextResponse{}]) + end + + @doc """ + Moderates a document for harmful and sensitive categories. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Language.V2.Connection.t`) - Connection to server + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Language.V2.Model.ModerateTextRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Language.V2.Model.ModerateTextResponse{}}` on success + * `{:error, info}` on failure + """ + @spec language_documents_moderate_text(Tesla.Env.client(), keyword(), keyword()) :: + {:ok, GoogleApi.Language.V2.Model.ModerateTextResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def language_documents_moderate_text(connection, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v2/documents:moderateText", %{}) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.Language.V2.Model.ModerateTextResponse{}]) + end +end diff --git a/clients/language/lib/google_api/language/v2/connection.ex b/clients/language/lib/google_api/language/v2/connection.ex new file mode 100644 index 0000000000..af5b43bbc5 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/connection.ex @@ -0,0 +1,35 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Connection do + @moduledoc """ + Handle Tesla connections for GoogleApi.Language.V2. + """ + + @type t :: Tesla.Env.client() + + use GoogleApi.Gax.Connection, + scopes: [ + # Apply machine learning models to reveal the structure and meaning of text + "https://www.googleapis.com/auth/cloud-language", + + # See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account. + "https://www.googleapis.com/auth/cloud-platform" + ], + otp_app: :google_api_language, + base_url: "https://language.googleapis.com/" +end diff --git a/clients/language/lib/google_api/language/v2/metadata.ex b/clients/language/lib/google_api/language/v2/metadata.ex new file mode 100644 index 0000000000..8ea6077430 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/metadata.ex @@ -0,0 +1,26 @@ +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2 do + @moduledoc """ + API client metadata for GoogleApi.Language.V2. + """ + + @discovery_revision "20240310" + + def discovery_revision(), do: @discovery_revision +end diff --git a/clients/language/lib/google_api/language/v2/model/analyze_entities_request.ex b/clients/language/lib/google_api/language/v2/model/analyze_entities_request.ex new file mode 100644 index 0000000000..3e141b704e --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/analyze_entities_request.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.AnalyzeEntitiesRequest do + @moduledoc """ + The entity analysis request message. + + ## Attributes + + * `document` (*type:* `GoogleApi.Language.V2.Model.Document.t`, *default:* `nil`) - Required. Input document. + * `encodingType` (*type:* `String.t`, *default:* `nil`) - The encoding type used by the API to calculate offsets. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :document => GoogleApi.Language.V2.Model.Document.t() | nil, + :encodingType => String.t() | nil + } + + field(:document, as: GoogleApi.Language.V2.Model.Document) + field(:encodingType) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.AnalyzeEntitiesRequest do + def decode(value, options) do + GoogleApi.Language.V2.Model.AnalyzeEntitiesRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.AnalyzeEntitiesRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/analyze_entities_response.ex b/clients/language/lib/google_api/language/v2/model/analyze_entities_response.ex new file mode 100644 index 0000000000..acaa65cec3 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/analyze_entities_response.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.AnalyzeEntitiesResponse do + @moduledoc """ + The entity analysis response message. + + ## Attributes + + * `entities` (*type:* `list(GoogleApi.Language.V2.Model.Entity.t)`, *default:* `nil`) - The recognized entities in the input document. + * `languageCode` (*type:* `String.t`, *default:* `nil`) - The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See Document.language field for more details. + * `languageSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the language is officially supported. The API may still return a response when the language is not supported, but it is on a best effort basis. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :entities => list(GoogleApi.Language.V2.Model.Entity.t()) | nil, + :languageCode => String.t() | nil, + :languageSupported => boolean() | nil + } + + field(:entities, as: GoogleApi.Language.V2.Model.Entity, type: :list) + field(:languageCode) + field(:languageSupported) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.AnalyzeEntitiesResponse do + def decode(value, options) do + GoogleApi.Language.V2.Model.AnalyzeEntitiesResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.AnalyzeEntitiesResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/analyze_sentiment_request.ex b/clients/language/lib/google_api/language/v2/model/analyze_sentiment_request.ex new file mode 100644 index 0000000000..ae22c86eca --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/analyze_sentiment_request.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.AnalyzeSentimentRequest do + @moduledoc """ + The sentiment analysis request message. + + ## Attributes + + * `document` (*type:* `GoogleApi.Language.V2.Model.Document.t`, *default:* `nil`) - Required. Input document. + * `encodingType` (*type:* `String.t`, *default:* `nil`) - The encoding type used by the API to calculate sentence offsets. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :document => GoogleApi.Language.V2.Model.Document.t() | nil, + :encodingType => String.t() | nil + } + + field(:document, as: GoogleApi.Language.V2.Model.Document) + field(:encodingType) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.AnalyzeSentimentRequest do + def decode(value, options) do + GoogleApi.Language.V2.Model.AnalyzeSentimentRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.AnalyzeSentimentRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/analyze_sentiment_response.ex b/clients/language/lib/google_api/language/v2/model/analyze_sentiment_response.ex new file mode 100644 index 0000000000..2149289c74 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/analyze_sentiment_response.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.AnalyzeSentimentResponse do + @moduledoc """ + The sentiment analysis response message. + + ## Attributes + + * `documentSentiment` (*type:* `GoogleApi.Language.V2.Model.Sentiment.t`, *default:* `nil`) - The overall sentiment of the input document. + * `languageCode` (*type:* `String.t`, *default:* `nil`) - The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See Document.language field for more details. + * `languageSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the language is officially supported. The API may still return a response when the language is not supported, but it is on a best effort basis. + * `sentences` (*type:* `list(GoogleApi.Language.V2.Model.Sentence.t)`, *default:* `nil`) - The sentiment for all the sentences in the document. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :documentSentiment => GoogleApi.Language.V2.Model.Sentiment.t() | nil, + :languageCode => String.t() | nil, + :languageSupported => boolean() | nil, + :sentences => list(GoogleApi.Language.V2.Model.Sentence.t()) | nil + } + + field(:documentSentiment, as: GoogleApi.Language.V2.Model.Sentiment) + field(:languageCode) + field(:languageSupported) + field(:sentences, as: GoogleApi.Language.V2.Model.Sentence, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.AnalyzeSentimentResponse do + def decode(value, options) do + GoogleApi.Language.V2.Model.AnalyzeSentimentResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.AnalyzeSentimentResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/annotate_text_request.ex b/clients/language/lib/google_api/language/v2/model/annotate_text_request.ex new file mode 100644 index 0000000000..ddbec04194 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/annotate_text_request.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.AnnotateTextRequest do + @moduledoc """ + The request message for the text annotation API, which can perform multiple analysis types in one call. + + ## Attributes + + * `document` (*type:* `GoogleApi.Language.V2.Model.Document.t`, *default:* `nil`) - Required. Input document. + * `encodingType` (*type:* `String.t`, *default:* `nil`) - The encoding type used by the API to calculate offsets. + * `features` (*type:* `GoogleApi.Language.V2.Model.AnnotateTextRequestFeatures.t`, *default:* `nil`) - Required. The enabled features. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :document => GoogleApi.Language.V2.Model.Document.t() | nil, + :encodingType => String.t() | nil, + :features => GoogleApi.Language.V2.Model.AnnotateTextRequestFeatures.t() | nil + } + + field(:document, as: GoogleApi.Language.V2.Model.Document) + field(:encodingType) + field(:features, as: GoogleApi.Language.V2.Model.AnnotateTextRequestFeatures) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.AnnotateTextRequest do + def decode(value, options) do + GoogleApi.Language.V2.Model.AnnotateTextRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.AnnotateTextRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/annotate_text_request_features.ex b/clients/language/lib/google_api/language/v2/model/annotate_text_request_features.ex new file mode 100644 index 0000000000..5c58ff74e0 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/annotate_text_request_features.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.AnnotateTextRequestFeatures do + @moduledoc """ + All available features. Setting each one to true will enable that specific analysis for the input. + + ## Attributes + + * `classifyText` (*type:* `boolean()`, *default:* `nil`) - Optional. Classify the full document into categories. + * `extractDocumentSentiment` (*type:* `boolean()`, *default:* `nil`) - Optional. Extract document-level sentiment. + * `extractEntities` (*type:* `boolean()`, *default:* `nil`) - Optional. Extract entities. + * `moderateText` (*type:* `boolean()`, *default:* `nil`) - Optional. Moderate the document for harmful and sensitive categories. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :classifyText => boolean() | nil, + :extractDocumentSentiment => boolean() | nil, + :extractEntities => boolean() | nil, + :moderateText => boolean() | nil + } + + field(:classifyText) + field(:extractDocumentSentiment) + field(:extractEntities) + field(:moderateText) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.AnnotateTextRequestFeatures do + def decode(value, options) do + GoogleApi.Language.V2.Model.AnnotateTextRequestFeatures.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.AnnotateTextRequestFeatures do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/annotate_text_response.ex b/clients/language/lib/google_api/language/v2/model/annotate_text_response.ex new file mode 100644 index 0000000000..d89c2dae25 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/annotate_text_response.ex @@ -0,0 +1,67 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.AnnotateTextResponse do + @moduledoc """ + The text annotations response message. + + ## Attributes + + * `categories` (*type:* `list(GoogleApi.Language.V2.Model.ClassificationCategory.t)`, *default:* `nil`) - Categories identified in the input document. + * `documentSentiment` (*type:* `GoogleApi.Language.V2.Model.Sentiment.t`, *default:* `nil`) - The overall sentiment for the document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment. + * `entities` (*type:* `list(GoogleApi.Language.V2.Model.Entity.t)`, *default:* `nil`) - Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities or AnnotateTextRequest.Features.extract_entity_sentiment. + * `languageCode` (*type:* `String.t`, *default:* `nil`) - The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See Document.language field for more details. + * `languageSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the language is officially supported by all requested features. The API may still return a response when the language is not supported, but it is on a best effort basis. + * `moderationCategories` (*type:* `list(GoogleApi.Language.V2.Model.ClassificationCategory.t)`, *default:* `nil`) - Harmful and sensitive categories identified in the input document. + * `sentences` (*type:* `list(GoogleApi.Language.V2.Model.Sentence.t)`, *default:* `nil`) - Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :categories => list(GoogleApi.Language.V2.Model.ClassificationCategory.t()) | nil, + :documentSentiment => GoogleApi.Language.V2.Model.Sentiment.t() | nil, + :entities => list(GoogleApi.Language.V2.Model.Entity.t()) | nil, + :languageCode => String.t() | nil, + :languageSupported => boolean() | nil, + :moderationCategories => + list(GoogleApi.Language.V2.Model.ClassificationCategory.t()) | nil, + :sentences => list(GoogleApi.Language.V2.Model.Sentence.t()) | nil + } + + field(:categories, as: GoogleApi.Language.V2.Model.ClassificationCategory, type: :list) + field(:documentSentiment, as: GoogleApi.Language.V2.Model.Sentiment) + field(:entities, as: GoogleApi.Language.V2.Model.Entity, type: :list) + field(:languageCode) + field(:languageSupported) + + field(:moderationCategories, as: GoogleApi.Language.V2.Model.ClassificationCategory, type: :list) + + field(:sentences, as: GoogleApi.Language.V2.Model.Sentence, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.AnnotateTextResponse do + def decode(value, options) do + GoogleApi.Language.V2.Model.AnnotateTextResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.AnnotateTextResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/classification_category.ex b/clients/language/lib/google_api/language/v2/model/classification_category.ex new file mode 100644 index 0000000000..060c5b9ea8 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/classification_category.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.ClassificationCategory do + @moduledoc """ + Represents a category returned from the text classifier. + + ## Attributes + + * `confidence` (*type:* `number()`, *default:* `nil`) - The classifier's confidence of the category. Number represents how certain the classifier is that this category represents the given text. + * `name` (*type:* `String.t`, *default:* `nil`) - The name of the category representing the document. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :confidence => number() | nil, + :name => String.t() | nil + } + + field(:confidence) + field(:name) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.ClassificationCategory do + def decode(value, options) do + GoogleApi.Language.V2.Model.ClassificationCategory.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.ClassificationCategory do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/classify_text_request.ex b/clients/language/lib/google_api/language/v2/model/classify_text_request.ex new file mode 100644 index 0000000000..ff4ad8de0c --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/classify_text_request.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.ClassifyTextRequest do + @moduledoc """ + The document classification request message. + + ## Attributes + + * `document` (*type:* `GoogleApi.Language.V2.Model.Document.t`, *default:* `nil`) - Required. Input document. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :document => GoogleApi.Language.V2.Model.Document.t() | nil + } + + field(:document, as: GoogleApi.Language.V2.Model.Document) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.ClassifyTextRequest do + def decode(value, options) do + GoogleApi.Language.V2.Model.ClassifyTextRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.ClassifyTextRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/classify_text_response.ex b/clients/language/lib/google_api/language/v2/model/classify_text_response.ex new file mode 100644 index 0000000000..6c09bfc6f6 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/classify_text_response.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.ClassifyTextResponse do + @moduledoc """ + The document classification response message. + + ## Attributes + + * `categories` (*type:* `list(GoogleApi.Language.V2.Model.ClassificationCategory.t)`, *default:* `nil`) - Categories representing the input document. + * `languageCode` (*type:* `String.t`, *default:* `nil`) - The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See Document.language field for more details. + * `languageSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the language is officially supported. The API may still return a response when the language is not supported, but it is on a best effort basis. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :categories => list(GoogleApi.Language.V2.Model.ClassificationCategory.t()) | nil, + :languageCode => String.t() | nil, + :languageSupported => boolean() | nil + } + + field(:categories, as: GoogleApi.Language.V2.Model.ClassificationCategory, type: :list) + field(:languageCode) + field(:languageSupported) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.ClassifyTextResponse do + def decode(value, options) do + GoogleApi.Language.V2.Model.ClassifyTextResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.ClassifyTextResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/color.ex b/clients/language/lib/google_api/language/v2/model/color.ex new file mode 100644 index 0000000000..200d63334d --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/color.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.Color do + @moduledoc """ + Represents a color in the RGBA color space. This representation is designed for simplicity of conversion to and from color representations in various languages over compactness. For example, the fields of this representation can be trivially provided to the constructor of `java.awt.Color` in Java; it can also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha` method in iOS; and, with just a little work, it can be easily formatted into a CSS `rgba()` string in JavaScript. This reference page doesn't have information about the absolute color space that should be used to interpret the RGB value—for example, sRGB, Adobe RGB, DCI-P3, and BT.2020. By default, applications should assume the sRGB color space. When color equality needs to be decided, implementations, unless documented otherwise, treat two colors as equal if all their red, green, blue, and alpha values each differ by at most `1e-5`. Example (Java): import com.google.type.Color; // ... public static java.awt.Color fromProto(Color protocolor) { float alpha = protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); } public static Color toProto(java.awt.Color color) { float red = (float) color.getRed(); float green = (float) color.getGreen(); float blue = (float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) { result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .build()); } return resultBuilder.build(); } // ... Example (iOS / Obj-C): // ... static UIColor* fromProto(Color* protocolor) { float red = [protocolor red]; float green = [protocolor green]; float blue = [protocolor blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper != nil) { alpha = [alpha_wrapper value]; } return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; } static Color* toProto(UIColor* color) { CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) { return nil; } Color* result = [[Color alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <= 0.9999) { [result setAlpha:floatWrapperWithValue(alpha)]; } [result autorelease]; return result; } // ... Example (JavaScript): // ... var protoToCssColor = function(rgb_color) { var redFrac = rgb_color.red || 0.0; var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) { return rgbToCssColor(red, green, blue); } var alphaFrac = rgb_color.alpha.value || 0.0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); }; var rgbToCssColor = function(red, green, blue) { var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) { resultBuilder.push('0'); } resultBuilder.push(hexString); return resultBuilder.join(''); }; // ... + + ## Attributes + + * `alpha` (*type:* `number()`, *default:* `nil`) - The fraction of this color that should be applied to the pixel. That is, the final pixel color is defined by the equation: `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)` This means that a value of 1.0 corresponds to a solid color, whereas a value of 0.0 corresponds to a completely transparent color. This uses a wrapper message rather than a simple float scalar so that it is possible to distinguish between a default value and the value being unset. If omitted, this color object is rendered as a solid color (as if the alpha value had been explicitly given a value of 1.0). + * `blue` (*type:* `number()`, *default:* `nil`) - The amount of blue in the color as a value in the interval [0, 1]. + * `green` (*type:* `number()`, *default:* `nil`) - The amount of green in the color as a value in the interval [0, 1]. + * `red` (*type:* `number()`, *default:* `nil`) - The amount of red in the color as a value in the interval [0, 1]. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :alpha => number() | nil, + :blue => number() | nil, + :green => number() | nil, + :red => number() | nil + } + + field(:alpha) + field(:blue) + field(:green) + field(:red) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.Color do + def decode(value, options) do + GoogleApi.Language.V2.Model.Color.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.Color do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/cpu_metric.ex b/clients/language/lib/google_api/language/v2/model/cpu_metric.ex new file mode 100644 index 0000000000..b315b1bd79 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/cpu_metric.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.CpuMetric do + @moduledoc """ + Metric for billing reports. + + ## Attributes + + * `coreNumber` (*type:* `String.t`, *default:* `nil`) - Required. Number of CPU cores. + * `coreSec` (*type:* `String.t`, *default:* `nil`) - Required. Total seconds of core usage, e.g. 4. + * `cpuType` (*type:* `String.t`, *default:* `nil`) - Required. Type of cpu, e.g. N2. + * `machineSpec` (*type:* `String.t`, *default:* `nil`) - Required. Machine spec, e.g. N1_STANDARD_4. + * `trackingLabels` (*type:* `map()`, *default:* `nil`) - Billing tracking labels. They do not contain any user data but only the labels set by Vertex Core Infra itself. Tracking labels' keys are defined with special format: goog-[\\p{Ll}\\p{N}]+ E.g. "key": "goog-k8s-cluster-name","value": "us-east1-b4rk" + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :coreNumber => String.t() | nil, + :coreSec => String.t() | nil, + :cpuType => String.t() | nil, + :machineSpec => String.t() | nil, + :trackingLabels => map() | nil + } + + field(:coreNumber) + field(:coreSec) + field(:cpuType) + field(:machineSpec) + field(:trackingLabels, type: :map) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.CpuMetric do + def decode(value, options) do + GoogleApi.Language.V2.Model.CpuMetric.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.CpuMetric do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/disk_metric.ex b/clients/language/lib/google_api/language/v2/model/disk_metric.ex new file mode 100644 index 0000000000..a4cc23c82b --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/disk_metric.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.DiskMetric do + @moduledoc """ + + + ## Attributes + + * `diskType` (*type:* `String.t`, *default:* `nil`) - Required. Type of Disk, e.g. REGIONAL_SSD. + * `gibSec` (*type:* `String.t`, *default:* `nil`) - Required. Seconds of physical disk usage, e.g. 3600. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :diskType => String.t() | nil, + :gibSec => String.t() | nil + } + + field(:diskType) + field(:gibSec) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.DiskMetric do + def decode(value, options) do + GoogleApi.Language.V2.Model.DiskMetric.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.DiskMetric do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/document.ex b/clients/language/lib/google_api/language/v2/model/document.ex new file mode 100644 index 0000000000..90d1028df3 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/document.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.Document do + @moduledoc """ + Represents the input to API methods. + + ## Attributes + + * `content` (*type:* `String.t`, *default:* `nil`) - The content of the input in string format. Cloud audit logging exempt since it is based on user data. + * `gcsContentUri` (*type:* `String.t`, *default:* `nil`) - The Google Cloud Storage URI where the file content is located. This URI must be of the form: gs://bucket_name/object_name. For more details, see https://cloud.google.com/storage/docs/reference-uris. NOTE: Cloud Storage object versioning is not supported. + * `languageCode` (*type:* `String.t`, *default:* `nil`) - Optional. The language of the document (if not specified, the language is automatically detected). Both ISO and BCP-47 language codes are accepted. [Language Support](https://cloud.google.com/natural-language/docs/languages) lists currently supported languages for each API method. If the language (either specified by the caller or automatically detected) is not supported by the called API method, an `INVALID_ARGUMENT` error is returned. + * `type` (*type:* `String.t`, *default:* `nil`) - Required. If the type is not set or is `TYPE_UNSPECIFIED`, returns an `INVALID_ARGUMENT` error. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :content => String.t() | nil, + :gcsContentUri => String.t() | nil, + :languageCode => String.t() | nil, + :type => String.t() | nil + } + + field(:content) + field(:gcsContentUri) + field(:languageCode) + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.Document do + def decode(value, options) do + GoogleApi.Language.V2.Model.Document.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.Document do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/entity.ex b/clients/language/lib/google_api/language/v2/model/entity.ex new file mode 100644 index 0000000000..c14c9419a4 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/entity.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.Entity do + @moduledoc """ + Represents a phrase in the text that is a known entity, such as a person, an organization, or location. The API associates information, such as probability and mentions, with entities. + + ## Attributes + + * `mentions` (*type:* `list(GoogleApi.Language.V2.Model.EntityMention.t)`, *default:* `nil`) - The mentions of this entity in the input document. The API currently supports proper noun mentions. + * `metadata` (*type:* `map()`, *default:* `nil`) - Metadata associated with the entity. For the metadata associated with other entity types, see the Type table below. + * `name` (*type:* `String.t`, *default:* `nil`) - The representative name for the entity. + * `sentiment` (*type:* `GoogleApi.Language.V2.Model.Sentiment.t`, *default:* `nil`) - For calls to AnalyzeEntitySentiment or if AnnotateTextRequest.Features.extract_entity_sentiment is set to true, this field will contain the aggregate sentiment expressed for this entity in the provided document. + * `type` (*type:* `String.t`, *default:* `nil`) - The entity type. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :mentions => list(GoogleApi.Language.V2.Model.EntityMention.t()) | nil, + :metadata => map() | nil, + :name => String.t() | nil, + :sentiment => GoogleApi.Language.V2.Model.Sentiment.t() | nil, + :type => String.t() | nil + } + + field(:mentions, as: GoogleApi.Language.V2.Model.EntityMention, type: :list) + field(:metadata, type: :map) + field(:name) + field(:sentiment, as: GoogleApi.Language.V2.Model.Sentiment) + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.Entity do + def decode(value, options) do + GoogleApi.Language.V2.Model.Entity.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.Entity do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/entity_mention.ex b/clients/language/lib/google_api/language/v2/model/entity_mention.ex new file mode 100644 index 0000000000..56b3a799da --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/entity_mention.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.EntityMention do + @moduledoc """ + Represents a mention for an entity in the text. Currently, proper noun mentions are supported. + + ## Attributes + + * `probability` (*type:* `number()`, *default:* `nil`) - Probability score associated with the entity. The score shows the probability of the entity mention being the entity type. The score is in (0, 1] range. + * `sentiment` (*type:* `GoogleApi.Language.V2.Model.Sentiment.t`, *default:* `nil`) - For calls to AnalyzeEntitySentiment or if AnnotateTextRequest.Features.extract_entity_sentiment is set to true, this field will contain the sentiment expressed for this mention of the entity in the provided document. + * `text` (*type:* `GoogleApi.Language.V2.Model.TextSpan.t`, *default:* `nil`) - The mention text. + * `type` (*type:* `String.t`, *default:* `nil`) - The type of the entity mention. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :probability => number() | nil, + :sentiment => GoogleApi.Language.V2.Model.Sentiment.t() | nil, + :text => GoogleApi.Language.V2.Model.TextSpan.t() | nil, + :type => String.t() | nil + } + + field(:probability) + field(:sentiment, as: GoogleApi.Language.V2.Model.Sentiment) + field(:text, as: GoogleApi.Language.V2.Model.TextSpan) + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.EntityMention do + def decode(value, options) do + GoogleApi.Language.V2.Model.EntityMention.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.EntityMention do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/gpu_metric.ex b/clients/language/lib/google_api/language/v2/model/gpu_metric.ex new file mode 100644 index 0000000000..2032a3b955 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/gpu_metric.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.GpuMetric do + @moduledoc """ + + + ## Attributes + + * `gpuSec` (*type:* `String.t`, *default:* `nil`) - Required. Seconds of GPU usage, e.g. 3600. + * `gpuType` (*type:* `String.t`, *default:* `nil`) - Required. Type of GPU, e.g. NVIDIA_TESLA_V100. + * `machineSpec` (*type:* `String.t`, *default:* `nil`) - Required. Machine spec, e.g. N1_STANDARD_4. + * `trackingLabels` (*type:* `map()`, *default:* `nil`) - Billing tracking labels. They do not contain any user data but only the labels set by Vertex Core Infra itself. Tracking labels' keys are defined with special format: goog-[\\p{Ll}\\p{N}]+ E.g. "key": "goog-k8s-cluster-name","value": "us-east1-b4rk" + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :gpuSec => String.t() | nil, + :gpuType => String.t() | nil, + :machineSpec => String.t() | nil, + :trackingLabels => map() | nil + } + + field(:gpuSec) + field(:gpuType) + field(:machineSpec) + field(:trackingLabels, type: :map) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.GpuMetric do + def decode(value, options) do + GoogleApi.Language.V2.Model.GpuMetric.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.GpuMetric do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/infra_usage.ex b/clients/language/lib/google_api/language/v2/model/infra_usage.ex new file mode 100644 index 0000000000..4946ce521c --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/infra_usage.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.InfraUsage do + @moduledoc """ + Infra Usage of billing metrics. Next ID: 6 + + ## Attributes + + * `cpuMetrics` (*type:* `list(GoogleApi.Language.V2.Model.CpuMetric.t)`, *default:* `nil`) - Aggregated core metrics since requested start_time. + * `diskMetrics` (*type:* `list(GoogleApi.Language.V2.Model.DiskMetric.t)`, *default:* `nil`) - Aggregated persistent disk metrics since requested start_time. + * `gpuMetrics` (*type:* `list(GoogleApi.Language.V2.Model.GpuMetric.t)`, *default:* `nil`) - Aggregated gpu metrics since requested start_time. + * `ramMetrics` (*type:* `list(GoogleApi.Language.V2.Model.RamMetric.t)`, *default:* `nil`) - Aggregated ram metrics since requested start_time. + * `tpuMetrics` (*type:* `list(GoogleApi.Language.V2.Model.TpuMetric.t)`, *default:* `nil`) - Aggregated tpu metrics since requested start_time. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cpuMetrics => list(GoogleApi.Language.V2.Model.CpuMetric.t()) | nil, + :diskMetrics => list(GoogleApi.Language.V2.Model.DiskMetric.t()) | nil, + :gpuMetrics => list(GoogleApi.Language.V2.Model.GpuMetric.t()) | nil, + :ramMetrics => list(GoogleApi.Language.V2.Model.RamMetric.t()) | nil, + :tpuMetrics => list(GoogleApi.Language.V2.Model.TpuMetric.t()) | nil + } + + field(:cpuMetrics, as: GoogleApi.Language.V2.Model.CpuMetric, type: :list) + field(:diskMetrics, as: GoogleApi.Language.V2.Model.DiskMetric, type: :list) + field(:gpuMetrics, as: GoogleApi.Language.V2.Model.GpuMetric, type: :list) + field(:ramMetrics, as: GoogleApi.Language.V2.Model.RamMetric, type: :list) + field(:tpuMetrics, as: GoogleApi.Language.V2.Model.TpuMetric, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.InfraUsage do + def decode(value, options) do + GoogleApi.Language.V2.Model.InfraUsage.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.InfraUsage do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/moderate_text_request.ex b/clients/language/lib/google_api/language/v2/model/moderate_text_request.ex new file mode 100644 index 0000000000..ebb096a704 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/moderate_text_request.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.ModerateTextRequest do + @moduledoc """ + The document moderation request message. + + ## Attributes + + * `document` (*type:* `GoogleApi.Language.V2.Model.Document.t`, *default:* `nil`) - Required. Input document. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :document => GoogleApi.Language.V2.Model.Document.t() | nil + } + + field(:document, as: GoogleApi.Language.V2.Model.Document) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.ModerateTextRequest do + def decode(value, options) do + GoogleApi.Language.V2.Model.ModerateTextRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.ModerateTextRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/moderate_text_response.ex b/clients/language/lib/google_api/language/v2/model/moderate_text_response.ex new file mode 100644 index 0000000000..19c486fd93 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/moderate_text_response.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.ModerateTextResponse do + @moduledoc """ + The document moderation response message. + + ## Attributes + + * `languageCode` (*type:* `String.t`, *default:* `nil`) - The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See Document.language field for more details. + * `languageSupported` (*type:* `boolean()`, *default:* `nil`) - Whether the language is officially supported. The API may still return a response when the language is not supported, but it is on a best effort basis. + * `moderationCategories` (*type:* `list(GoogleApi.Language.V2.Model.ClassificationCategory.t)`, *default:* `nil`) - Harmful and sensitive categories representing the input document. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :languageCode => String.t() | nil, + :languageSupported => boolean() | nil, + :moderationCategories => + list(GoogleApi.Language.V2.Model.ClassificationCategory.t()) | nil + } + + field(:languageCode) + field(:languageSupported) + + field(:moderationCategories, as: GoogleApi.Language.V2.Model.ClassificationCategory, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.ModerateTextResponse do + def decode(value, options) do + GoogleApi.Language.V2.Model.ModerateTextResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.ModerateTextResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/ram_metric.ex b/clients/language/lib/google_api/language/v2/model/ram_metric.ex new file mode 100644 index 0000000000..4b24301b11 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/ram_metric.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.RamMetric do + @moduledoc """ + + + ## Attributes + + * `gibSec` (*type:* `String.t`, *default:* `nil`) - Required. VM memory in Gigabyte second, e.g. 3600. Using int64 type to match billing metrics definition. + * `machineSpec` (*type:* `String.t`, *default:* `nil`) - Required. Machine spec, e.g. N1_STANDARD_4. + * `memories` (*type:* `float()`, *default:* `nil`) - Required. VM memory in gb. + * `ramType` (*type:* `String.t`, *default:* `nil`) - Required. Type of ram. + * `trackingLabels` (*type:* `map()`, *default:* `nil`) - Billing tracking labels. They do not contain any user data but only the labels set by Vertex Core Infra itself. Tracking labels' keys are defined with special format: goog-[\\p{Ll}\\p{N}]+ E.g. "key": "goog-k8s-cluster-name","value": "us-east1-b4rk" + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :gibSec => String.t() | nil, + :machineSpec => String.t() | nil, + :memories => float() | nil, + :ramType => String.t() | nil, + :trackingLabels => map() | nil + } + + field(:gibSec) + field(:machineSpec) + field(:memories) + field(:ramType) + field(:trackingLabels, type: :map) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.RamMetric do + def decode(value, options) do + GoogleApi.Language.V2.Model.RamMetric.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.RamMetric do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/sentence.ex b/clients/language/lib/google_api/language/v2/model/sentence.ex new file mode 100644 index 0000000000..252ebbb498 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/sentence.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.Sentence do + @moduledoc """ + Represents a sentence in the input document. + + ## Attributes + + * `sentiment` (*type:* `GoogleApi.Language.V2.Model.Sentiment.t`, *default:* `nil`) - For calls to AnalyzeSentiment or if AnnotateTextRequest.Features.extract_document_sentiment is set to true, this field will contain the sentiment for the sentence. + * `text` (*type:* `GoogleApi.Language.V2.Model.TextSpan.t`, *default:* `nil`) - The sentence text. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :sentiment => GoogleApi.Language.V2.Model.Sentiment.t() | nil, + :text => GoogleApi.Language.V2.Model.TextSpan.t() | nil + } + + field(:sentiment, as: GoogleApi.Language.V2.Model.Sentiment) + field(:text, as: GoogleApi.Language.V2.Model.TextSpan) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.Sentence do + def decode(value, options) do + GoogleApi.Language.V2.Model.Sentence.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.Sentence do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/sentiment.ex b/clients/language/lib/google_api/language/v2/model/sentiment.ex new file mode 100644 index 0000000000..9cf09f22cd --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/sentiment.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.Sentiment do + @moduledoc """ + Represents the feeling associated with the entire text or entities in the text. + + ## Attributes + + * `magnitude` (*type:* `number()`, *default:* `nil`) - A non-negative number in the [0, +inf) range, which represents the absolute magnitude of sentiment regardless of score (positive or negative). + * `score` (*type:* `number()`, *default:* `nil`) - Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :magnitude => number() | nil, + :score => number() | nil + } + + field(:magnitude) + field(:score) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.Sentiment do + def decode(value, options) do + GoogleApi.Language.V2.Model.Sentiment.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.Sentiment do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/status.ex b/clients/language/lib/google_api/language/v2/model/status.ex new file mode 100644 index 0000000000..9a1e243ec9 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/status.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.Status do + @moduledoc """ + The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). + + ## Attributes + + * `code` (*type:* `integer()`, *default:* `nil`) - The status code, which should be an enum value of google.rpc.Code. + * `details` (*type:* `list(map())`, *default:* `nil`) - A list of messages that carry the error details. There is a common set of message types for APIs to use. + * `message` (*type:* `String.t`, *default:* `nil`) - A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :code => integer() | nil, + :details => list(map()) | nil, + :message => String.t() | nil + } + + field(:code) + field(:details, type: :list) + field(:message) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.Status do + def decode(value, options) do + GoogleApi.Language.V2.Model.Status.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.Status do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/text_span.ex b/clients/language/lib/google_api/language/v2/model/text_span.ex new file mode 100644 index 0000000000..ed94019ba1 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/text_span.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.TextSpan do + @moduledoc """ + Represents a text span in the input document. + + ## Attributes + + * `beginOffset` (*type:* `integer()`, *default:* `nil`) - The API calculates the beginning offset of the content in the original document according to the EncodingType specified in the API request. + * `content` (*type:* `String.t`, *default:* `nil`) - The content of the text span, which is a substring of the document. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :beginOffset => integer() | nil, + :content => String.t() | nil + } + + field(:beginOffset) + field(:content) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.TextSpan do + def decode(value, options) do + GoogleApi.Language.V2.Model.TextSpan.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.TextSpan do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/tpu_metric.ex b/clients/language/lib/google_api/language/v2/model/tpu_metric.ex new file mode 100644 index 0000000000..2e6ecd6ffb --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/tpu_metric.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.TpuMetric do + @moduledoc """ + + + ## Attributes + + * `tpuSec` (*type:* `String.t`, *default:* `nil`) - Required. Seconds of TPU usage, e.g. 3600. + * `tpuType` (*type:* `String.t`, *default:* `nil`) - Required. Type of TPU, e.g. TPU_V2, TPU_V3_POD. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :tpuSec => String.t() | nil, + :tpuType => String.t() | nil + } + + field(:tpuSec) + field(:tpuType) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.TpuMetric do + def decode(value, options) do + GoogleApi.Language.V2.Model.TpuMetric.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.TpuMetric do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_array_stats.ex b/clients/language/lib/google_api/language/v2/model/xps_array_stats.ex new file mode 100644 index 0000000000..a3a2eb86c7 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_array_stats.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSArrayStats do + @moduledoc """ + The data statistics of a series of ARRAY values. + + ## Attributes + + * `commonStats` (*type:* `GoogleApi.Language.V2.Model.XPSCommonStats.t`, *default:* `nil`) - + * `memberStats` (*type:* `GoogleApi.Language.V2.Model.XPSDataStats.t`, *default:* `nil`) - Stats of all the values of all arrays, as if they were a single long series of data. The type depends on the element type of the array. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :commonStats => GoogleApi.Language.V2.Model.XPSCommonStats.t() | nil, + :memberStats => GoogleApi.Language.V2.Model.XPSDataStats.t() | nil + } + + field(:commonStats, as: GoogleApi.Language.V2.Model.XPSCommonStats) + field(:memberStats, as: GoogleApi.Language.V2.Model.XPSDataStats) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSArrayStats do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSArrayStats.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSArrayStats do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_batch_predict_response.ex b/clients/language/lib/google_api/language/v2/model/xps_batch_predict_response.ex new file mode 100644 index 0000000000..329ed60d36 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_batch_predict_response.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSBatchPredictResponse do + @moduledoc """ + + + ## Attributes + + * `exampleSet` (*type:* `GoogleApi.Language.V2.Model.XPSExampleSet.t`, *default:* `nil`) - Examples for batch prediction result. Under full API implementation, results are stored in shared RecordIO of AnnotatedExample protobufs, the annotations field of which is populated by XPS backend. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :exampleSet => GoogleApi.Language.V2.Model.XPSExampleSet.t() | nil + } + + field(:exampleSet, as: GoogleApi.Language.V2.Model.XPSExampleSet) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSBatchPredictResponse do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSBatchPredictResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSBatchPredictResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_bounding_box_metrics_entry.ex b/clients/language/lib/google_api/language/v2/model/xps_bounding_box_metrics_entry.ex new file mode 100644 index 0000000000..17afbf3895 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_bounding_box_metrics_entry.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSBoundingBoxMetricsEntry do + @moduledoc """ + Bounding box matching model metrics for a single intersection-over-union threshold and multiple label match confidence thresholds. + + ## Attributes + + * `confidenceMetricsEntries` (*type:* `list(GoogleApi.Language.V2.Model.XPSBoundingBoxMetricsEntryConfidenceMetricsEntry.t)`, *default:* `nil`) - Metrics for each label-match confidence_threshold from 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. + * `iouThreshold` (*type:* `number()`, *default:* `nil`) - The intersection-over-union threshold value used to compute this metrics entry. + * `meanAveragePrecision` (*type:* `number()`, *default:* `nil`) - The mean average precision. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :confidenceMetricsEntries => + list(GoogleApi.Language.V2.Model.XPSBoundingBoxMetricsEntryConfidenceMetricsEntry.t()) + | nil, + :iouThreshold => number() | nil, + :meanAveragePrecision => number() | nil + } + + field(:confidenceMetricsEntries, + as: GoogleApi.Language.V2.Model.XPSBoundingBoxMetricsEntryConfidenceMetricsEntry, + type: :list + ) + + field(:iouThreshold) + field(:meanAveragePrecision) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSBoundingBoxMetricsEntry do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSBoundingBoxMetricsEntry.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSBoundingBoxMetricsEntry do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_bounding_box_metrics_entry_confidence_metrics_entry.ex b/clients/language/lib/google_api/language/v2/model/xps_bounding_box_metrics_entry_confidence_metrics_entry.ex new file mode 100644 index 0000000000..12f671310a --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_bounding_box_metrics_entry_confidence_metrics_entry.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSBoundingBoxMetricsEntryConfidenceMetricsEntry do + @moduledoc """ + Metrics for a single confidence threshold. + + ## Attributes + + * `confidenceThreshold` (*type:* `number()`, *default:* `nil`) - The confidence threshold value used to compute the metrics. + * `f1Score` (*type:* `number()`, *default:* `nil`) - The harmonic mean of recall and precision. + * `precision` (*type:* `number()`, *default:* `nil`) - Precision for the given confidence threshold. + * `recall` (*type:* `number()`, *default:* `nil`) - Recall for the given confidence threshold. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :confidenceThreshold => number() | nil, + :f1Score => number() | nil, + :precision => number() | nil, + :recall => number() | nil + } + + field(:confidenceThreshold) + field(:f1Score) + field(:precision) + field(:recall) +end + +defimpl Poison.Decoder, + for: GoogleApi.Language.V2.Model.XPSBoundingBoxMetricsEntryConfidenceMetricsEntry do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSBoundingBoxMetricsEntryConfidenceMetricsEntry.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Language.V2.Model.XPSBoundingBoxMetricsEntryConfidenceMetricsEntry do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_category_stats.ex b/clients/language/lib/google_api/language/v2/model/xps_category_stats.ex new file mode 100644 index 0000000000..236b2560f0 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_category_stats.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSCategoryStats do + @moduledoc """ + The data statistics of a series of CATEGORY values. + + ## Attributes + + * `commonStats` (*type:* `GoogleApi.Language.V2.Model.XPSCommonStats.t`, *default:* `nil`) - + * `topCategoryStats` (*type:* `list(GoogleApi.Language.V2.Model.XPSCategoryStatsSingleCategoryStats.t)`, *default:* `nil`) - The statistics of the top 20 CATEGORY values, ordered by CategoryStats.SingleCategoryStats.count. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :commonStats => GoogleApi.Language.V2.Model.XPSCommonStats.t() | nil, + :topCategoryStats => + list(GoogleApi.Language.V2.Model.XPSCategoryStatsSingleCategoryStats.t()) | nil + } + + field(:commonStats, as: GoogleApi.Language.V2.Model.XPSCommonStats) + + field(:topCategoryStats, + as: GoogleApi.Language.V2.Model.XPSCategoryStatsSingleCategoryStats, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSCategoryStats do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSCategoryStats.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSCategoryStats do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_category_stats_single_category_stats.ex b/clients/language/lib/google_api/language/v2/model/xps_category_stats_single_category_stats.ex new file mode 100644 index 0000000000..2ed30c245a --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_category_stats_single_category_stats.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSCategoryStatsSingleCategoryStats do + @moduledoc """ + The statistics of a single CATEGORY value. + + ## Attributes + + * `count` (*type:* `String.t`, *default:* `nil`) - The number of occurrences of this value in the series. + * `value` (*type:* `String.t`, *default:* `nil`) - The CATEGORY value. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :count => String.t() | nil, + :value => String.t() | nil + } + + field(:count) + field(:value) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSCategoryStatsSingleCategoryStats do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSCategoryStatsSingleCategoryStats.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSCategoryStatsSingleCategoryStats do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_classification_evaluation_metrics.ex b/clients/language/lib/google_api/language/v2/model/xps_classification_evaluation_metrics.ex new file mode 100644 index 0000000000..a17c541c57 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_classification_evaluation_metrics.ex @@ -0,0 +1,70 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSClassificationEvaluationMetrics do + @moduledoc """ + Model evaluation metrics for classification problems. It can be used for image and video classification. Next tag: 9. + + ## Attributes + + * `auPrc` (*type:* `number()`, *default:* `nil`) - The Area under precision recall curve metric. + * `auRoc` (*type:* `number()`, *default:* `nil`) - The Area Under Receiver Operating Characteristic curve metric. Micro-averaged for the overall evaluation. + * `baseAuPrc` (*type:* `number()`, *default:* `nil`) - The Area under precision recall curve metric based on priors. + * `confidenceMetricsEntries` (*type:* `list(GoogleApi.Language.V2.Model.XPSConfidenceMetricsEntry.t)`, *default:* `nil`) - Metrics that have confidence thresholds. Precision-recall curve can be derived from it. + * `confusionMatrix` (*type:* `GoogleApi.Language.V2.Model.XPSConfusionMatrix.t`, *default:* `nil`) - Confusion matrix of the evaluation. Only set for MULTICLASS classification problems where number of annotation specs is no more than 10. Only set for model level evaluation, not for evaluation per label. + * `evaluatedExamplesCount` (*type:* `integer()`, *default:* `nil`) - The number of examples used for model evaluation. + * `logLoss` (*type:* `number()`, *default:* `nil`) - The Log Loss metric. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :auPrc => number() | nil, + :auRoc => number() | nil, + :baseAuPrc => number() | nil, + :confidenceMetricsEntries => + list(GoogleApi.Language.V2.Model.XPSConfidenceMetricsEntry.t()) | nil, + :confusionMatrix => GoogleApi.Language.V2.Model.XPSConfusionMatrix.t() | nil, + :evaluatedExamplesCount => integer() | nil, + :logLoss => number() | nil + } + + field(:auPrc) + field(:auRoc) + field(:baseAuPrc) + + field(:confidenceMetricsEntries, + as: GoogleApi.Language.V2.Model.XPSConfidenceMetricsEntry, + type: :list + ) + + field(:confusionMatrix, as: GoogleApi.Language.V2.Model.XPSConfusionMatrix) + field(:evaluatedExamplesCount) + field(:logLoss) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSClassificationEvaluationMetrics do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSClassificationEvaluationMetrics.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSClassificationEvaluationMetrics do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_color_map.ex b/clients/language/lib/google_api/language/v2/model/xps_color_map.ex new file mode 100644 index 0000000000..1ed8b1b802 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_color_map.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSColorMap do + @moduledoc """ + Map from color to display name. Will only be used by Image Segmentation for uCAIP. + + ## Attributes + + * `annotationSpecIdToken` (*type:* `String.t`, *default:* `nil`) - Should be used during training. + * `color` (*type:* `GoogleApi.Language.V2.Model.Color.t`, *default:* `nil`) - This type is deprecated in favor of the IntColor below. This is because google.type.Color represent color has a float which semantically does not reflect discrete classes/categories concept. Moreover, to handle it well we need to have some tolerance when converting to a discretized color. As such, the recommendation is to have API surface still use google.type.Color while internally IntColor is used. + * `displayName` (*type:* `String.t`, *default:* `nil`) - Should be used during preprocessing. + * `intColor` (*type:* `GoogleApi.Language.V2.Model.XPSColorMapIntColor.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :annotationSpecIdToken => String.t() | nil, + :color => GoogleApi.Language.V2.Model.Color.t() | nil, + :displayName => String.t() | nil, + :intColor => GoogleApi.Language.V2.Model.XPSColorMapIntColor.t() | nil + } + + field(:annotationSpecIdToken) + field(:color, as: GoogleApi.Language.V2.Model.Color) + field(:displayName) + field(:intColor, as: GoogleApi.Language.V2.Model.XPSColorMapIntColor) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSColorMap do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSColorMap.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSColorMap do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_color_map_int_color.ex b/clients/language/lib/google_api/language/v2/model/xps_color_map_int_color.ex new file mode 100644 index 0000000000..505bf43c35 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_color_map_int_color.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSColorMapIntColor do + @moduledoc """ + RGB color and each channel is represented by an integer. + + ## Attributes + + * `blue` (*type:* `integer()`, *default:* `nil`) - The value should be in range of [0, 255]. + * `green` (*type:* `integer()`, *default:* `nil`) - The value should be in range of [0, 255]. + * `red` (*type:* `integer()`, *default:* `nil`) - The value should be in range of [0, 255]. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :blue => integer() | nil, + :green => integer() | nil, + :red => integer() | nil + } + + field(:blue) + field(:green) + field(:red) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSColorMapIntColor do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSColorMapIntColor.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSColorMapIntColor do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_column_spec.ex b/clients/language/lib/google_api/language/v2/model/xps_column_spec.ex new file mode 100644 index 0000000000..b098dae359 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_column_spec.ex @@ -0,0 +1,67 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSColumnSpec do + @moduledoc """ + + + ## Attributes + + * `columnId` (*type:* `integer()`, *default:* `nil`) - The unique id of the column. When Preprocess, the Tables BE will popuate the order id of the column, which reflects the order of the column inside the table, i.e. 0 means the first column in the table, N-1 means the last column. AutoML BE will persist this order id in Spanner and set the order id here when calling RefreshTablesStats and Train. Note: it's different than the column_spec_id that is generated in AutoML BE. + * `dataStats` (*type:* `GoogleApi.Language.V2.Model.XPSDataStats.t`, *default:* `nil`) - The data stats of the column. It's outputed in RefreshTablesStats and a required input for Train. + * `dataType` (*type:* `GoogleApi.Language.V2.Model.XPSDataType.t`, *default:* `nil`) - The data type of the column. It's outputed in Preprocess rpc and a required input for RefreshTablesStats and Train. + * `displayName` (*type:* `String.t`, *default:* `nil`) - The display name of the column. It's outputed in Preprocess and a required input for RefreshTablesStats and Train. + * `forecastingMetadata` (*type:* `GoogleApi.Language.V2.Model.XPSColumnSpecForecastingMetadata.t`, *default:* `nil`) - + * `topCorrelatedColumns` (*type:* `list(GoogleApi.Language.V2.Model.XPSColumnSpecCorrelatedColumn.t)`, *default:* `nil`) - It's outputed in RefreshTablesStats, and a required input in Train. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :columnId => integer() | nil, + :dataStats => GoogleApi.Language.V2.Model.XPSDataStats.t() | nil, + :dataType => GoogleApi.Language.V2.Model.XPSDataType.t() | nil, + :displayName => String.t() | nil, + :forecastingMetadata => + GoogleApi.Language.V2.Model.XPSColumnSpecForecastingMetadata.t() | nil, + :topCorrelatedColumns => + list(GoogleApi.Language.V2.Model.XPSColumnSpecCorrelatedColumn.t()) | nil + } + + field(:columnId) + field(:dataStats, as: GoogleApi.Language.V2.Model.XPSDataStats) + field(:dataType, as: GoogleApi.Language.V2.Model.XPSDataType) + field(:displayName) + field(:forecastingMetadata, as: GoogleApi.Language.V2.Model.XPSColumnSpecForecastingMetadata) + + field(:topCorrelatedColumns, + as: GoogleApi.Language.V2.Model.XPSColumnSpecCorrelatedColumn, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSColumnSpec do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSColumnSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSColumnSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_column_spec_correlated_column.ex b/clients/language/lib/google_api/language/v2/model/xps_column_spec_correlated_column.ex new file mode 100644 index 0000000000..8cdff166c6 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_column_spec_correlated_column.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSColumnSpecCorrelatedColumn do + @moduledoc """ + Identifies a table's column, and its correlation with the column this ColumnSpec describes. + + ## Attributes + + * `columnId` (*type:* `integer()`, *default:* `nil`) - + * `correlationStats` (*type:* `GoogleApi.Language.V2.Model.XPSCorrelationStats.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :columnId => integer() | nil, + :correlationStats => GoogleApi.Language.V2.Model.XPSCorrelationStats.t() | nil + } + + field(:columnId) + field(:correlationStats, as: GoogleApi.Language.V2.Model.XPSCorrelationStats) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSColumnSpecCorrelatedColumn do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSColumnSpecCorrelatedColumn.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSColumnSpecCorrelatedColumn do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_column_spec_forecasting_metadata.ex b/clients/language/lib/google_api/language/v2/model/xps_column_spec_forecasting_metadata.ex new file mode 100644 index 0000000000..c87cad6fb2 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_column_spec_forecasting_metadata.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSColumnSpecForecastingMetadata do + @moduledoc """ + =========================================================================== # The fields below are used exclusively for Forecasting. + + ## Attributes + + * `columnType` (*type:* `String.t`, *default:* `nil`) - The type of the column for FORECASTING model training purposes. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :columnType => String.t() | nil + } + + field(:columnType) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSColumnSpecForecastingMetadata do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSColumnSpecForecastingMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSColumnSpecForecastingMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_common_stats.ex b/clients/language/lib/google_api/language/v2/model/xps_common_stats.ex new file mode 100644 index 0000000000..7665c0d261 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_common_stats.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSCommonStats do + @moduledoc """ + Common statistics for a column with a specified data type. + + ## Attributes + + * `distinctValueCount` (*type:* `String.t`, *default:* `nil`) - + * `nullValueCount` (*type:* `String.t`, *default:* `nil`) - + * `validValueCount` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :distinctValueCount => String.t() | nil, + :nullValueCount => String.t() | nil, + :validValueCount => String.t() | nil + } + + field(:distinctValueCount) + field(:nullValueCount) + field(:validValueCount) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSCommonStats do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSCommonStats.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSCommonStats do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_confidence_metrics_entry.ex b/clients/language/lib/google_api/language/v2/model/xps_confidence_metrics_entry.ex new file mode 100644 index 0000000000..228df6deae --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_confidence_metrics_entry.ex @@ -0,0 +1,85 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSConfidenceMetricsEntry do + @moduledoc """ + ConfidenceMetricsEntry includes generic precision, recall, f1 score etc. Next tag: 16. + + ## Attributes + + * `confidenceThreshold` (*type:* `number()`, *default:* `nil`) - Metrics are computed with an assumption that the model never return predictions with score lower than this value. + * `f1Score` (*type:* `number()`, *default:* `nil`) - The harmonic mean of recall and precision. + * `f1ScoreAt1` (*type:* `number()`, *default:* `nil`) - The harmonic mean of recall_at1 and precision_at1. + * `falseNegativeCount` (*type:* `String.t`, *default:* `nil`) - The number of ground truth labels that are not matched by a model created label. + * `falsePositiveCount` (*type:* `String.t`, *default:* `nil`) - The number of model created labels that do not match a ground truth label. + * `falsePositiveRate` (*type:* `number()`, *default:* `nil`) - False Positive Rate for the given confidence threshold. + * `falsePositiveRateAt1` (*type:* `number()`, *default:* `nil`) - The False Positive Rate when only considering the label that has the highest prediction score and not below the confidence threshold for each example. + * `positionThreshold` (*type:* `integer()`, *default:* `nil`) - Metrics are computed with an assumption that the model always returns at most this many predictions (ordered by their score, descendingly), but they all still need to meet the confidence_threshold. + * `precision` (*type:* `number()`, *default:* `nil`) - Precision for the given confidence threshold. + * `precisionAt1` (*type:* `number()`, *default:* `nil`) - The precision when only considering the label that has the highest prediction score and not below the confidence threshold for each example. + * `recall` (*type:* `number()`, *default:* `nil`) - Recall (true positive rate) for the given confidence threshold. + * `recallAt1` (*type:* `number()`, *default:* `nil`) - The recall (true positive rate) when only considering the label that has the highest prediction score and not below the confidence threshold for each example. + * `trueNegativeCount` (*type:* `String.t`, *default:* `nil`) - The number of labels that were not created by the model, but if they would, they would not match a ground truth label. + * `truePositiveCount` (*type:* `String.t`, *default:* `nil`) - The number of model created labels that match a ground truth label. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :confidenceThreshold => number() | nil, + :f1Score => number() | nil, + :f1ScoreAt1 => number() | nil, + :falseNegativeCount => String.t() | nil, + :falsePositiveCount => String.t() | nil, + :falsePositiveRate => number() | nil, + :falsePositiveRateAt1 => number() | nil, + :positionThreshold => integer() | nil, + :precision => number() | nil, + :precisionAt1 => number() | nil, + :recall => number() | nil, + :recallAt1 => number() | nil, + :trueNegativeCount => String.t() | nil, + :truePositiveCount => String.t() | nil + } + + field(:confidenceThreshold) + field(:f1Score) + field(:f1ScoreAt1) + field(:falseNegativeCount) + field(:falsePositiveCount) + field(:falsePositiveRate) + field(:falsePositiveRateAt1) + field(:positionThreshold) + field(:precision) + field(:precisionAt1) + field(:recall) + field(:recallAt1) + field(:trueNegativeCount) + field(:truePositiveCount) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSConfidenceMetricsEntry do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSConfidenceMetricsEntry.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSConfidenceMetricsEntry do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_confusion_matrix.ex b/clients/language/lib/google_api/language/v2/model/xps_confusion_matrix.ex new file mode 100644 index 0000000000..b1bde4c987 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_confusion_matrix.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSConfusionMatrix do + @moduledoc """ + Confusion matrix of the model running the classification. + + ## Attributes + + * `annotationSpecIdToken` (*type:* `list(String.t)`, *default:* `nil`) - For the following three repeated fields, only one is intended to be set. annotation_spec_id_token is preferable to be set. ID tokens of the annotation specs used in the confusion matrix. + * `category` (*type:* `list(integer())`, *default:* `nil`) - Category (mainly for segmentation). Set only for image segmentation models. Note: uCAIP Image Segmentation should use annotation_spec_id_token. + * `row` (*type:* `list(GoogleApi.Language.V2.Model.XPSConfusionMatrixRow.t)`, *default:* `nil`) - Rows in the confusion matrix. The number of rows is equal to the size of `annotation_spec_id_token`. `row[i].value[j]` is the number of examples that have ground truth of the `annotation_spec_id_token[i]` and are predicted as `annotation_spec_id_token[j]` by the model being evaluated. + * `sentimentLabel` (*type:* `list(integer())`, *default:* `nil`) - Sentiment labels used in the confusion matrix. Set only for text sentiment models. For AutoML Text Revamp, use `annotation_spec_id_token` instead and leave this field empty. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :annotationSpecIdToken => list(String.t()) | nil, + :category => list(integer()) | nil, + :row => list(GoogleApi.Language.V2.Model.XPSConfusionMatrixRow.t()) | nil, + :sentimentLabel => list(integer()) | nil + } + + field(:annotationSpecIdToken, type: :list) + field(:category, type: :list) + field(:row, as: GoogleApi.Language.V2.Model.XPSConfusionMatrixRow, type: :list) + field(:sentimentLabel, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSConfusionMatrix do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSConfusionMatrix.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSConfusionMatrix do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_confusion_matrix_row.ex b/clients/language/lib/google_api/language/v2/model/xps_confusion_matrix_row.ex new file mode 100644 index 0000000000..95397001ac --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_confusion_matrix_row.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSConfusionMatrixRow do + @moduledoc """ + A row in the confusion matrix. + + ## Attributes + + * `count` (*type:* `list(String.t)`, *default:* `nil`) - Same as above except intended to represent other counts (for e.g. for segmentation this is pixel count). NOTE(params): Only example_count or count is set (oneoff does not support repeated fields unless they are embedded inside another message). + * `exampleCount` (*type:* `list(integer())`, *default:* `nil`) - Value of the specific cell in the confusion matrix. The number of values each row has (i.e. the length of the row) is equal to the length of the annotation_spec_id_token field. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :count => list(String.t()) | nil, + :exampleCount => list(integer()) | nil + } + + field(:count, type: :list) + field(:exampleCount, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSConfusionMatrixRow do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSConfusionMatrixRow.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSConfusionMatrixRow do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_core_ml_format.ex b/clients/language/lib/google_api/language/v2/model/xps_core_ml_format.ex new file mode 100644 index 0000000000..19ddd97379 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_core_ml_format.ex @@ -0,0 +1,41 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSCoreMlFormat do + @moduledoc """ + A model format used for iOS mobile devices. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSCoreMlFormat do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSCoreMlFormat.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSCoreMlFormat do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_correlation_stats.ex b/clients/language/lib/google_api/language/v2/model/xps_correlation_stats.ex new file mode 100644 index 0000000000..ce1cdd70b4 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_correlation_stats.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSCorrelationStats do + @moduledoc """ + A correlation statistics between two series of DataType values. The series may have differing DataType-s, but within a single series the DataType must be the same. + + ## Attributes + + * `cramersV` (*type:* `float()`, *default:* `nil`) - The correlation value using the Cramer's V measure. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cramersV => float() | nil + } + + field(:cramersV) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSCorrelationStats do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSCorrelationStats.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSCorrelationStats do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_data_errors.ex b/clients/language/lib/google_api/language/v2/model/xps_data_errors.ex new file mode 100644 index 0000000000..88fee8653a --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_data_errors.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSDataErrors do + @moduledoc """ + Different types of errors and the stats associatesd with each error. + + ## Attributes + + * `count` (*type:* `integer()`, *default:* `nil`) - Number of records having errors associated with the enum. + * `errorType` (*type:* `String.t`, *default:* `nil`) - Type of the error. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :count => integer() | nil, + :errorType => String.t() | nil + } + + field(:count) + field(:errorType) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSDataErrors do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSDataErrors.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSDataErrors do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_data_stats.ex b/clients/language/lib/google_api/language/v2/model/xps_data_stats.ex new file mode 100644 index 0000000000..67cdf9622b --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_data_stats.ex @@ -0,0 +1,70 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSDataStats do + @moduledoc """ + The data statistics of a series of values that share the same DataType. + + ## Attributes + + * `arrayStats` (*type:* `GoogleApi.Language.V2.Model.XPSArrayStats.t`, *default:* `nil`) - The statistics for ARRAY DataType. + * `categoryStats` (*type:* `GoogleApi.Language.V2.Model.XPSCategoryStats.t`, *default:* `nil`) - The statistics for CATEGORY DataType. + * `distinctValueCount` (*type:* `String.t`, *default:* `nil`) - The number of distinct values. + * `float64Stats` (*type:* `GoogleApi.Language.V2.Model.XPSFloat64Stats.t`, *default:* `nil`) - The statistics for FLOAT64 DataType. + * `nullValueCount` (*type:* `String.t`, *default:* `nil`) - The number of values that are null. + * `stringStats` (*type:* `GoogleApi.Language.V2.Model.XPSStringStats.t`, *default:* `nil`) - The statistics for STRING DataType. + * `structStats` (*type:* `GoogleApi.Language.V2.Model.XPSStructStats.t`, *default:* `nil`) - The statistics for STRUCT DataType. + * `timestampStats` (*type:* `GoogleApi.Language.V2.Model.XPSTimestampStats.t`, *default:* `nil`) - The statistics for TIMESTAMP DataType. + * `validValueCount` (*type:* `String.t`, *default:* `nil`) - The number of values that are valid. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :arrayStats => GoogleApi.Language.V2.Model.XPSArrayStats.t() | nil, + :categoryStats => GoogleApi.Language.V2.Model.XPSCategoryStats.t() | nil, + :distinctValueCount => String.t() | nil, + :float64Stats => GoogleApi.Language.V2.Model.XPSFloat64Stats.t() | nil, + :nullValueCount => String.t() | nil, + :stringStats => GoogleApi.Language.V2.Model.XPSStringStats.t() | nil, + :structStats => GoogleApi.Language.V2.Model.XPSStructStats.t() | nil, + :timestampStats => GoogleApi.Language.V2.Model.XPSTimestampStats.t() | nil, + :validValueCount => String.t() | nil + } + + field(:arrayStats, as: GoogleApi.Language.V2.Model.XPSArrayStats) + field(:categoryStats, as: GoogleApi.Language.V2.Model.XPSCategoryStats) + field(:distinctValueCount) + field(:float64Stats, as: GoogleApi.Language.V2.Model.XPSFloat64Stats) + field(:nullValueCount) + field(:stringStats, as: GoogleApi.Language.V2.Model.XPSStringStats) + field(:structStats, as: GoogleApi.Language.V2.Model.XPSStructStats) + field(:timestampStats, as: GoogleApi.Language.V2.Model.XPSTimestampStats) + field(:validValueCount) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSDataStats do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSDataStats.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSDataStats do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_data_type.ex b/clients/language/lib/google_api/language/v2/model/xps_data_type.ex new file mode 100644 index 0000000000..576da6d0f9 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_data_type.ex @@ -0,0 +1,61 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSDataType do + @moduledoc """ + Indicated the type of data that can be stored in a structured data entity (e.g. a table). + + ## Attributes + + * `compatibleDataTypes` (*type:* `list(GoogleApi.Language.V2.Model.XPSDataType.t)`, *default:* `nil`) - The highly compatible data types to this data type. + * `listElementType` (*type:* `GoogleApi.Language.V2.Model.XPSDataType.t`, *default:* `nil`) - If type_code == ARRAY, then `list_element_type` is the type of the elements. + * `nullable` (*type:* `boolean()`, *default:* `nil`) - If true, this DataType can also be `null`. + * `structType` (*type:* `GoogleApi.Language.V2.Model.XPSStructType.t`, *default:* `nil`) - If type_code == STRUCT, then `struct_type` provides type information for the struct's fields. + * `timeFormat` (*type:* `String.t`, *default:* `nil`) - If type_code == TIMESTAMP then `time_format` provides the format in which that time field is expressed. The time_format must be written in `strftime` syntax. If time_format is not set, then the default format as described on the field is used. + * `typeCode` (*type:* `String.t`, *default:* `nil`) - Required. The TypeCode for this type. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :compatibleDataTypes => list(GoogleApi.Language.V2.Model.XPSDataType.t()) | nil, + :listElementType => GoogleApi.Language.V2.Model.XPSDataType.t() | nil, + :nullable => boolean() | nil, + :structType => GoogleApi.Language.V2.Model.XPSStructType.t() | nil, + :timeFormat => String.t() | nil, + :typeCode => String.t() | nil + } + + field(:compatibleDataTypes, as: GoogleApi.Language.V2.Model.XPSDataType, type: :list) + field(:listElementType, as: GoogleApi.Language.V2.Model.XPSDataType) + field(:nullable) + field(:structType, as: GoogleApi.Language.V2.Model.XPSStructType) + field(:timeFormat) + field(:typeCode) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSDataType do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSDataType.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSDataType do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_docker_format.ex b/clients/language/lib/google_api/language/v2/model/xps_docker_format.ex new file mode 100644 index 0000000000..24a2cd78c2 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_docker_format.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSDockerFormat do + @moduledoc """ + A model format used for Docker containers. Use the params field to customize the container. The container is verified to work correctly on ubuntu 16.04 operating system. + + ## Attributes + + * `cpuArchitecture` (*type:* `String.t`, *default:* `nil`) - Optional. Additional cpu information describing the requirements for the to be exported model files. + * `gpuArchitecture` (*type:* `String.t`, *default:* `nil`) - Optional. Additional gpu information describing the requirements for the to be exported model files. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cpuArchitecture => String.t() | nil, + :gpuArchitecture => String.t() | nil + } + + field(:cpuArchitecture) + field(:gpuArchitecture) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSDockerFormat do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSDockerFormat.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSDockerFormat do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_edge_tpu_tf_lite_format.ex b/clients/language/lib/google_api/language/v2/model/xps_edge_tpu_tf_lite_format.ex new file mode 100644 index 0000000000..a39246cd37 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_edge_tpu_tf_lite_format.ex @@ -0,0 +1,41 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSEdgeTpuTfLiteFormat do + @moduledoc """ + A model format used for [Edge TPU](https://cloud.google.com/edge-tpu/) devices. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSEdgeTpuTfLiteFormat do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSEdgeTpuTfLiteFormat.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSEdgeTpuTfLiteFormat do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_evaluation_metrics.ex b/clients/language/lib/google_api/language/v2/model/xps_evaluation_metrics.ex new file mode 100644 index 0000000000..fa4f476e1a --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_evaluation_metrics.ex @@ -0,0 +1,139 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSEvaluationMetrics do + @moduledoc """ + Contains xPS-specific model evaluation metrics either for a single annotation spec (label), or for the model overall. Next tag: 18. + + ## Attributes + + * `annotationSpecIdToken` (*type:* `String.t`, *default:* `nil`) - The annotation_spec for which this evaluation metrics instance had been created. Empty iff this is an overall model evaluation (like Tables evaluation metrics), i.e. aggregated across all labels. The value comes from the input annotations in AnnotatedExample. For MVP product or for text sentiment models where annotation_spec_id_token is not available, set label instead. + * `category` (*type:* `integer()`, *default:* `nil`) - The integer category label for which this evaluation metric instance had been created. Valid categories are 0 or higher. Overall model evaluation should set this to negative values (rather than implicit zero). Only used for Image Segmentation (prefer to set annotation_spec_id_token instead). Note: uCAIP Image Segmentation should use annotation_spec_id_token. + * `evaluatedExampleCount` (*type:* `integer()`, *default:* `nil`) - The number of examples used to create this evaluation metrics instance. + * `imageClassificationEvalMetrics` (*type:* `GoogleApi.Language.V2.Model.XPSClassificationEvaluationMetrics.t`, *default:* `nil`) - + * `imageObjectDetectionEvalMetrics` (*type:* `GoogleApi.Language.V2.Model.XPSImageObjectDetectionEvaluationMetrics.t`, *default:* `nil`) - + * `imageSegmentationEvalMetrics` (*type:* `GoogleApi.Language.V2.Model.XPSImageSegmentationEvaluationMetrics.t`, *default:* `nil`) - + * `label` (*type:* `String.t`, *default:* `nil`) - The label for which this evaluation metrics instance had been created. Empty iff this is an overall model evaluation (like Tables evaluation metrics), i.e. aggregated across all labels. The label maps to AnnotationSpec.display_name in Public API protos. Only used by MVP implementation and text sentiment FULL implementation. + * `regressionEvalMetrics` (*type:* `GoogleApi.Language.V2.Model.XPSRegressionEvaluationMetrics.t`, *default:* `nil`) - + * `tablesClassificationEvalMetrics` (*type:* `GoogleApi.Language.V2.Model.XPSClassificationEvaluationMetrics.t`, *default:* `nil`) - + * `tablesEvalMetrics` (*type:* `GoogleApi.Language.V2.Model.XPSTablesEvaluationMetrics.t`, *default:* `nil`) - + * `textClassificationEvalMetrics` (*type:* `GoogleApi.Language.V2.Model.XPSClassificationEvaluationMetrics.t`, *default:* `nil`) - + * `textExtractionEvalMetrics` (*type:* `GoogleApi.Language.V2.Model.XPSTextExtractionEvaluationMetrics.t`, *default:* `nil`) - + * `textSentimentEvalMetrics` (*type:* `GoogleApi.Language.V2.Model.XPSTextSentimentEvaluationMetrics.t`, *default:* `nil`) - + * `translationEvalMetrics` (*type:* `GoogleApi.Language.V2.Model.XPSTranslationEvaluationMetrics.t`, *default:* `nil`) - + * `videoActionRecognitionEvalMetrics` (*type:* `GoogleApi.Language.V2.Model.XPSVideoActionRecognitionEvaluationMetrics.t`, *default:* `nil`) - + * `videoClassificationEvalMetrics` (*type:* `GoogleApi.Language.V2.Model.XPSClassificationEvaluationMetrics.t`, *default:* `nil`) - + * `videoObjectTrackingEvalMetrics` (*type:* `GoogleApi.Language.V2.Model.XPSVideoObjectTrackingEvaluationMetrics.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :annotationSpecIdToken => String.t() | nil, + :category => integer() | nil, + :evaluatedExampleCount => integer() | nil, + :imageClassificationEvalMetrics => + GoogleApi.Language.V2.Model.XPSClassificationEvaluationMetrics.t() | nil, + :imageObjectDetectionEvalMetrics => + GoogleApi.Language.V2.Model.XPSImageObjectDetectionEvaluationMetrics.t() | nil, + :imageSegmentationEvalMetrics => + GoogleApi.Language.V2.Model.XPSImageSegmentationEvaluationMetrics.t() | nil, + :label => String.t() | nil, + :regressionEvalMetrics => + GoogleApi.Language.V2.Model.XPSRegressionEvaluationMetrics.t() | nil, + :tablesClassificationEvalMetrics => + GoogleApi.Language.V2.Model.XPSClassificationEvaluationMetrics.t() | nil, + :tablesEvalMetrics => GoogleApi.Language.V2.Model.XPSTablesEvaluationMetrics.t() | nil, + :textClassificationEvalMetrics => + GoogleApi.Language.V2.Model.XPSClassificationEvaluationMetrics.t() | nil, + :textExtractionEvalMetrics => + GoogleApi.Language.V2.Model.XPSTextExtractionEvaluationMetrics.t() | nil, + :textSentimentEvalMetrics => + GoogleApi.Language.V2.Model.XPSTextSentimentEvaluationMetrics.t() | nil, + :translationEvalMetrics => + GoogleApi.Language.V2.Model.XPSTranslationEvaluationMetrics.t() | nil, + :videoActionRecognitionEvalMetrics => + GoogleApi.Language.V2.Model.XPSVideoActionRecognitionEvaluationMetrics.t() | nil, + :videoClassificationEvalMetrics => + GoogleApi.Language.V2.Model.XPSClassificationEvaluationMetrics.t() | nil, + :videoObjectTrackingEvalMetrics => + GoogleApi.Language.V2.Model.XPSVideoObjectTrackingEvaluationMetrics.t() | nil + } + + field(:annotationSpecIdToken) + field(:category) + field(:evaluatedExampleCount) + + field(:imageClassificationEvalMetrics, + as: GoogleApi.Language.V2.Model.XPSClassificationEvaluationMetrics + ) + + field(:imageObjectDetectionEvalMetrics, + as: GoogleApi.Language.V2.Model.XPSImageObjectDetectionEvaluationMetrics + ) + + field(:imageSegmentationEvalMetrics, + as: GoogleApi.Language.V2.Model.XPSImageSegmentationEvaluationMetrics + ) + + field(:label) + field(:regressionEvalMetrics, as: GoogleApi.Language.V2.Model.XPSRegressionEvaluationMetrics) + + field(:tablesClassificationEvalMetrics, + as: GoogleApi.Language.V2.Model.XPSClassificationEvaluationMetrics + ) + + field(:tablesEvalMetrics, as: GoogleApi.Language.V2.Model.XPSTablesEvaluationMetrics) + + field(:textClassificationEvalMetrics, + as: GoogleApi.Language.V2.Model.XPSClassificationEvaluationMetrics + ) + + field(:textExtractionEvalMetrics, + as: GoogleApi.Language.V2.Model.XPSTextExtractionEvaluationMetrics + ) + + field(:textSentimentEvalMetrics, + as: GoogleApi.Language.V2.Model.XPSTextSentimentEvaluationMetrics + ) + + field(:translationEvalMetrics, as: GoogleApi.Language.V2.Model.XPSTranslationEvaluationMetrics) + + field(:videoActionRecognitionEvalMetrics, + as: GoogleApi.Language.V2.Model.XPSVideoActionRecognitionEvaluationMetrics + ) + + field(:videoClassificationEvalMetrics, + as: GoogleApi.Language.V2.Model.XPSClassificationEvaluationMetrics + ) + + field(:videoObjectTrackingEvalMetrics, + as: GoogleApi.Language.V2.Model.XPSVideoObjectTrackingEvaluationMetrics + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSEvaluationMetrics do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSEvaluationMetrics.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSEvaluationMetrics do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_evaluation_metrics_set.ex b/clients/language/lib/google_api/language/v2/model/xps_evaluation_metrics_set.ex new file mode 100644 index 0000000000..794fb44538 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_evaluation_metrics_set.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSEvaluationMetricsSet do + @moduledoc """ + Specifies location of model evaluation metrics. + + ## Attributes + + * `evaluationMetrics` (*type:* `list(GoogleApi.Language.V2.Model.XPSEvaluationMetrics.t)`, *default:* `nil`) - Inline EvaluationMetrics - should be relatively small. For passing large quantities of exhaustive metrics, use file_spec. + * `fileSpec` (*type:* `GoogleApi.Language.V2.Model.XPSFileSpec.t`, *default:* `nil`) - File spec containing evaluation metrics of a model, must point to RecordIO file(s) of intelligence.cloud.automl.xps.EvaluationMetrics messages. + * `numEvaluationMetrics` (*type:* `String.t`, *default:* `nil`) - Number of the evaluation metrics (usually one per label plus overall). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :evaluationMetrics => list(GoogleApi.Language.V2.Model.XPSEvaluationMetrics.t()) | nil, + :fileSpec => GoogleApi.Language.V2.Model.XPSFileSpec.t() | nil, + :numEvaluationMetrics => String.t() | nil + } + + field(:evaluationMetrics, as: GoogleApi.Language.V2.Model.XPSEvaluationMetrics, type: :list) + field(:fileSpec, as: GoogleApi.Language.V2.Model.XPSFileSpec) + field(:numEvaluationMetrics) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSEvaluationMetricsSet do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSEvaluationMetricsSet.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSEvaluationMetricsSet do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_example_set.ex b/clients/language/lib/google_api/language/v2/model/xps_example_set.ex new file mode 100644 index 0000000000..be4b99431e --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_example_set.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSExampleSet do + @moduledoc """ + Set of examples or input sources. + + ## Attributes + + * `fileSpec` (*type:* `GoogleApi.Language.V2.Model.XPSFileSpec.t`, *default:* `nil`) - File spec of the examples or input sources. + * `fingerprint` (*type:* `String.t`, *default:* `nil`) - Fingerprint of the example set. + * `numExamples` (*type:* `String.t`, *default:* `nil`) - Number of examples. + * `numInputSources` (*type:* `String.t`, *default:* `nil`) - Number of input sources. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fileSpec => GoogleApi.Language.V2.Model.XPSFileSpec.t() | nil, + :fingerprint => String.t() | nil, + :numExamples => String.t() | nil, + :numInputSources => String.t() | nil + } + + field(:fileSpec, as: GoogleApi.Language.V2.Model.XPSFileSpec) + field(:fingerprint) + field(:numExamples) + field(:numInputSources) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSExampleSet do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSExampleSet.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSExampleSet do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_export_model_output_config.ex b/clients/language/lib/google_api/language/v2/model/xps_export_model_output_config.ex new file mode 100644 index 0000000000..5036a3e56b --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_export_model_output_config.ex @@ -0,0 +1,70 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSExportModelOutputConfig do + @moduledoc """ + + + ## Attributes + + * `coreMlFormat` (*type:* `GoogleApi.Language.V2.Model.XPSCoreMlFormat.t`, *default:* `nil`) - + * `dockerFormat` (*type:* `GoogleApi.Language.V2.Model.XPSDockerFormat.t`, *default:* `nil`) - + * `edgeTpuTfLiteFormat` (*type:* `GoogleApi.Language.V2.Model.XPSEdgeTpuTfLiteFormat.t`, *default:* `nil`) - + * `exportFirebaseAuxiliaryInfo` (*type:* `boolean()`, *default:* `nil`) - For any model and format: If true, will additionally export FirebaseExportedModelInfo in a firebase.txt file. + * `outputGcrUri` (*type:* `String.t`, *default:* `nil`) - The Google Contained Registry (GCR) path the exported files to be pushed to. This location is set if the exported format is DOCKDER. + * `outputGcsUri` (*type:* `String.t`, *default:* `nil`) - The Google Cloud Storage (GCS) directory where XPS will output the exported models and related files. Format: gs://bucket/directory + * `tfJsFormat` (*type:* `GoogleApi.Language.V2.Model.XPSTfJsFormat.t`, *default:* `nil`) - + * `tfLiteFormat` (*type:* `GoogleApi.Language.V2.Model.XPSTfLiteFormat.t`, *default:* `nil`) - + * `tfSavedModelFormat` (*type:* `GoogleApi.Language.V2.Model.XPSTfSavedModelFormat.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :coreMlFormat => GoogleApi.Language.V2.Model.XPSCoreMlFormat.t() | nil, + :dockerFormat => GoogleApi.Language.V2.Model.XPSDockerFormat.t() | nil, + :edgeTpuTfLiteFormat => GoogleApi.Language.V2.Model.XPSEdgeTpuTfLiteFormat.t() | nil, + :exportFirebaseAuxiliaryInfo => boolean() | nil, + :outputGcrUri => String.t() | nil, + :outputGcsUri => String.t() | nil, + :tfJsFormat => GoogleApi.Language.V2.Model.XPSTfJsFormat.t() | nil, + :tfLiteFormat => GoogleApi.Language.V2.Model.XPSTfLiteFormat.t() | nil, + :tfSavedModelFormat => GoogleApi.Language.V2.Model.XPSTfSavedModelFormat.t() | nil + } + + field(:coreMlFormat, as: GoogleApi.Language.V2.Model.XPSCoreMlFormat) + field(:dockerFormat, as: GoogleApi.Language.V2.Model.XPSDockerFormat) + field(:edgeTpuTfLiteFormat, as: GoogleApi.Language.V2.Model.XPSEdgeTpuTfLiteFormat) + field(:exportFirebaseAuxiliaryInfo) + field(:outputGcrUri) + field(:outputGcsUri) + field(:tfJsFormat, as: GoogleApi.Language.V2.Model.XPSTfJsFormat) + field(:tfLiteFormat, as: GoogleApi.Language.V2.Model.XPSTfLiteFormat) + field(:tfSavedModelFormat, as: GoogleApi.Language.V2.Model.XPSTfSavedModelFormat) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSExportModelOutputConfig do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSExportModelOutputConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSExportModelOutputConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_file_spec.ex b/clients/language/lib/google_api/language/v2/model/xps_file_spec.ex new file mode 100644 index 0000000000..08e598f58d --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_file_spec.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSFileSpec do + @moduledoc """ + Spec of input and output files, on external file systems (CNS, GCS, etc). + + ## Attributes + + * `directoryPath` (*type:* `String.t`, *default:* `nil`) - Deprecated. Use file_spec. + * `fileFormat` (*type:* `String.t`, *default:* `nil`) - + * `fileSpec` (*type:* `String.t`, *default:* `nil`) - Single file path, or file pattern of format "/path/to/file@shard_count". E.g. /cns/cell-d/somewhere/file@2 is expanded to two files: /cns/cell-d/somewhere/file-00000-of-00002 and /cns/cell-d/somewhere/file-00001-of-00002. + * `singleFilePath` (*type:* `String.t`, *default:* `nil`) - Deprecated. Use file_spec. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :directoryPath => String.t() | nil, + :fileFormat => String.t() | nil, + :fileSpec => String.t() | nil, + :singleFilePath => String.t() | nil + } + + field(:directoryPath) + field(:fileFormat) + field(:fileSpec) + field(:singleFilePath) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSFileSpec do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSFileSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSFileSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_float64_stats.ex b/clients/language/lib/google_api/language/v2/model/xps_float64_stats.ex new file mode 100644 index 0000000000..619d06a52c --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_float64_stats.ex @@ -0,0 +1,64 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSFloat64Stats do + @moduledoc """ + The data statistics of a series of FLOAT64 values. + + ## Attributes + + * `commonStats` (*type:* `GoogleApi.Language.V2.Model.XPSCommonStats.t`, *default:* `nil`) - + * `histogramBuckets` (*type:* `list(GoogleApi.Language.V2.Model.XPSFloat64StatsHistogramBucket.t)`, *default:* `nil`) - Histogram buckets of the data series. Sorted by the min value of the bucket, ascendingly, and the number of the buckets is dynamically generated. The buckets are non-overlapping and completely cover whole FLOAT64 range with min of first bucket being `"-Infinity"`, and max of the last one being `"Infinity"`. + * `mean` (*type:* `float()`, *default:* `nil`) - The mean of the series. + * `quantiles` (*type:* `list(float())`, *default:* `nil`) - Ordered from 0 to k k-quantile values of the data series of n values. The value at index i is, approximately, the i*n/k-th smallest value in the series; for i = 0 and i = k these are, respectively, the min and max values. + * `standardDeviation` (*type:* `float()`, *default:* `nil`) - The standard deviation of the series. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :commonStats => GoogleApi.Language.V2.Model.XPSCommonStats.t() | nil, + :histogramBuckets => + list(GoogleApi.Language.V2.Model.XPSFloat64StatsHistogramBucket.t()) | nil, + :mean => float() | nil, + :quantiles => list(float()) | nil, + :standardDeviation => float() | nil + } + + field(:commonStats, as: GoogleApi.Language.V2.Model.XPSCommonStats) + + field(:histogramBuckets, + as: GoogleApi.Language.V2.Model.XPSFloat64StatsHistogramBucket, + type: :list + ) + + field(:mean) + field(:quantiles, type: :list) + field(:standardDeviation) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSFloat64Stats do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSFloat64Stats.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSFloat64Stats do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_float64_stats_histogram_bucket.ex b/clients/language/lib/google_api/language/v2/model/xps_float64_stats_histogram_bucket.ex new file mode 100644 index 0000000000..6955284bb5 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_float64_stats_histogram_bucket.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSFloat64StatsHistogramBucket do + @moduledoc """ + A bucket of a histogram. + + ## Attributes + + * `count` (*type:* `String.t`, *default:* `nil`) - The number of data values that are in the bucket, i.e. are between min and max values. + * `max` (*type:* `float()`, *default:* `nil`) - The maximum value of the bucket, exclusive unless max = `"Infinity"`, in which case it's inclusive. + * `min` (*type:* `float()`, *default:* `nil`) - The minimum value of the bucket, inclusive. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :count => String.t() | nil, + :max => float() | nil, + :min => float() | nil + } + + field(:count) + field(:max) + field(:min) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSFloat64StatsHistogramBucket do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSFloat64StatsHistogramBucket.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSFloat64StatsHistogramBucket do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_image_classification_train_response.ex b/clients/language/lib/google_api/language/v2/model/xps_image_classification_train_response.ex new file mode 100644 index 0000000000..d93970e758 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_image_classification_train_response.ex @@ -0,0 +1,64 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSImageClassificationTrainResponse do + @moduledoc """ + + + ## Attributes + + * `classCount` (*type:* `String.t`, *default:* `nil`) - Total number of classes. + * `exportModelSpec` (*type:* `GoogleApi.Language.V2.Model.XPSImageExportModelSpec.t`, *default:* `nil`) - Information of downloadable models that are pre-generated as part of training flow and will be persisted in AutoMl backend. Populated for AutoMl requests. + * `modelArtifactSpec` (*type:* `GoogleApi.Language.V2.Model.XPSImageModelArtifactSpec.t`, *default:* `nil`) - ## The fields below are only populated under uCAIP request scope. + * `modelServingSpec` (*type:* `GoogleApi.Language.V2.Model.XPSImageModelServingSpec.t`, *default:* `nil`) - + * `stopReason` (*type:* `String.t`, *default:* `nil`) - Stop reason for training job, e.g. 'TRAIN_BUDGET_REACHED', 'MODEL_CONVERGED', 'MODEL_EARLY_STOPPED'. + * `trainCostInNodeTime` (*type:* `String.t`, *default:* `nil`) - The actual cost to create this model. - For edge type model, the cost is expressed in node hour. - For cloud type model,the cost is expressed in compute hour. - Populated for models created before GA. To be deprecated after GA. + * `trainCostNodeSeconds` (*type:* `String.t`, *default:* `nil`) - The actual training cost, expressed in node seconds. Populated for models trained in node time. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :classCount => String.t() | nil, + :exportModelSpec => GoogleApi.Language.V2.Model.XPSImageExportModelSpec.t() | nil, + :modelArtifactSpec => GoogleApi.Language.V2.Model.XPSImageModelArtifactSpec.t() | nil, + :modelServingSpec => GoogleApi.Language.V2.Model.XPSImageModelServingSpec.t() | nil, + :stopReason => String.t() | nil, + :trainCostInNodeTime => String.t() | nil, + :trainCostNodeSeconds => String.t() | nil + } + + field(:classCount) + field(:exportModelSpec, as: GoogleApi.Language.V2.Model.XPSImageExportModelSpec) + field(:modelArtifactSpec, as: GoogleApi.Language.V2.Model.XPSImageModelArtifactSpec) + field(:modelServingSpec, as: GoogleApi.Language.V2.Model.XPSImageModelServingSpec) + field(:stopReason) + field(:trainCostInNodeTime) + field(:trainCostNodeSeconds) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSImageClassificationTrainResponse do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSImageClassificationTrainResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSImageClassificationTrainResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_image_export_model_spec.ex b/clients/language/lib/google_api/language/v2/model/xps_image_export_model_spec.ex new file mode 100644 index 0000000000..4c117b53e0 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_image_export_model_spec.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSImageExportModelSpec do + @moduledoc """ + Information of downloadable models that are pre-generated as part of training flow and will be persisted in AutoMl backend. Upon receiving ExportModel request from user, AutoMl backend can serve the pre-generated models to user if exists (by copying the files from internal path to user provided location), otherwise, AutoMl backend will call xPS ExportModel API to generate the model on the fly with the requesting format. + + ## Attributes + + * `exportModelOutputConfig` (*type:* `list(GoogleApi.Language.V2.Model.XPSExportModelOutputConfig.t)`, *default:* `nil`) - Contains the model format and internal location of the model files to be exported/downloaded. Use the GCS bucket name which is provided via TrainRequest.gcs_bucket_name to store the model files. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :exportModelOutputConfig => + list(GoogleApi.Language.V2.Model.XPSExportModelOutputConfig.t()) | nil + } + + field(:exportModelOutputConfig, + as: GoogleApi.Language.V2.Model.XPSExportModelOutputConfig, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSImageExportModelSpec do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSImageExportModelSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSImageExportModelSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_image_model_artifact_spec.ex b/clients/language/lib/google_api/language/v2/model/xps_image_model_artifact_spec.ex new file mode 100644 index 0000000000..a83b19c67f --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_image_model_artifact_spec.ex @@ -0,0 +1,61 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSImageModelArtifactSpec do + @moduledoc """ + Stores the locations and related metadata of the model artifacts. Populated for uCAIP requests only. + + ## Attributes + + * `checkpointArtifact` (*type:* `GoogleApi.Language.V2.Model.XPSModelArtifactItem.t`, *default:* `nil`) - The Tensorflow checkpoint files. e.g. Used for resumable training. + * `exportArtifact` (*type:* `list(GoogleApi.Language.V2.Model.XPSModelArtifactItem.t)`, *default:* `nil`) - The model binary files in different formats for model export. + * `labelGcsUri` (*type:* `String.t`, *default:* `nil`) - GCS uri of decoded labels file for model export 'dict.txt'. + * `servingArtifact` (*type:* `GoogleApi.Language.V2.Model.XPSModelArtifactItem.t`, *default:* `nil`) - The default model binary file used for serving (e.g. online predict, batch predict) via public Cloud AI Platform API. + * `tfJsBinaryGcsPrefix` (*type:* `String.t`, *default:* `nil`) - GCS uri prefix of Tensorflow JavaScript binary files 'groupX-shardXofX.bin' Deprecated. + * `tfLiteMetadataGcsUri` (*type:* `String.t`, *default:* `nil`) - GCS uri of Tensorflow Lite metadata 'tflite_metadata.json'. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :checkpointArtifact => GoogleApi.Language.V2.Model.XPSModelArtifactItem.t() | nil, + :exportArtifact => list(GoogleApi.Language.V2.Model.XPSModelArtifactItem.t()) | nil, + :labelGcsUri => String.t() | nil, + :servingArtifact => GoogleApi.Language.V2.Model.XPSModelArtifactItem.t() | nil, + :tfJsBinaryGcsPrefix => String.t() | nil, + :tfLiteMetadataGcsUri => String.t() | nil + } + + field(:checkpointArtifact, as: GoogleApi.Language.V2.Model.XPSModelArtifactItem) + field(:exportArtifact, as: GoogleApi.Language.V2.Model.XPSModelArtifactItem, type: :list) + field(:labelGcsUri) + field(:servingArtifact, as: GoogleApi.Language.V2.Model.XPSModelArtifactItem) + field(:tfJsBinaryGcsPrefix) + field(:tfLiteMetadataGcsUri) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSImageModelArtifactSpec do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSImageModelArtifactSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSImageModelArtifactSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_image_model_serving_spec.ex b/clients/language/lib/google_api/language/v2/model/xps_image_model_serving_spec.ex new file mode 100644 index 0000000000..3259f1e21e --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_image_model_serving_spec.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSImageModelServingSpec do + @moduledoc """ + Serving specification for image models. + + ## Attributes + + * `modelThroughputEstimation` (*type:* `list(GoogleApi.Language.V2.Model.XPSImageModelServingSpecModelThroughputEstimation.t)`, *default:* `nil`) - Populate under uCAIP request scope. + * `nodeQps` (*type:* `float()`, *default:* `nil`) - An estimated value of how much traffic a node can serve. Populated for AutoMl request only. + * `tfRuntimeVersion` (*type:* `String.t`, *default:* `nil`) - ## The fields below are only populated under uCAIP request scope. https://cloud.google.com/ml-engine/docs/runtime-version-list + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :modelThroughputEstimation => + list( + GoogleApi.Language.V2.Model.XPSImageModelServingSpecModelThroughputEstimation.t() + ) + | nil, + :nodeQps => float() | nil, + :tfRuntimeVersion => String.t() | nil + } + + field(:modelThroughputEstimation, + as: GoogleApi.Language.V2.Model.XPSImageModelServingSpecModelThroughputEstimation, + type: :list + ) + + field(:nodeQps) + field(:tfRuntimeVersion) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSImageModelServingSpec do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSImageModelServingSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSImageModelServingSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_image_model_serving_spec_model_throughput_estimation.ex b/clients/language/lib/google_api/language/v2/model/xps_image_model_serving_spec_model_throughput_estimation.ex new file mode 100644 index 0000000000..2b363427a6 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_image_model_serving_spec_model_throughput_estimation.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSImageModelServingSpecModelThroughputEstimation do + @moduledoc """ + + + ## Attributes + + * `computeEngineAcceleratorType` (*type:* `String.t`, *default:* `nil`) - + * `latencyInMilliseconds` (*type:* `float()`, *default:* `nil`) - Estimated latency. + * `nodeQps` (*type:* `float()`, *default:* `nil`) - The approximate qps a deployed node can serve. + * `servomaticPartitionType` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :computeEngineAcceleratorType => String.t() | nil, + :latencyInMilliseconds => float() | nil, + :nodeQps => float() | nil, + :servomaticPartitionType => String.t() | nil + } + + field(:computeEngineAcceleratorType) + field(:latencyInMilliseconds) + field(:nodeQps) + field(:servomaticPartitionType) +end + +defimpl Poison.Decoder, + for: GoogleApi.Language.V2.Model.XPSImageModelServingSpecModelThroughputEstimation do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSImageModelServingSpecModelThroughputEstimation.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Language.V2.Model.XPSImageModelServingSpecModelThroughputEstimation do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_image_object_detection_evaluation_metrics.ex b/clients/language/lib/google_api/language/v2/model/xps_image_object_detection_evaluation_metrics.ex new file mode 100644 index 0000000000..2c6be26944 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_image_object_detection_evaluation_metrics.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSImageObjectDetectionEvaluationMetrics do + @moduledoc """ + Model evaluation metrics for image object detection problems. Evaluates prediction quality of labeled bounding boxes. + + ## Attributes + + * `boundingBoxMeanAveragePrecision` (*type:* `number()`, *default:* `nil`) - The single metric for bounding boxes evaluation: the mean_average_precision averaged over all bounding_box_metrics_entries. + * `boundingBoxMetricsEntries` (*type:* `list(GoogleApi.Language.V2.Model.XPSBoundingBoxMetricsEntry.t)`, *default:* `nil`) - The bounding boxes match metrics for each Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 pair. + * `evaluatedBoundingBoxCount` (*type:* `integer()`, *default:* `nil`) - The total number of bounding boxes (i.e. summed over all images) the ground truth used to create this evaluation had. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :boundingBoxMeanAveragePrecision => number() | nil, + :boundingBoxMetricsEntries => + list(GoogleApi.Language.V2.Model.XPSBoundingBoxMetricsEntry.t()) | nil, + :evaluatedBoundingBoxCount => integer() | nil + } + + field(:boundingBoxMeanAveragePrecision) + + field(:boundingBoxMetricsEntries, + as: GoogleApi.Language.V2.Model.XPSBoundingBoxMetricsEntry, + type: :list + ) + + field(:evaluatedBoundingBoxCount) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSImageObjectDetectionEvaluationMetrics do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSImageObjectDetectionEvaluationMetrics.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSImageObjectDetectionEvaluationMetrics do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_image_object_detection_model_spec.ex b/clients/language/lib/google_api/language/v2/model/xps_image_object_detection_model_spec.ex new file mode 100644 index 0000000000..6bac5ec414 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_image_object_detection_model_spec.ex @@ -0,0 +1,64 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSImageObjectDetectionModelSpec do + @moduledoc """ + + + ## Attributes + + * `classCount` (*type:* `String.t`, *default:* `nil`) - Total number of classes. + * `exportModelSpec` (*type:* `GoogleApi.Language.V2.Model.XPSImageExportModelSpec.t`, *default:* `nil`) - + * `maxBoundingBoxCount` (*type:* `String.t`, *default:* `nil`) - Max number of bounding box. + * `modelArtifactSpec` (*type:* `GoogleApi.Language.V2.Model.XPSImageModelArtifactSpec.t`, *default:* `nil`) - ## The fields below are only populated under uCAIP request scope. + * `modelServingSpec` (*type:* `GoogleApi.Language.V2.Model.XPSImageModelServingSpec.t`, *default:* `nil`) - + * `stopReason` (*type:* `String.t`, *default:* `nil`) - Stop reason for training job, e.g. 'TRAIN_BUDGET_REACHED', 'MODEL_CONVERGED'. + * `trainCostNodeSeconds` (*type:* `String.t`, *default:* `nil`) - The actual train cost of creating this model, expressed in node seconds, i.e. 3,600 value in this field means 1 node hour. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :classCount => String.t() | nil, + :exportModelSpec => GoogleApi.Language.V2.Model.XPSImageExportModelSpec.t() | nil, + :maxBoundingBoxCount => String.t() | nil, + :modelArtifactSpec => GoogleApi.Language.V2.Model.XPSImageModelArtifactSpec.t() | nil, + :modelServingSpec => GoogleApi.Language.V2.Model.XPSImageModelServingSpec.t() | nil, + :stopReason => String.t() | nil, + :trainCostNodeSeconds => String.t() | nil + } + + field(:classCount) + field(:exportModelSpec, as: GoogleApi.Language.V2.Model.XPSImageExportModelSpec) + field(:maxBoundingBoxCount) + field(:modelArtifactSpec, as: GoogleApi.Language.V2.Model.XPSImageModelArtifactSpec) + field(:modelServingSpec, as: GoogleApi.Language.V2.Model.XPSImageModelServingSpec) + field(:stopReason) + field(:trainCostNodeSeconds) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSImageObjectDetectionModelSpec do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSImageObjectDetectionModelSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSImageObjectDetectionModelSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_image_segmentation_evaluation_metrics.ex b/clients/language/lib/google_api/language/v2/model/xps_image_segmentation_evaluation_metrics.ex new file mode 100644 index 0000000000..4609c60be4 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_image_segmentation_evaluation_metrics.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSImageSegmentationEvaluationMetrics do + @moduledoc """ + Model evaluation metrics for image segmentation problems. Next tag: 4. + + ## Attributes + + * `confidenceMetricsEntries` (*type:* `list(GoogleApi.Language.V2.Model.XPSImageSegmentationEvaluationMetricsConfidenceMetricsEntry.t)`, *default:* `nil`) - Metrics that have confidence thresholds. Precision-recall curve can be derived from it. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :confidenceMetricsEntries => + list( + GoogleApi.Language.V2.Model.XPSImageSegmentationEvaluationMetricsConfidenceMetricsEntry.t() + ) + | nil + } + + field(:confidenceMetricsEntries, + as: GoogleApi.Language.V2.Model.XPSImageSegmentationEvaluationMetricsConfidenceMetricsEntry, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSImageSegmentationEvaluationMetrics do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSImageSegmentationEvaluationMetrics.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSImageSegmentationEvaluationMetrics do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_image_segmentation_evaluation_metrics_confidence_metrics_entry.ex b/clients/language/lib/google_api/language/v2/model/xps_image_segmentation_evaluation_metrics_confidence_metrics_entry.ex new file mode 100644 index 0000000000..ce9b3e1362 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_image_segmentation_evaluation_metrics_confidence_metrics_entry.ex @@ -0,0 +1,66 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSImageSegmentationEvaluationMetricsConfidenceMetricsEntry do + @moduledoc """ + Metrics for a single confidence threshold. + + ## Attributes + + * `confidenceThreshold` (*type:* `number()`, *default:* `nil`) - The confidence threshold value used to compute the metrics. + * `confusionMatrix` (*type:* `GoogleApi.Language.V2.Model.XPSConfusionMatrix.t`, *default:* `nil`) - Confusion matrix of the per confidence_threshold evaluation. Pixel counts are set here. Only set for model level evaluation, not for evaluation per label. + * `diceScoreCoefficient` (*type:* `number()`, *default:* `nil`) - DSC or the F1 score: The harmonic mean of recall and precision. + * `iouScore` (*type:* `number()`, *default:* `nil`) - IOU score. + * `precision` (*type:* `number()`, *default:* `nil`) - Precision for the given confidence threshold. + * `recall` (*type:* `number()`, *default:* `nil`) - Recall for the given confidence threshold. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :confidenceThreshold => number() | nil, + :confusionMatrix => GoogleApi.Language.V2.Model.XPSConfusionMatrix.t() | nil, + :diceScoreCoefficient => number() | nil, + :iouScore => number() | nil, + :precision => number() | nil, + :recall => number() | nil + } + + field(:confidenceThreshold) + field(:confusionMatrix, as: GoogleApi.Language.V2.Model.XPSConfusionMatrix) + field(:diceScoreCoefficient) + field(:iouScore) + field(:precision) + field(:recall) +end + +defimpl Poison.Decoder, + for: GoogleApi.Language.V2.Model.XPSImageSegmentationEvaluationMetricsConfidenceMetricsEntry do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSImageSegmentationEvaluationMetricsConfidenceMetricsEntry.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Language.V2.Model.XPSImageSegmentationEvaluationMetricsConfidenceMetricsEntry do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_image_segmentation_train_response.ex b/clients/language/lib/google_api/language/v2/model/xps_image_segmentation_train_response.ex new file mode 100644 index 0000000000..0a31996c40 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_image_segmentation_train_response.ex @@ -0,0 +1,61 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSImageSegmentationTrainResponse do + @moduledoc """ + + + ## Attributes + + * `colorMaps` (*type:* `list(GoogleApi.Language.V2.Model.XPSColorMap.t)`, *default:* `nil`) - Color map of the model. + * `exportModelSpec` (*type:* `GoogleApi.Language.V2.Model.XPSImageExportModelSpec.t`, *default:* `nil`) - NOTE: These fields are not used/needed in EAP but will be set later. + * `modelArtifactSpec` (*type:* `GoogleApi.Language.V2.Model.XPSImageModelArtifactSpec.t`, *default:* `nil`) - ## The fields below are only populated under uCAIP request scope. Model artifact spec stores and model gcs pathes and related metadata + * `modelServingSpec` (*type:* `GoogleApi.Language.V2.Model.XPSImageModelServingSpec.t`, *default:* `nil`) - + * `stopReason` (*type:* `String.t`, *default:* `nil`) - Stop reason for training job, e.g. 'TRAIN_BUDGET_REACHED', 'MODEL_CONVERGED'. + * `trainCostNodeSeconds` (*type:* `String.t`, *default:* `nil`) - The actual train cost of creating this model, expressed in node seconds, i.e. 3,600 value in this field means 1 node hour. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :colorMaps => list(GoogleApi.Language.V2.Model.XPSColorMap.t()) | nil, + :exportModelSpec => GoogleApi.Language.V2.Model.XPSImageExportModelSpec.t() | nil, + :modelArtifactSpec => GoogleApi.Language.V2.Model.XPSImageModelArtifactSpec.t() | nil, + :modelServingSpec => GoogleApi.Language.V2.Model.XPSImageModelServingSpec.t() | nil, + :stopReason => String.t() | nil, + :trainCostNodeSeconds => String.t() | nil + } + + field(:colorMaps, as: GoogleApi.Language.V2.Model.XPSColorMap, type: :list) + field(:exportModelSpec, as: GoogleApi.Language.V2.Model.XPSImageExportModelSpec) + field(:modelArtifactSpec, as: GoogleApi.Language.V2.Model.XPSImageModelArtifactSpec) + field(:modelServingSpec, as: GoogleApi.Language.V2.Model.XPSImageModelServingSpec) + field(:stopReason) + field(:trainCostNodeSeconds) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSImageSegmentationTrainResponse do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSImageSegmentationTrainResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSImageSegmentationTrainResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_integrated_gradients_attribution.ex b/clients/language/lib/google_api/language/v2/model/xps_integrated_gradients_attribution.ex new file mode 100644 index 0000000000..0491076b94 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_integrated_gradients_attribution.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSIntegratedGradientsAttribution do + @moduledoc """ + An attribution method that computes the Aumann-Shapley value taking advantage of the model's fully differentiable structure. Refer to this paper for more details: https://arxiv.org/abs/1703.01365 + + ## Attributes + + * `stepCount` (*type:* `integer()`, *default:* `nil`) - The number of steps for approximating the path integral. A good value to start is 50 and gradually increase until the sum to diff property is within the desired error range. Valid range of its value is [1, 100], inclusively. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :stepCount => integer() | nil + } + + field(:stepCount) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSIntegratedGradientsAttribution do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSIntegratedGradientsAttribution.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSIntegratedGradientsAttribution do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_metric_entry.ex b/clients/language/lib/google_api/language/v2/model/xps_metric_entry.ex new file mode 100644 index 0000000000..b2a4adbf0b --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_metric_entry.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSMetricEntry do + @moduledoc """ + + + ## Attributes + + * `argentumMetricId` (*type:* `String.t`, *default:* `nil`) - For billing metrics that are using legacy sku's, set the legacy billing metric id here. This will be sent to Chemist as the "cloudbilling.googleapis.com/argentum_metric_id" label. Otherwise leave empty. + * `doubleValue` (*type:* `float()`, *default:* `nil`) - A double value. + * `int64Value` (*type:* `String.t`, *default:* `nil`) - A signed 64-bit integer value. + * `metricName` (*type:* `String.t`, *default:* `nil`) - The metric name defined in the service configuration. + * `systemLabels` (*type:* `list(GoogleApi.Language.V2.Model.XPSMetricEntryLabel.t)`, *default:* `nil`) - Billing system labels for this (metric, value) pair. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :argentumMetricId => String.t() | nil, + :doubleValue => float() | nil, + :int64Value => String.t() | nil, + :metricName => String.t() | nil, + :systemLabels => list(GoogleApi.Language.V2.Model.XPSMetricEntryLabel.t()) | nil + } + + field(:argentumMetricId) + field(:doubleValue) + field(:int64Value) + field(:metricName) + field(:systemLabels, as: GoogleApi.Language.V2.Model.XPSMetricEntryLabel, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSMetricEntry do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSMetricEntry.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSMetricEntry do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_metric_entry_label.ex b/clients/language/lib/google_api/language/v2/model/xps_metric_entry_label.ex new file mode 100644 index 0000000000..d91c4f3f1a --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_metric_entry_label.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSMetricEntryLabel do + @moduledoc """ + + + ## Attributes + + * `labelName` (*type:* `String.t`, *default:* `nil`) - The name of the label. + * `labelValue` (*type:* `String.t`, *default:* `nil`) - The value of the label. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :labelName => String.t() | nil, + :labelValue => String.t() | nil + } + + field(:labelName) + field(:labelValue) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSMetricEntryLabel do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSMetricEntryLabel.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSMetricEntryLabel do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_model_artifact_item.ex b/clients/language/lib/google_api/language/v2/model/xps_model_artifact_item.ex new file mode 100644 index 0000000000..be70934fe6 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_model_artifact_item.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSModelArtifactItem do + @moduledoc """ + A single model artifact item. + + ## Attributes + + * `artifactFormat` (*type:* `String.t`, *default:* `nil`) - The model artifact format. + * `gcsUri` (*type:* `String.t`, *default:* `nil`) - The Google Cloud Storage (GCS) uri that stores the model binary files. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :artifactFormat => String.t() | nil, + :gcsUri => String.t() | nil + } + + field(:artifactFormat) + field(:gcsUri) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSModelArtifactItem do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSModelArtifactItem.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSModelArtifactItem do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_preprocess_response.ex b/clients/language/lib/google_api/language/v2/model/xps_preprocess_response.ex new file mode 100644 index 0000000000..fc70ca7af8 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_preprocess_response.ex @@ -0,0 +1,61 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSPreprocessResponse do + @moduledoc """ + Next ID: 8 + + ## Attributes + + * `outputExampleSet` (*type:* `GoogleApi.Language.V2.Model.XPSExampleSet.t`, *default:* `nil`) - Preprocessed examples, that are to be imported into AutoML storage. This should point to RecordIO file(s) of PreprocessedExample messages. The PreprocessedExample.mvp_training_data-s returned here are later verbatim passed to Train() call in TrainExample.mvp_training_data. + * `speechPreprocessResp` (*type:* `GoogleApi.Language.V2.Model.XPSSpeechPreprocessResponse.t`, *default:* `nil`) - + * `tablesPreprocessResponse` (*type:* `GoogleApi.Language.V2.Model.XPSTablesPreprocessResponse.t`, *default:* `nil`) - + * `translationPreprocessResp` (*type:* `GoogleApi.Language.V2.Model.XPSTranslationPreprocessResponse.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :outputExampleSet => GoogleApi.Language.V2.Model.XPSExampleSet.t() | nil, + :speechPreprocessResp => + GoogleApi.Language.V2.Model.XPSSpeechPreprocessResponse.t() | nil, + :tablesPreprocessResponse => + GoogleApi.Language.V2.Model.XPSTablesPreprocessResponse.t() | nil, + :translationPreprocessResp => + GoogleApi.Language.V2.Model.XPSTranslationPreprocessResponse.t() | nil + } + + field(:outputExampleSet, as: GoogleApi.Language.V2.Model.XPSExampleSet) + field(:speechPreprocessResp, as: GoogleApi.Language.V2.Model.XPSSpeechPreprocessResponse) + field(:tablesPreprocessResponse, as: GoogleApi.Language.V2.Model.XPSTablesPreprocessResponse) + + field(:translationPreprocessResp, + as: GoogleApi.Language.V2.Model.XPSTranslationPreprocessResponse + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSPreprocessResponse do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSPreprocessResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSPreprocessResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_regression_evaluation_metrics.ex b/clients/language/lib/google_api/language/v2/model/xps_regression_evaluation_metrics.ex new file mode 100644 index 0000000000..2cc24e7042 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_regression_evaluation_metrics.ex @@ -0,0 +1,67 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSRegressionEvaluationMetrics do + @moduledoc """ + Model evaluation metrics for regression problems. It can be used for Tables. + + ## Attributes + + * `meanAbsoluteError` (*type:* `number()`, *default:* `nil`) - Mean Absolute Error (MAE). + * `meanAbsolutePercentageError` (*type:* `number()`, *default:* `nil`) - Mean absolute percentage error. Only set if all ground truth values are positive. + * `rSquared` (*type:* `number()`, *default:* `nil`) - R squared. + * `regressionMetricsEntries` (*type:* `list(GoogleApi.Language.V2.Model.XPSRegressionMetricsEntry.t)`, *default:* `nil`) - A list of actual versus predicted points for the model being evaluated. + * `rootMeanSquaredError` (*type:* `number()`, *default:* `nil`) - Root Mean Squared Error (RMSE). + * `rootMeanSquaredLogError` (*type:* `number()`, *default:* `nil`) - Root mean squared log error. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :meanAbsoluteError => number() | nil, + :meanAbsolutePercentageError => number() | nil, + :rSquared => number() | nil, + :regressionMetricsEntries => + list(GoogleApi.Language.V2.Model.XPSRegressionMetricsEntry.t()) | nil, + :rootMeanSquaredError => number() | nil, + :rootMeanSquaredLogError => number() | nil + } + + field(:meanAbsoluteError) + field(:meanAbsolutePercentageError) + field(:rSquared) + + field(:regressionMetricsEntries, + as: GoogleApi.Language.V2.Model.XPSRegressionMetricsEntry, + type: :list + ) + + field(:rootMeanSquaredError) + field(:rootMeanSquaredLogError) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSRegressionEvaluationMetrics do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSRegressionEvaluationMetrics.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSRegressionEvaluationMetrics do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_regression_metrics_entry.ex b/clients/language/lib/google_api/language/v2/model/xps_regression_metrics_entry.ex new file mode 100644 index 0000000000..fdd08e50d4 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_regression_metrics_entry.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSRegressionMetricsEntry do + @moduledoc """ + A pair of actual & observed values for the model being evaluated. + + ## Attributes + + * `predictedValue` (*type:* `number()`, *default:* `nil`) - The observed value for a row in the dataset. + * `trueValue` (*type:* `number()`, *default:* `nil`) - The actual target value for a row in the dataset. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :predictedValue => number() | nil, + :trueValue => number() | nil + } + + field(:predictedValue) + field(:trueValue) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSRegressionMetricsEntry do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSRegressionMetricsEntry.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSRegressionMetricsEntry do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_reporting_metrics.ex b/clients/language/lib/google_api/language/v2/model/xps_reporting_metrics.ex new file mode 100644 index 0000000000..b141263e00 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_reporting_metrics.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSReportingMetrics do + @moduledoc """ + + + ## Attributes + + * `effectiveTrainingDuration` (*type:* `String.t`, *default:* `nil`) - The effective time training used. If set, this is used for quota management and billing. Deprecated. AutoML BE doesn't use this. Don't set. + * `metricEntries` (*type:* `list(GoogleApi.Language.V2.Model.XPSMetricEntry.t)`, *default:* `nil`) - One entry per metric name. The values must be aggregated per metric name. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :effectiveTrainingDuration => String.t() | nil, + :metricEntries => list(GoogleApi.Language.V2.Model.XPSMetricEntry.t()) | nil + } + + field(:effectiveTrainingDuration) + field(:metricEntries, as: GoogleApi.Language.V2.Model.XPSMetricEntry, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSReportingMetrics do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSReportingMetrics.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSReportingMetrics do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_response_explanation_metadata.ex b/clients/language/lib/google_api/language/v2/model/xps_response_explanation_metadata.ex new file mode 100644 index 0000000000..5570a5b2ac --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_response_explanation_metadata.ex @@ -0,0 +1,66 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSResponseExplanationMetadata do + @moduledoc """ + + + ## Attributes + + * `inputs` (*type:* `%{optional(String.t) => GoogleApi.Language.V2.Model.XPSResponseExplanationMetadataInputMetadata.t}`, *default:* `nil`) - Metadata of the input. + * `outputs` (*type:* `%{optional(String.t) => GoogleApi.Language.V2.Model.XPSResponseExplanationMetadataOutputMetadata.t}`, *default:* `nil`) - Metadata of the output. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :inputs => + %{ + optional(String.t()) => + GoogleApi.Language.V2.Model.XPSResponseExplanationMetadataInputMetadata.t() + } + | nil, + :outputs => + %{ + optional(String.t()) => + GoogleApi.Language.V2.Model.XPSResponseExplanationMetadataOutputMetadata.t() + } + | nil + } + + field(:inputs, + as: GoogleApi.Language.V2.Model.XPSResponseExplanationMetadataInputMetadata, + type: :map + ) + + field(:outputs, + as: GoogleApi.Language.V2.Model.XPSResponseExplanationMetadataOutputMetadata, + type: :map + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSResponseExplanationMetadata do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSResponseExplanationMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSResponseExplanationMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_response_explanation_metadata_input_metadata.ex b/clients/language/lib/google_api/language/v2/model/xps_response_explanation_metadata_input_metadata.ex new file mode 100644 index 0000000000..6c416cd17b --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_response_explanation_metadata_input_metadata.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSResponseExplanationMetadataInputMetadata do + @moduledoc """ + Metadata of the input of a feature. + + ## Attributes + + * `inputTensorName` (*type:* `String.t`, *default:* `nil`) - Name of the input tensor for this model. Only needed in train response. + * `modality` (*type:* `String.t`, *default:* `nil`) - Modality of the feature. Valid values are: numeric, image. Defaults to numeric. + * `visualizationConfig` (*type:* `GoogleApi.Language.V2.Model.XPSVisualization.t`, *default:* `nil`) - Visualization configurations for image explanation. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :inputTensorName => String.t() | nil, + :modality => String.t() | nil, + :visualizationConfig => GoogleApi.Language.V2.Model.XPSVisualization.t() | nil + } + + field(:inputTensorName) + field(:modality) + field(:visualizationConfig, as: GoogleApi.Language.V2.Model.XPSVisualization) +end + +defimpl Poison.Decoder, + for: GoogleApi.Language.V2.Model.XPSResponseExplanationMetadataInputMetadata do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSResponseExplanationMetadataInputMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Language.V2.Model.XPSResponseExplanationMetadataInputMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_response_explanation_metadata_output_metadata.ex b/clients/language/lib/google_api/language/v2/model/xps_response_explanation_metadata_output_metadata.ex new file mode 100644 index 0000000000..0e9a966d7c --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_response_explanation_metadata_output_metadata.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSResponseExplanationMetadataOutputMetadata do + @moduledoc """ + Metadata of the prediction output to be explained. + + ## Attributes + + * `outputTensorName` (*type:* `String.t`, *default:* `nil`) - Name of the output tensor. Only needed in train response. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :outputTensorName => String.t() | nil + } + + field(:outputTensorName) +end + +defimpl Poison.Decoder, + for: GoogleApi.Language.V2.Model.XPSResponseExplanationMetadataOutputMetadata do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSResponseExplanationMetadataOutputMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Language.V2.Model.XPSResponseExplanationMetadataOutputMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_response_explanation_parameters.ex b/clients/language/lib/google_api/language/v2/model/xps_response_explanation_parameters.ex new file mode 100644 index 0000000000..45fb0506fc --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_response_explanation_parameters.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSResponseExplanationParameters do + @moduledoc """ + + + ## Attributes + + * `integratedGradientsAttribution` (*type:* `GoogleApi.Language.V2.Model.XPSIntegratedGradientsAttribution.t`, *default:* `nil`) - An attribution method that computes Aumann-Shapley values taking advantage of the model's fully differentiable structure. Refer to this paper for more details: https://arxiv.org/abs/1703.01365 + * `xraiAttribution` (*type:* `GoogleApi.Language.V2.Model.XPSXraiAttribution.t`, *default:* `nil`) - An attribution method that redistributes Integrated Gradients attribution to segmented regions, taking advantage of the model's fully differentiable structure. Refer to this paper for more details: https://arxiv.org/abs/1906.02825 XRAI currently performs better on natural images, like a picture of a house or an animal. If the images are taken in artificial environments, like a lab or manufacturing line, or from diagnostic equipment, like x-rays or quality-control cameras, use Integrated Gradients instead. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :integratedGradientsAttribution => + GoogleApi.Language.V2.Model.XPSIntegratedGradientsAttribution.t() | nil, + :xraiAttribution => GoogleApi.Language.V2.Model.XPSXraiAttribution.t() | nil + } + + field(:integratedGradientsAttribution, + as: GoogleApi.Language.V2.Model.XPSIntegratedGradientsAttribution + ) + + field(:xraiAttribution, as: GoogleApi.Language.V2.Model.XPSXraiAttribution) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSResponseExplanationParameters do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSResponseExplanationParameters.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSResponseExplanationParameters do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_response_explanation_spec.ex b/clients/language/lib/google_api/language/v2/model/xps_response_explanation_spec.ex new file mode 100644 index 0000000000..84c03c834b --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_response_explanation_spec.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSResponseExplanationSpec do + @moduledoc """ + Specification of Model explanation. Feature-based XAI in AutoML Vision ICN is deprecated, see b/288407203 for context. + + ## Attributes + + * `explanationType` (*type:* `String.t`, *default:* `nil`) - Explanation type. For AutoML Image Classification models, possible values are: * `image-integrated-gradients` * `image-xrai` + * `metadata` (*type:* `GoogleApi.Language.V2.Model.XPSResponseExplanationMetadata.t`, *default:* `nil`) - Metadata describing the Model's input and output for explanation. + * `parameters` (*type:* `GoogleApi.Language.V2.Model.XPSResponseExplanationParameters.t`, *default:* `nil`) - Parameters that configure explaining of the Model's predictions. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :explanationType => String.t() | nil, + :metadata => GoogleApi.Language.V2.Model.XPSResponseExplanationMetadata.t() | nil, + :parameters => GoogleApi.Language.V2.Model.XPSResponseExplanationParameters.t() | nil + } + + field(:explanationType) + field(:metadata, as: GoogleApi.Language.V2.Model.XPSResponseExplanationMetadata) + field(:parameters, as: GoogleApi.Language.V2.Model.XPSResponseExplanationParameters) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSResponseExplanationSpec do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSResponseExplanationSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSResponseExplanationSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_row.ex b/clients/language/lib/google_api/language/v2/model/xps_row.ex new file mode 100644 index 0000000000..9f5c111236 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_row.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSRow do + @moduledoc """ + + + ## Attributes + + * `columnIds` (*type:* `list(integer())`, *default:* `nil`) - The ids of the columns. Note: The below `values` field must match order of this field, if this field is set. + * `values` (*type:* `list(any())`, *default:* `nil`) - The values of the row cells, given in the same order as the column_ids. If column_ids is not set, then in the same order as the input_feature_column_ids in TablesModelMetadata. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :columnIds => list(integer()) | nil, + :values => list(any()) | nil + } + + field(:columnIds, type: :list) + field(:values, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSRow do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSRow.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSRow do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_speech_evaluation_metrics.ex b/clients/language/lib/google_api/language/v2/model/xps_speech_evaluation_metrics.ex new file mode 100644 index 0000000000..817ce11fa4 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_speech_evaluation_metrics.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSSpeechEvaluationMetrics do + @moduledoc """ + + + ## Attributes + + * `subModelEvaluationMetrics` (*type:* `list(GoogleApi.Language.V2.Model.XPSSpeechEvaluationMetricsSubModelEvaluationMetric.t)`, *default:* `nil`) - Evaluation metrics for all submodels contained in this model. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :subModelEvaluationMetrics => + list( + GoogleApi.Language.V2.Model.XPSSpeechEvaluationMetricsSubModelEvaluationMetric.t() + ) + | nil + } + + field(:subModelEvaluationMetrics, + as: GoogleApi.Language.V2.Model.XPSSpeechEvaluationMetricsSubModelEvaluationMetric, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSSpeechEvaluationMetrics do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSSpeechEvaluationMetrics.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSSpeechEvaluationMetrics do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_speech_evaluation_metrics_sub_model_evaluation_metric.ex b/clients/language/lib/google_api/language/v2/model/xps_speech_evaluation_metrics_sub_model_evaluation_metric.ex new file mode 100644 index 0000000000..d4ca8ac9ae --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_speech_evaluation_metrics_sub_model_evaluation_metric.ex @@ -0,0 +1,75 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSSpeechEvaluationMetricsSubModelEvaluationMetric do + @moduledoc """ + + + ## Attributes + + * `biasingModelType` (*type:* `String.t`, *default:* `nil`) - Type of the biasing model. + * `isEnhancedModel` (*type:* `boolean()`, *default:* `nil`) - If true then it means we have an enhanced version of the biasing models. + * `numDeletions` (*type:* `integer()`, *default:* `nil`) - + * `numInsertions` (*type:* `integer()`, *default:* `nil`) - + * `numSubstitutions` (*type:* `integer()`, *default:* `nil`) - + * `numUtterances` (*type:* `integer()`, *default:* `nil`) - Number of utterances used in the wer computation. + * `numWords` (*type:* `integer()`, *default:* `nil`) - Number of words over which the word error rate was computed. + * `sentenceAccuracy` (*type:* `float()`, *default:* `nil`) - Below fields are used for debugging purposes + * `wer` (*type:* `float()`, *default:* `nil`) - Word error rate (standard error metric used for speech recognition). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :biasingModelType => String.t() | nil, + :isEnhancedModel => boolean() | nil, + :numDeletions => integer() | nil, + :numInsertions => integer() | nil, + :numSubstitutions => integer() | nil, + :numUtterances => integer() | nil, + :numWords => integer() | nil, + :sentenceAccuracy => float() | nil, + :wer => float() | nil + } + + field(:biasingModelType) + field(:isEnhancedModel) + field(:numDeletions) + field(:numInsertions) + field(:numSubstitutions) + field(:numUtterances) + field(:numWords) + field(:sentenceAccuracy) + field(:wer) +end + +defimpl Poison.Decoder, + for: GoogleApi.Language.V2.Model.XPSSpeechEvaluationMetricsSubModelEvaluationMetric do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSSpeechEvaluationMetricsSubModelEvaluationMetric.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Language.V2.Model.XPSSpeechEvaluationMetricsSubModelEvaluationMetric do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_speech_model_spec.ex b/clients/language/lib/google_api/language/v2/model/xps_speech_model_spec.ex new file mode 100644 index 0000000000..e8ef1f945e --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_speech_model_spec.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSSpeechModelSpec do + @moduledoc """ + + + ## Attributes + + * `datasetId` (*type:* `String.t`, *default:* `nil`) - Required for speech xps backend. Speech xps has to use dataset_id and model_id as the primary key in db so that speech API can query the db directly. + * `language` (*type:* `String.t`, *default:* `nil`) - + * `subModelSpecs` (*type:* `list(GoogleApi.Language.V2.Model.XPSSpeechModelSpecSubModelSpec.t)`, *default:* `nil`) - Model specs for all submodels contained in this model. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :datasetId => String.t() | nil, + :language => String.t() | nil, + :subModelSpecs => + list(GoogleApi.Language.V2.Model.XPSSpeechModelSpecSubModelSpec.t()) | nil + } + + field(:datasetId) + field(:language) + + field(:subModelSpecs, + as: GoogleApi.Language.V2.Model.XPSSpeechModelSpecSubModelSpec, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSSpeechModelSpec do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSSpeechModelSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSSpeechModelSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_speech_model_spec_sub_model_spec.ex b/clients/language/lib/google_api/language/v2/model/xps_speech_model_spec_sub_model_spec.ex new file mode 100644 index 0000000000..d4c7aaceda --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_speech_model_spec_sub_model_spec.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSSpeechModelSpecSubModelSpec do + @moduledoc """ + + + ## Attributes + + * `biasingModelType` (*type:* `String.t`, *default:* `nil`) - Type of the biasing model. + * `clientId` (*type:* `String.t`, *default:* `nil`) - In S3, Recognition ClientContextId.client_id + * `contextId` (*type:* `String.t`, *default:* `nil`) - In S3, Recognition ClientContextId.context_id + * `isEnhancedModel` (*type:* `boolean()`, *default:* `nil`) - If true then it means we have an enhanced version of the biasing models. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :biasingModelType => String.t() | nil, + :clientId => String.t() | nil, + :contextId => String.t() | nil, + :isEnhancedModel => boolean() | nil + } + + field(:biasingModelType) + field(:clientId) + field(:contextId) + field(:isEnhancedModel) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSSpeechModelSpecSubModelSpec do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSSpeechModelSpecSubModelSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSSpeechModelSpecSubModelSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_speech_preprocess_response.ex b/clients/language/lib/google_api/language/v2/model/xps_speech_preprocess_response.ex new file mode 100644 index 0000000000..3d23431072 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_speech_preprocess_response.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSSpeechPreprocessResponse do + @moduledoc """ + + + ## Attributes + + * `cnsTestDataPath` (*type:* `String.t`, *default:* `nil`) - Location od shards of sstables (test data) of DataUtterance protos. + * `cnsTrainDataPath` (*type:* `String.t`, *default:* `nil`) - Location of shards of sstables (training data) of DataUtterance protos. + * `prebuiltModelEvaluationMetrics` (*type:* `GoogleApi.Language.V2.Model.XPSSpeechEvaluationMetrics.t`, *default:* `nil`) - The metrics for prebuilt speech models. They are included here because there is no prebuilt speech models stored in the AutoML. + * `speechPreprocessStats` (*type:* `GoogleApi.Language.V2.Model.XPSSpeechPreprocessStats.t`, *default:* `nil`) - Stats associated with the data. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cnsTestDataPath => String.t() | nil, + :cnsTrainDataPath => String.t() | nil, + :prebuiltModelEvaluationMetrics => + GoogleApi.Language.V2.Model.XPSSpeechEvaluationMetrics.t() | nil, + :speechPreprocessStats => GoogleApi.Language.V2.Model.XPSSpeechPreprocessStats.t() | nil + } + + field(:cnsTestDataPath) + field(:cnsTrainDataPath) + + field(:prebuiltModelEvaluationMetrics, + as: GoogleApi.Language.V2.Model.XPSSpeechEvaluationMetrics + ) + + field(:speechPreprocessStats, as: GoogleApi.Language.V2.Model.XPSSpeechPreprocessStats) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSSpeechPreprocessResponse do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSSpeechPreprocessResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSSpeechPreprocessResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_speech_preprocess_stats.ex b/clients/language/lib/google_api/language/v2/model/xps_speech_preprocess_stats.ex new file mode 100644 index 0000000000..3fabb211c0 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_speech_preprocess_stats.ex @@ -0,0 +1,73 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSSpeechPreprocessStats do + @moduledoc """ + + + ## Attributes + + * `dataErrors` (*type:* `list(GoogleApi.Language.V2.Model.XPSDataErrors.t)`, *default:* `nil`) - Different types of data errors and the counts associated with them. + * `numHumanLabeledExamples` (*type:* `integer()`, *default:* `nil`) - The number of rows marked HUMAN_LABELLED + * `numLogsExamples` (*type:* `integer()`, *default:* `nil`) - The number of samples found in the previously recorded logs data. + * `numMachineTranscribedExamples` (*type:* `integer()`, *default:* `nil`) - The number of rows marked as MACHINE_TRANSCRIBED + * `testExamplesCount` (*type:* `integer()`, *default:* `nil`) - The number of examples labelled as TEST by Speech xps server. + * `testSentencesCount` (*type:* `integer()`, *default:* `nil`) - The number of sentences in the test data set. + * `testWordsCount` (*type:* `integer()`, *default:* `nil`) - The number of words in the test data set. + * `trainExamplesCount` (*type:* `integer()`, *default:* `nil`) - The number of examples labeled as TRAIN by Speech xps server. + * `trainSentencesCount` (*type:* `integer()`, *default:* `nil`) - The number of sentences in the training data set. + * `trainWordsCount` (*type:* `integer()`, *default:* `nil`) - The number of words in the training data set. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dataErrors => list(GoogleApi.Language.V2.Model.XPSDataErrors.t()) | nil, + :numHumanLabeledExamples => integer() | nil, + :numLogsExamples => integer() | nil, + :numMachineTranscribedExamples => integer() | nil, + :testExamplesCount => integer() | nil, + :testSentencesCount => integer() | nil, + :testWordsCount => integer() | nil, + :trainExamplesCount => integer() | nil, + :trainSentencesCount => integer() | nil, + :trainWordsCount => integer() | nil + } + + field(:dataErrors, as: GoogleApi.Language.V2.Model.XPSDataErrors, type: :list) + field(:numHumanLabeledExamples) + field(:numLogsExamples) + field(:numMachineTranscribedExamples) + field(:testExamplesCount) + field(:testSentencesCount) + field(:testWordsCount) + field(:trainExamplesCount) + field(:trainSentencesCount) + field(:trainWordsCount) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSSpeechPreprocessStats do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSSpeechPreprocessStats.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSSpeechPreprocessStats do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_string_stats.ex b/clients/language/lib/google_api/language/v2/model/xps_string_stats.ex new file mode 100644 index 0000000000..65e9247610 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_string_stats.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSStringStats do + @moduledoc """ + The data statistics of a series of STRING values. + + ## Attributes + + * `commonStats` (*type:* `GoogleApi.Language.V2.Model.XPSCommonStats.t`, *default:* `nil`) - + * `topUnigramStats` (*type:* `list(GoogleApi.Language.V2.Model.XPSStringStatsUnigramStats.t)`, *default:* `nil`) - The statistics of the top 20 unigrams, ordered by StringStats.UnigramStats.count. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :commonStats => GoogleApi.Language.V2.Model.XPSCommonStats.t() | nil, + :topUnigramStats => + list(GoogleApi.Language.V2.Model.XPSStringStatsUnigramStats.t()) | nil + } + + field(:commonStats, as: GoogleApi.Language.V2.Model.XPSCommonStats) + field(:topUnigramStats, as: GoogleApi.Language.V2.Model.XPSStringStatsUnigramStats, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSStringStats do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSStringStats.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSStringStats do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_string_stats_unigram_stats.ex b/clients/language/lib/google_api/language/v2/model/xps_string_stats_unigram_stats.ex new file mode 100644 index 0000000000..160497c49b --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_string_stats_unigram_stats.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSStringStatsUnigramStats do + @moduledoc """ + The statistics of a unigram. + + ## Attributes + + * `count` (*type:* `String.t`, *default:* `nil`) - The number of occurrences of this unigram in the series. + * `value` (*type:* `String.t`, *default:* `nil`) - The unigram. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :count => String.t() | nil, + :value => String.t() | nil + } + + field(:count) + field(:value) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSStringStatsUnigramStats do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSStringStatsUnigramStats.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSStringStatsUnigramStats do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_struct_stats.ex b/clients/language/lib/google_api/language/v2/model/xps_struct_stats.ex new file mode 100644 index 0000000000..366797d658 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_struct_stats.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSStructStats do + @moduledoc """ + The data statistics of a series of STRUCT values. + + ## Attributes + + * `commonStats` (*type:* `GoogleApi.Language.V2.Model.XPSCommonStats.t`, *default:* `nil`) - + * `fieldStats` (*type:* `%{optional(String.t) => GoogleApi.Language.V2.Model.XPSDataStats.t}`, *default:* `nil`) - Map from a field name of the struct to data stats aggregated over series of all data in that field across all the structs. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :commonStats => GoogleApi.Language.V2.Model.XPSCommonStats.t() | nil, + :fieldStats => + %{optional(String.t()) => GoogleApi.Language.V2.Model.XPSDataStats.t()} | nil + } + + field(:commonStats, as: GoogleApi.Language.V2.Model.XPSCommonStats) + field(:fieldStats, as: GoogleApi.Language.V2.Model.XPSDataStats, type: :map) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSStructStats do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSStructStats.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSStructStats do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_struct_type.ex b/clients/language/lib/google_api/language/v2/model/xps_struct_type.ex new file mode 100644 index 0000000000..5603f7eda0 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_struct_type.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSStructType do + @moduledoc """ + `StructType` defines the DataType-s of a STRUCT type. + + ## Attributes + + * `fields` (*type:* `%{optional(String.t) => GoogleApi.Language.V2.Model.XPSDataType.t}`, *default:* `nil`) - Unordered map of struct field names to their data types. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fields => %{optional(String.t()) => GoogleApi.Language.V2.Model.XPSDataType.t()} | nil + } + + field(:fields, as: GoogleApi.Language.V2.Model.XPSDataType, type: :map) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSStructType do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSStructType.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSStructType do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_table_spec.ex b/clients/language/lib/google_api/language/v2/model/xps_table_spec.ex new file mode 100644 index 0000000000..344be3c57c --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_table_spec.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSTableSpec do + @moduledoc """ + + + ## Attributes + + * `columnSpecs` (*type:* `%{optional(String.t) => GoogleApi.Language.V2.Model.XPSColumnSpec.t}`, *default:* `nil`) - Mapping from column id to column spec. + * `importedDataSizeInBytes` (*type:* `String.t`, *default:* `nil`) - The total size of imported data of the table. + * `rowCount` (*type:* `String.t`, *default:* `nil`) - The number of rows in the table. + * `timeColumnId` (*type:* `integer()`, *default:* `nil`) - The id of the time column. + * `validRowCount` (*type:* `String.t`, *default:* `nil`) - The number of valid rows. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :columnSpecs => + %{optional(String.t()) => GoogleApi.Language.V2.Model.XPSColumnSpec.t()} | nil, + :importedDataSizeInBytes => String.t() | nil, + :rowCount => String.t() | nil, + :timeColumnId => integer() | nil, + :validRowCount => String.t() | nil + } + + field(:columnSpecs, as: GoogleApi.Language.V2.Model.XPSColumnSpec, type: :map) + field(:importedDataSizeInBytes) + field(:rowCount) + field(:timeColumnId) + field(:validRowCount) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSTableSpec do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSTableSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSTableSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_tables_classification_metrics.ex b/clients/language/lib/google_api/language/v2/model/xps_tables_classification_metrics.ex new file mode 100644 index 0000000000..3b32e6b95f --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_tables_classification_metrics.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSTablesClassificationMetrics do + @moduledoc """ + Metrics for Tables classification problems. + + ## Attributes + + * `curveMetrics` (*type:* `list(GoogleApi.Language.V2.Model.XPSTablesClassificationMetricsCurveMetrics.t)`, *default:* `nil`) - Metrics building a curve. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :curveMetrics => + list(GoogleApi.Language.V2.Model.XPSTablesClassificationMetricsCurveMetrics.t()) | nil + } + + field(:curveMetrics, + as: GoogleApi.Language.V2.Model.XPSTablesClassificationMetricsCurveMetrics, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSTablesClassificationMetrics do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSTablesClassificationMetrics.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSTablesClassificationMetrics do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_tables_classification_metrics_curve_metrics.ex b/clients/language/lib/google_api/language/v2/model/xps_tables_classification_metrics_curve_metrics.ex new file mode 100644 index 0000000000..48d6433cea --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_tables_classification_metrics_curve_metrics.ex @@ -0,0 +1,69 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSTablesClassificationMetricsCurveMetrics do + @moduledoc """ + Metrics curve data point for a single value. + + ## Attributes + + * `aucPr` (*type:* `float()`, *default:* `nil`) - The area under the precision-recall curve. + * `aucRoc` (*type:* `float()`, *default:* `nil`) - The area under receiver operating characteristic curve. + * `confidenceMetricsEntries` (*type:* `list(GoogleApi.Language.V2.Model.XPSTablesConfidenceMetricsEntry.t)`, *default:* `nil`) - Metrics that have confidence thresholds. Precision-recall curve and ROC curve can be derived from them. + * `logLoss` (*type:* `float()`, *default:* `nil`) - The Log loss metric. + * `positionThreshold` (*type:* `integer()`, *default:* `nil`) - The position threshold value used to compute the metrics. + * `value` (*type:* `String.t`, *default:* `nil`) - The CATEGORY row value (for ARRAY unnested) the curve metrics are for. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :aucPr => float() | nil, + :aucRoc => float() | nil, + :confidenceMetricsEntries => + list(GoogleApi.Language.V2.Model.XPSTablesConfidenceMetricsEntry.t()) | nil, + :logLoss => float() | nil, + :positionThreshold => integer() | nil, + :value => String.t() | nil + } + + field(:aucPr) + field(:aucRoc) + + field(:confidenceMetricsEntries, + as: GoogleApi.Language.V2.Model.XPSTablesConfidenceMetricsEntry, + type: :list + ) + + field(:logLoss) + field(:positionThreshold) + field(:value) +end + +defimpl Poison.Decoder, + for: GoogleApi.Language.V2.Model.XPSTablesClassificationMetricsCurveMetrics do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSTablesClassificationMetricsCurveMetrics.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Language.V2.Model.XPSTablesClassificationMetricsCurveMetrics do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_tables_confidence_metrics_entry.ex b/clients/language/lib/google_api/language/v2/model/xps_tables_confidence_metrics_entry.ex new file mode 100644 index 0000000000..e8aadd7cfb --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_tables_confidence_metrics_entry.ex @@ -0,0 +1,73 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSTablesConfidenceMetricsEntry do + @moduledoc """ + Metrics for a single confidence threshold. + + ## Attributes + + * `confidenceThreshold` (*type:* `float()`, *default:* `nil`) - The confidence threshold value used to compute the metrics. + * `f1Score` (*type:* `float()`, *default:* `nil`) - The harmonic mean of recall and precision. (2 * precision * recall) / (precision + recall) + * `falseNegativeCount` (*type:* `String.t`, *default:* `nil`) - False negative count. + * `falsePositiveCount` (*type:* `String.t`, *default:* `nil`) - False positive count. + * `falsePositiveRate` (*type:* `float()`, *default:* `nil`) - FPR = #false positives / (#false positives + #true negatives) + * `precision` (*type:* `float()`, *default:* `nil`) - Precision = #true positives / (#true positives + #false positives). + * `recall` (*type:* `float()`, *default:* `nil`) - Recall = #true positives / (#true positives + #false negatives). + * `trueNegativeCount` (*type:* `String.t`, *default:* `nil`) - True negative count. + * `truePositiveCount` (*type:* `String.t`, *default:* `nil`) - True positive count. + * `truePositiveRate` (*type:* `float()`, *default:* `nil`) - TPR = #true positives / (#true positives + #false negatvies) + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :confidenceThreshold => float() | nil, + :f1Score => float() | nil, + :falseNegativeCount => String.t() | nil, + :falsePositiveCount => String.t() | nil, + :falsePositiveRate => float() | nil, + :precision => float() | nil, + :recall => float() | nil, + :trueNegativeCount => String.t() | nil, + :truePositiveCount => String.t() | nil, + :truePositiveRate => float() | nil + } + + field(:confidenceThreshold) + field(:f1Score) + field(:falseNegativeCount) + field(:falsePositiveCount) + field(:falsePositiveRate) + field(:precision) + field(:recall) + field(:trueNegativeCount) + field(:truePositiveCount) + field(:truePositiveRate) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSTablesConfidenceMetricsEntry do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSTablesConfidenceMetricsEntry.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSTablesConfidenceMetricsEntry do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_tables_dataset_metadata.ex b/clients/language/lib/google_api/language/v2/model/xps_tables_dataset_metadata.ex new file mode 100644 index 0000000000..440a7a0ee0 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_tables_dataset_metadata.ex @@ -0,0 +1,61 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSTablesDatasetMetadata do + @moduledoc """ + Metadata for a dataset used for AutoML Tables. Next ID: 6 + + ## Attributes + + * `mlUseColumnId` (*type:* `integer()`, *default:* `nil`) - Id the column to split the table. + * `primaryTableSpec` (*type:* `GoogleApi.Language.V2.Model.XPSTableSpec.t`, *default:* `nil`) - Primary table. + * `targetColumnCorrelations` (*type:* `%{optional(String.t) => GoogleApi.Language.V2.Model.XPSCorrelationStats.t}`, *default:* `nil`) - (the column id : its CorrelationStats with target column). + * `targetColumnId` (*type:* `integer()`, *default:* `nil`) - Id of the primary table column that should be used as the training label. + * `weightColumnId` (*type:* `integer()`, *default:* `nil`) - Id of the primary table column that should be used as the weight column. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :mlUseColumnId => integer() | nil, + :primaryTableSpec => GoogleApi.Language.V2.Model.XPSTableSpec.t() | nil, + :targetColumnCorrelations => + %{optional(String.t()) => GoogleApi.Language.V2.Model.XPSCorrelationStats.t()} | nil, + :targetColumnId => integer() | nil, + :weightColumnId => integer() | nil + } + + field(:mlUseColumnId) + field(:primaryTableSpec, as: GoogleApi.Language.V2.Model.XPSTableSpec) + + field(:targetColumnCorrelations, as: GoogleApi.Language.V2.Model.XPSCorrelationStats, type: :map) + + field(:targetColumnId) + field(:weightColumnId) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSTablesDatasetMetadata do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSTablesDatasetMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSTablesDatasetMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_tables_evaluation_metrics.ex b/clients/language/lib/google_api/language/v2/model/xps_tables_evaluation_metrics.ex new file mode 100644 index 0000000000..600f20f1a0 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_tables_evaluation_metrics.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSTablesEvaluationMetrics do + @moduledoc """ + + + ## Attributes + + * `classificationMetrics` (*type:* `GoogleApi.Language.V2.Model.XPSTablesClassificationMetrics.t`, *default:* `nil`) - Classification metrics. + * `regressionMetrics` (*type:* `GoogleApi.Language.V2.Model.XPSTablesRegressionMetrics.t`, *default:* `nil`) - Regression metrics. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :classificationMetrics => + GoogleApi.Language.V2.Model.XPSTablesClassificationMetrics.t() | nil, + :regressionMetrics => GoogleApi.Language.V2.Model.XPSTablesRegressionMetrics.t() | nil + } + + field(:classificationMetrics, as: GoogleApi.Language.V2.Model.XPSTablesClassificationMetrics) + field(:regressionMetrics, as: GoogleApi.Language.V2.Model.XPSTablesRegressionMetrics) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSTablesEvaluationMetrics do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSTablesEvaluationMetrics.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSTablesEvaluationMetrics do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_tables_model_column_info.ex b/clients/language/lib/google_api/language/v2/model/xps_tables_model_column_info.ex new file mode 100644 index 0000000000..5e5ede61ff --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_tables_model_column_info.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSTablesModelColumnInfo do + @moduledoc """ + An information specific to given column and Tables Model, in context of the Model and the predictions created by it. + + ## Attributes + + * `columnId` (*type:* `integer()`, *default:* `nil`) - The ID of the column. + * `featureImportance` (*type:* `number()`, *default:* `nil`) - When given as part of a Model: Measurement of how much model predictions correctness on the TEST data depend on values in this column. A value between 0 and 1, higher means higher influence. These values are normalized - for all input feature columns of a given model they add to 1. When given back by Predict or Batch Predict: Measurement of how impactful for the prediction returned for the given row the value in this column was. Specifically, the feature importance specifies the marginal contribution that the feature made to the prediction score compared to the baseline score. These values are computed using the Sampled Shapley method. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :columnId => integer() | nil, + :featureImportance => number() | nil + } + + field(:columnId) + field(:featureImportance) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSTablesModelColumnInfo do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSTablesModelColumnInfo.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSTablesModelColumnInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_tables_model_structure.ex b/clients/language/lib/google_api/language/v2/model/xps_tables_model_structure.ex new file mode 100644 index 0000000000..fecee8a616 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_tables_model_structure.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSTablesModelStructure do + @moduledoc """ + A description of Tables model structure. + + ## Attributes + + * `modelParameters` (*type:* `list(GoogleApi.Language.V2.Model.XPSTablesModelStructureModelParameters.t)`, *default:* `nil`) - A list of models. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :modelParameters => + list(GoogleApi.Language.V2.Model.XPSTablesModelStructureModelParameters.t()) | nil + } + + field(:modelParameters, + as: GoogleApi.Language.V2.Model.XPSTablesModelStructureModelParameters, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSTablesModelStructure do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSTablesModelStructure.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSTablesModelStructure do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_tables_model_structure_model_parameters.ex b/clients/language/lib/google_api/language/v2/model/xps_tables_model_structure_model_parameters.ex new file mode 100644 index 0000000000..6a20f225a0 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_tables_model_structure_model_parameters.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSTablesModelStructureModelParameters do + @moduledoc """ + Model hyper-parameters for a model. + + ## Attributes + + * `hyperparameters` (*type:* `list(GoogleApi.Language.V2.Model.XPSTablesModelStructureModelParametersParameter.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :hyperparameters => + list(GoogleApi.Language.V2.Model.XPSTablesModelStructureModelParametersParameter.t()) + | nil + } + + field(:hyperparameters, + as: GoogleApi.Language.V2.Model.XPSTablesModelStructureModelParametersParameter, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSTablesModelStructureModelParameters do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSTablesModelStructureModelParameters.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSTablesModelStructureModelParameters do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_tables_model_structure_model_parameters_parameter.ex b/clients/language/lib/google_api/language/v2/model/xps_tables_model_structure_model_parameters_parameter.ex new file mode 100644 index 0000000000..b23d3dbc85 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_tables_model_structure_model_parameters_parameter.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSTablesModelStructureModelParametersParameter do + @moduledoc """ + + + ## Attributes + + * `floatValue` (*type:* `float()`, *default:* `nil`) - Float type parameter value. + * `intValue` (*type:* `String.t`, *default:* `nil`) - Integer type parameter value. + * `name` (*type:* `String.t`, *default:* `nil`) - Parameter name. + * `stringValue` (*type:* `String.t`, *default:* `nil`) - String type parameter value. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :floatValue => float() | nil, + :intValue => String.t() | nil, + :name => String.t() | nil, + :stringValue => String.t() | nil + } + + field(:floatValue) + field(:intValue) + field(:name) + field(:stringValue) +end + +defimpl Poison.Decoder, + for: GoogleApi.Language.V2.Model.XPSTablesModelStructureModelParametersParameter do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSTablesModelStructureModelParametersParameter.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Language.V2.Model.XPSTablesModelStructureModelParametersParameter do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_tables_preprocess_response.ex b/clients/language/lib/google_api/language/v2/model/xps_tables_preprocess_response.ex new file mode 100644 index 0000000000..189fffb222 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_tables_preprocess_response.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSTablesPreprocessResponse do + @moduledoc """ + + + ## Attributes + + * `tablesDatasetMetadata` (*type:* `GoogleApi.Language.V2.Model.XPSTablesDatasetMetadata.t`, *default:* `nil`) - The table/column id, column_name and the DataTypes of the columns will be populated. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :tablesDatasetMetadata => GoogleApi.Language.V2.Model.XPSTablesDatasetMetadata.t() | nil + } + + field(:tablesDatasetMetadata, as: GoogleApi.Language.V2.Model.XPSTablesDatasetMetadata) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSTablesPreprocessResponse do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSTablesPreprocessResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSTablesPreprocessResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_tables_regression_metrics.ex b/clients/language/lib/google_api/language/v2/model/xps_tables_regression_metrics.ex new file mode 100644 index 0000000000..0c6b03e98e --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_tables_regression_metrics.ex @@ -0,0 +1,67 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSTablesRegressionMetrics do + @moduledoc """ + Metrics for Tables regression problems. + + ## Attributes + + * `meanAbsoluteError` (*type:* `float()`, *default:* `nil`) - Mean absolute error. + * `meanAbsolutePercentageError` (*type:* `float()`, *default:* `nil`) - Mean absolute percentage error, only set if all of the target column's values are positive. + * `rSquared` (*type:* `float()`, *default:* `nil`) - R squared. + * `regressionMetricsEntries` (*type:* `list(GoogleApi.Language.V2.Model.XPSRegressionMetricsEntry.t)`, *default:* `nil`) - A list of actual versus predicted points for the model being evaluated. + * `rootMeanSquaredError` (*type:* `float()`, *default:* `nil`) - Root mean squared error. + * `rootMeanSquaredLogError` (*type:* `float()`, *default:* `nil`) - Root mean squared log error. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :meanAbsoluteError => float() | nil, + :meanAbsolutePercentageError => float() | nil, + :rSquared => float() | nil, + :regressionMetricsEntries => + list(GoogleApi.Language.V2.Model.XPSRegressionMetricsEntry.t()) | nil, + :rootMeanSquaredError => float() | nil, + :rootMeanSquaredLogError => float() | nil + } + + field(:meanAbsoluteError) + field(:meanAbsolutePercentageError) + field(:rSquared) + + field(:regressionMetricsEntries, + as: GoogleApi.Language.V2.Model.XPSRegressionMetricsEntry, + type: :list + ) + + field(:rootMeanSquaredError) + field(:rootMeanSquaredLogError) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSTablesRegressionMetrics do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSTablesRegressionMetrics.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSTablesRegressionMetrics do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_tables_train_response.ex b/clients/language/lib/google_api/language/v2/model/xps_tables_train_response.ex new file mode 100644 index 0000000000..67a7c41265 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_tables_train_response.ex @@ -0,0 +1,61 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSTablesTrainResponse do + @moduledoc """ + + + ## Attributes + + * `modelStructure` (*type:* `GoogleApi.Language.V2.Model.XPSTablesModelStructure.t`, *default:* `nil`) - + * `predictionSampleRows` (*type:* `list(GoogleApi.Language.V2.Model.XPSRow.t)`, *default:* `nil`) - Sample rows from the dataset this model was trained. + * `tablesModelColumnInfo` (*type:* `list(GoogleApi.Language.V2.Model.XPSTablesModelColumnInfo.t)`, *default:* `nil`) - Output only. Auxiliary information for each of the input_feature_column_specs, with respect to this particular model. + * `trainCostMilliNodeHours` (*type:* `String.t`, *default:* `nil`) - 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. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :modelStructure => GoogleApi.Language.V2.Model.XPSTablesModelStructure.t() | nil, + :predictionSampleRows => list(GoogleApi.Language.V2.Model.XPSRow.t()) | nil, + :tablesModelColumnInfo => + list(GoogleApi.Language.V2.Model.XPSTablesModelColumnInfo.t()) | nil, + :trainCostMilliNodeHours => String.t() | nil + } + + field(:modelStructure, as: GoogleApi.Language.V2.Model.XPSTablesModelStructure) + field(:predictionSampleRows, as: GoogleApi.Language.V2.Model.XPSRow, type: :list) + + field(:tablesModelColumnInfo, + as: GoogleApi.Language.V2.Model.XPSTablesModelColumnInfo, + type: :list + ) + + field(:trainCostMilliNodeHours) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSTablesTrainResponse do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSTablesTrainResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSTablesTrainResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_tables_training_operation_metadata.ex b/clients/language/lib/google_api/language/v2/model/xps_tables_training_operation_metadata.ex new file mode 100644 index 0000000000..1a7c21e3d6 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_tables_training_operation_metadata.ex @@ -0,0 +1,67 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSTablesTrainingOperationMetadata do + @moduledoc """ + + + ## Attributes + + * `createModelStage` (*type:* `String.t`, *default:* `nil`) - Current stage of creating model. + * `optimizationObjective` (*type:* `String.t`, *default:* `nil`) - The optimization objective for model. + * `topTrials` (*type:* `list(GoogleApi.Language.V2.Model.XPSTuningTrial.t)`, *default:* `nil`) - This field is for training. When the operation is terminated successfully, AutoML Backend post this field to operation metadata in spanner. If the metadata has no trials returned, the training operation is supposed to be a failure. + * `trainBudgetMilliNodeHours` (*type:* `String.t`, *default:* `nil`) - Creating model budget. + * `trainingObjectivePoints` (*type:* `list(GoogleApi.Language.V2.Model.XPSTrainingObjectivePoint.t)`, *default:* `nil`) - This field records the training objective value with respect to time, giving insight into how the model architecture search is performing as training time elapses. + * `trainingStartTime` (*type:* `DateTime.t`, *default:* `nil`) - Timestamp when training process starts. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :createModelStage => String.t() | nil, + :optimizationObjective => String.t() | nil, + :topTrials => list(GoogleApi.Language.V2.Model.XPSTuningTrial.t()) | nil, + :trainBudgetMilliNodeHours => String.t() | nil, + :trainingObjectivePoints => + list(GoogleApi.Language.V2.Model.XPSTrainingObjectivePoint.t()) | nil, + :trainingStartTime => DateTime.t() | nil + } + + field(:createModelStage) + field(:optimizationObjective) + field(:topTrials, as: GoogleApi.Language.V2.Model.XPSTuningTrial, type: :list) + field(:trainBudgetMilliNodeHours) + + field(:trainingObjectivePoints, + as: GoogleApi.Language.V2.Model.XPSTrainingObjectivePoint, + type: :list + ) + + field(:trainingStartTime, as: DateTime) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSTablesTrainingOperationMetadata do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSTablesTrainingOperationMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSTablesTrainingOperationMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_text_component_model.ex b/clients/language/lib/google_api/language/v2/model/xps_text_component_model.ex new file mode 100644 index 0000000000..aa4f64bc65 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_text_component_model.ex @@ -0,0 +1,70 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSTextComponentModel do + @moduledoc """ + Component model. Next ID: 10 + + ## Attributes + + * `batchPredictionModelGcsUri` (*type:* `String.t`, *default:* `nil`) - The Cloud Storage resource path to hold batch prediction model. + * `onlinePredictionModelGcsUri` (*type:* `String.t`, *default:* `nil`) - The Cloud Storage resource path to hold online prediction model. + * `partition` (*type:* `String.t`, *default:* `nil`) - The partition where the model is deployed. Populated by uCAIP BE as part of online PredictRequest. + * `servingArtifact` (*type:* `GoogleApi.Language.V2.Model.XPSModelArtifactItem.t`, *default:* `nil`) - The default model binary file used for serving (e.g. online predict, batch predict) via public Cloud Ai Platform API. + * `servoModelName` (*type:* `String.t`, *default:* `nil`) - The name of servo model. Populated by uCAIP BE as part of online PredictRequest. + * `submodelName` (*type:* `String.t`, *default:* `nil`) - The name of the trained NL submodel. + * `submodelType` (*type:* `String.t`, *default:* `nil`) - The type of trained NL submodel + * `tfRuntimeVersion` (*type:* `String.t`, *default:* `nil`) - ## The fields below are only populated under uCAIP request scope. https://cloud.google.com/ml-engine/docs/runtime-version-list + * `versionNumber` (*type:* `String.t`, *default:* `nil`) - The servomatic model version number. Populated by uCAIP BE as part of online PredictRequest. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :batchPredictionModelGcsUri => String.t() | nil, + :onlinePredictionModelGcsUri => String.t() | nil, + :partition => String.t() | nil, + :servingArtifact => GoogleApi.Language.V2.Model.XPSModelArtifactItem.t() | nil, + :servoModelName => String.t() | nil, + :submodelName => String.t() | nil, + :submodelType => String.t() | nil, + :tfRuntimeVersion => String.t() | nil, + :versionNumber => String.t() | nil + } + + field(:batchPredictionModelGcsUri) + field(:onlinePredictionModelGcsUri) + field(:partition) + field(:servingArtifact, as: GoogleApi.Language.V2.Model.XPSModelArtifactItem) + field(:servoModelName) + field(:submodelName) + field(:submodelType) + field(:tfRuntimeVersion) + field(:versionNumber) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSTextComponentModel do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSTextComponentModel.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSTextComponentModel do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_text_extraction_evaluation_metrics.ex b/clients/language/lib/google_api/language/v2/model/xps_text_extraction_evaluation_metrics.ex new file mode 100644 index 0000000000..ce44c5c92a --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_text_extraction_evaluation_metrics.ex @@ -0,0 +1,68 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSTextExtractionEvaluationMetrics do + @moduledoc """ + + + ## Attributes + + * `bestF1ConfidenceMetrics` (*type:* `GoogleApi.Language.V2.Model.XPSConfidenceMetricsEntry.t`, *default:* `nil`) - Values are at the highest F1 score on the precision-recall curve. Only confidence_threshold, recall, precision, and f1_score will be set. + * `confidenceMetricsEntries` (*type:* `list(GoogleApi.Language.V2.Model.XPSConfidenceMetricsEntry.t)`, *default:* `nil`) - If the enclosing EvaluationMetrics.label is empty, confidence_metrics_entries is an evaluation of the entire model across all labels. If the enclosing EvaluationMetrics.label is set, confidence_metrics_entries applies to that label. + * `confusionMatrix` (*type:* `GoogleApi.Language.V2.Model.XPSConfusionMatrix.t`, *default:* `nil`) - Confusion matrix of the model, at the default confidence threshold (0.0). Only set for whole-model evaluation, not for evaluation per label. + * `perLabelConfidenceMetrics` (*type:* `%{optional(String.t) => GoogleApi.Language.V2.Model.XPSConfidenceMetricsEntry.t}`, *default:* `nil`) - Only recall, precision, and f1_score will be set. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :bestF1ConfidenceMetrics => + GoogleApi.Language.V2.Model.XPSConfidenceMetricsEntry.t() | nil, + :confidenceMetricsEntries => + list(GoogleApi.Language.V2.Model.XPSConfidenceMetricsEntry.t()) | nil, + :confusionMatrix => GoogleApi.Language.V2.Model.XPSConfusionMatrix.t() | nil, + :perLabelConfidenceMetrics => + %{optional(String.t()) => GoogleApi.Language.V2.Model.XPSConfidenceMetricsEntry.t()} + | nil + } + + field(:bestF1ConfidenceMetrics, as: GoogleApi.Language.V2.Model.XPSConfidenceMetricsEntry) + + field(:confidenceMetricsEntries, + as: GoogleApi.Language.V2.Model.XPSConfidenceMetricsEntry, + type: :list + ) + + field(:confusionMatrix, as: GoogleApi.Language.V2.Model.XPSConfusionMatrix) + + field(:perLabelConfidenceMetrics, + as: GoogleApi.Language.V2.Model.XPSConfidenceMetricsEntry, + type: :map + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSTextExtractionEvaluationMetrics do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSTextExtractionEvaluationMetrics.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSTextExtractionEvaluationMetrics do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_text_sentiment_evaluation_metrics.ex b/clients/language/lib/google_api/language/v2/model/xps_text_sentiment_evaluation_metrics.ex new file mode 100644 index 0000000000..87f48b35c0 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_text_sentiment_evaluation_metrics.ex @@ -0,0 +1,67 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSTextSentimentEvaluationMetrics do + @moduledoc """ + Model evaluation metrics for text sentiment problems. + + ## Attributes + + * `confusionMatrix` (*type:* `GoogleApi.Language.V2.Model.XPSConfusionMatrix.t`, *default:* `nil`) - Output only. Confusion matrix of the evaluation. Only set for the overall model evaluation, not for evaluation of a single annotation spec. + * `f1Score` (*type:* `number()`, *default:* `nil`) - Output only. The harmonic mean of recall and precision. + * `linearKappa` (*type:* `number()`, *default:* `nil`) - Output only. Linear weighted kappa. Only set for the overall model evaluation, not for evaluation of a single annotation spec. + * `meanAbsoluteError` (*type:* `number()`, *default:* `nil`) - Output only. Mean absolute error. Only set for the overall model evaluation, not for evaluation of a single annotation spec. + * `meanSquaredError` (*type:* `number()`, *default:* `nil`) - Output only. Mean squared error. Only set for the overall model evaluation, not for evaluation of a single annotation spec. + * `precision` (*type:* `number()`, *default:* `nil`) - Output only. Precision. + * `quadraticKappa` (*type:* `number()`, *default:* `nil`) - Output only. Quadratic weighted kappa. Only set for the overall model evaluation, not for evaluation of a single annotation spec. + * `recall` (*type:* `number()`, *default:* `nil`) - Output only. Recall. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :confusionMatrix => GoogleApi.Language.V2.Model.XPSConfusionMatrix.t() | nil, + :f1Score => number() | nil, + :linearKappa => number() | nil, + :meanAbsoluteError => number() | nil, + :meanSquaredError => number() | nil, + :precision => number() | nil, + :quadraticKappa => number() | nil, + :recall => number() | nil + } + + field(:confusionMatrix, as: GoogleApi.Language.V2.Model.XPSConfusionMatrix) + field(:f1Score) + field(:linearKappa) + field(:meanAbsoluteError) + field(:meanSquaredError) + field(:precision) + field(:quadraticKappa) + field(:recall) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSTextSentimentEvaluationMetrics do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSTextSentimentEvaluationMetrics.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSTextSentimentEvaluationMetrics do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_text_to_speech_train_response.ex b/clients/language/lib/google_api/language/v2/model/xps_text_to_speech_train_response.ex new file mode 100644 index 0000000000..4d7a1f6de6 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_text_to_speech_train_response.ex @@ -0,0 +1,41 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSTextToSpeechTrainResponse do + @moduledoc """ + TextToSpeech train response + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSTextToSpeechTrainResponse do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSTextToSpeechTrainResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSTextToSpeechTrainResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_text_train_response.ex b/clients/language/lib/google_api/language/v2/model/xps_text_train_response.ex new file mode 100644 index 0000000000..f095bd535e --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_text_train_response.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSTextTrainResponse do + @moduledoc """ + + + ## Attributes + + * `componentModel` (*type:* `list(GoogleApi.Language.V2.Model.XPSTextComponentModel.t)`, *default:* `nil`) - Component submodels. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :componentModel => list(GoogleApi.Language.V2.Model.XPSTextComponentModel.t()) | nil + } + + field(:componentModel, as: GoogleApi.Language.V2.Model.XPSTextComponentModel, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSTextTrainResponse do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSTextTrainResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSTextTrainResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_tf_js_format.ex b/clients/language/lib/google_api/language/v2/model/xps_tf_js_format.ex new file mode 100644 index 0000000000..83158a4da0 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_tf_js_format.ex @@ -0,0 +1,41 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSTfJsFormat do + @moduledoc """ + A [TensorFlow.js](https://www.tensorflow.org/js) model that can be used in the browser and in Node.js using JavaScript. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSTfJsFormat do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSTfJsFormat.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSTfJsFormat do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_tf_lite_format.ex b/clients/language/lib/google_api/language/v2/model/xps_tf_lite_format.ex new file mode 100644 index 0000000000..b88f1efc9a --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_tf_lite_format.ex @@ -0,0 +1,41 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSTfLiteFormat do + @moduledoc """ + LINT.IfChange A model format used for mobile and IoT devices. See https://www.tensorflow.org/lite. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSTfLiteFormat do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSTfLiteFormat.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSTfLiteFormat do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_tf_saved_model_format.ex b/clients/language/lib/google_api/language/v2/model/xps_tf_saved_model_format.ex new file mode 100644 index 0000000000..a8cd71ffea --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_tf_saved_model_format.ex @@ -0,0 +1,41 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSTfSavedModelFormat do + @moduledoc """ + A tensorflow model format in SavedModel format. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSTfSavedModelFormat do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSTfSavedModelFormat.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSTfSavedModelFormat do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_timestamp_stats.ex b/clients/language/lib/google_api/language/v2/model/xps_timestamp_stats.ex new file mode 100644 index 0000000000..4dd6bf33f7 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_timestamp_stats.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSTimestampStats do + @moduledoc """ + The data statistics of a series of TIMESTAMP values. + + ## Attributes + + * `commonStats` (*type:* `GoogleApi.Language.V2.Model.XPSCommonStats.t`, *default:* `nil`) - + * `granularStats` (*type:* `%{optional(String.t) => GoogleApi.Language.V2.Model.XPSTimestampStatsGranularStats.t}`, *default:* `nil`) - The string key is the pre-defined granularity. Currently supported: hour_of_day, day_of_week, month_of_year. Granularities finer that the granularity of timestamp data are not populated (e.g. if timestamps are at day granularity, then hour_of_day is not populated). + * `medianTimestampNanos` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :commonStats => GoogleApi.Language.V2.Model.XPSCommonStats.t() | nil, + :granularStats => + %{ + optional(String.t()) => + GoogleApi.Language.V2.Model.XPSTimestampStatsGranularStats.t() + } + | nil, + :medianTimestampNanos => String.t() | nil + } + + field(:commonStats, as: GoogleApi.Language.V2.Model.XPSCommonStats) + + field(:granularStats, as: GoogleApi.Language.V2.Model.XPSTimestampStatsGranularStats, type: :map) + + field(:medianTimestampNanos) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSTimestampStats do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSTimestampStats.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSTimestampStats do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_timestamp_stats_granular_stats.ex b/clients/language/lib/google_api/language/v2/model/xps_timestamp_stats_granular_stats.ex new file mode 100644 index 0000000000..3a9bb145a3 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_timestamp_stats_granular_stats.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSTimestampStatsGranularStats do + @moduledoc """ + Stats split by a defined in context granularity. + + ## Attributes + + * `buckets` (*type:* `map()`, *default:* `nil`) - A map from granularity key to example count for that key. E.g. for hour_of_day `13` means 1pm, or for month_of_year `5` means May). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :buckets => map() | nil + } + + field(:buckets, type: :map) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSTimestampStatsGranularStats do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSTimestampStatsGranularStats.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSTimestampStatsGranularStats do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_track_metrics_entry.ex b/clients/language/lib/google_api/language/v2/model/xps_track_metrics_entry.ex new file mode 100644 index 0000000000..59448f7744 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_track_metrics_entry.ex @@ -0,0 +1,63 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSTrackMetricsEntry do + @moduledoc """ + Track matching model metrics for a single track match threshold and multiple label match confidence thresholds. Next tag: 6. + + ## Attributes + + * `confidenceMetricsEntries` (*type:* `list(GoogleApi.Language.V2.Model.XPSTrackMetricsEntryConfidenceMetricsEntry.t)`, *default:* `nil`) - Output only. Metrics for each label-match confidence_threshold from 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is derived from them. + * `iouThreshold` (*type:* `number()`, *default:* `nil`) - Output only. The intersection-over-union threshold value between bounding boxes across frames used to compute this metric entry. + * `meanBoundingBoxIou` (*type:* `number()`, *default:* `nil`) - Output only. The mean bounding box iou over all confidence thresholds. + * `meanMismatchRate` (*type:* `number()`, *default:* `nil`) - Output only. The mean mismatch rate over all confidence thresholds. + * `meanTrackingAveragePrecision` (*type:* `number()`, *default:* `nil`) - Output only. The mean average precision over all confidence thresholds. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :confidenceMetricsEntries => + list(GoogleApi.Language.V2.Model.XPSTrackMetricsEntryConfidenceMetricsEntry.t()) | nil, + :iouThreshold => number() | nil, + :meanBoundingBoxIou => number() | nil, + :meanMismatchRate => number() | nil, + :meanTrackingAveragePrecision => number() | nil + } + + field(:confidenceMetricsEntries, + as: GoogleApi.Language.V2.Model.XPSTrackMetricsEntryConfidenceMetricsEntry, + type: :list + ) + + field(:iouThreshold) + field(:meanBoundingBoxIou) + field(:meanMismatchRate) + field(:meanTrackingAveragePrecision) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSTrackMetricsEntry do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSTrackMetricsEntry.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSTrackMetricsEntry do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_track_metrics_entry_confidence_metrics_entry.ex b/clients/language/lib/google_api/language/v2/model/xps_track_metrics_entry_confidence_metrics_entry.ex new file mode 100644 index 0000000000..5485c13c5b --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_track_metrics_entry_confidence_metrics_entry.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSTrackMetricsEntryConfidenceMetricsEntry do + @moduledoc """ + Metrics for a single confidence threshold. Next tag: 6. + + ## Attributes + + * `boundingBoxIou` (*type:* `number()`, *default:* `nil`) - Output only. Bounding box intersection-over-union precision. Measures how well the bounding boxes overlap between each other (e.g. complete overlap or just barely above iou_threshold). + * `confidenceThreshold` (*type:* `number()`, *default:* `nil`) - Output only. The confidence threshold value used to compute the metrics. + * `mismatchRate` (*type:* `number()`, *default:* `nil`) - Output only. Mismatch rate, which measures the tracking consistency, i.e. correctness of instance ID continuity. + * `trackingPrecision` (*type:* `number()`, *default:* `nil`) - Output only. Tracking precision. + * `trackingRecall` (*type:* `number()`, *default:* `nil`) - Output only. Tracking recall. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :boundingBoxIou => number() | nil, + :confidenceThreshold => number() | nil, + :mismatchRate => number() | nil, + :trackingPrecision => number() | nil, + :trackingRecall => number() | nil + } + + field(:boundingBoxIou) + field(:confidenceThreshold) + field(:mismatchRate) + field(:trackingPrecision) + field(:trackingRecall) +end + +defimpl Poison.Decoder, + for: GoogleApi.Language.V2.Model.XPSTrackMetricsEntryConfidenceMetricsEntry do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSTrackMetricsEntryConfidenceMetricsEntry.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Language.V2.Model.XPSTrackMetricsEntryConfidenceMetricsEntry do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_train_response.ex b/clients/language/lib/google_api/language/v2/model/xps_train_response.ex new file mode 100644 index 0000000000..859b7c1748 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_train_response.ex @@ -0,0 +1,132 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSTrainResponse do + @moduledoc """ + Next ID: 18 + + ## Attributes + + * `deployedModelSizeBytes` (*type:* `String.t`, *default:* `nil`) - Estimated model size in bytes once deployed. + * `errorAnalysisConfigs` (*type:* `list(GoogleApi.Language.V2.Model.XPSVisionErrorAnalysisConfig.t)`, *default:* `nil`) - Optional vision model error analysis configuration. The field is set when model error analysis is enabled in the training request. The results of error analysis will be binded together with evaluation results (in the format of AnnotatedExample). + * `evaluatedExampleSet` (*type:* `GoogleApi.Language.V2.Model.XPSExampleSet.t`, *default:* `nil`) - Examples used to evaluate the model (usually the test set), with the predicted annotations. The file_spec should point to recordio file(s) of AnnotatedExample. For each returned example, the example_id_token and annotations predicted by the model must be set. The example payload can and is recommended to be omitted. + * `evaluationMetricsSet` (*type:* `GoogleApi.Language.V2.Model.XPSEvaluationMetricsSet.t`, *default:* `nil`) - The trained model evaluation metrics. This can be optionally returned. + * `explanationConfigs` (*type:* `list(GoogleApi.Language.V2.Model.XPSResponseExplanationSpec.t)`, *default:* `nil`) - VisionExplanationConfig for XAI on test set. Optional for when XAI is enable in training request. + * `imageClassificationTrainResp` (*type:* `GoogleApi.Language.V2.Model.XPSImageClassificationTrainResponse.t`, *default:* `nil`) - + * `imageObjectDetectionTrainResp` (*type:* `GoogleApi.Language.V2.Model.XPSImageObjectDetectionModelSpec.t`, *default:* `nil`) - + * `imageSegmentationTrainResp` (*type:* `GoogleApi.Language.V2.Model.XPSImageSegmentationTrainResponse.t`, *default:* `nil`) - + * `modelToken` (*type:* `String.t`, *default:* `nil`) - Token that represents the trained model. This is considered immutable and is persisted in AutoML. xPS can put their own proto in the byte string, to e.g. point to the model checkpoints. The token is passed to other xPS APIs to refer to the model. + * `speechTrainResp` (*type:* `GoogleApi.Language.V2.Model.XPSSpeechModelSpec.t`, *default:* `nil`) - + * `tablesTrainResp` (*type:* `GoogleApi.Language.V2.Model.XPSTablesTrainResponse.t`, *default:* `nil`) - + * `textToSpeechTrainResp` (*type:* `GoogleApi.Language.V2.Model.XPSTextToSpeechTrainResponse.t`, *default:* `nil`) - + * `textTrainResp` (*type:* `GoogleApi.Language.V2.Model.XPSTextTrainResponse.t`, *default:* `nil`) - Will only be needed for uCAIP from Beta. + * `translationTrainResp` (*type:* `GoogleApi.Language.V2.Model.XPSTranslationTrainResponse.t`, *default:* `nil`) - + * `videoActionRecognitionTrainResp` (*type:* `GoogleApi.Language.V2.Model.XPSVideoActionRecognitionTrainResponse.t`, *default:* `nil`) - + * `videoClassificationTrainResp` (*type:* `GoogleApi.Language.V2.Model.XPSVideoClassificationTrainResponse.t`, *default:* `nil`) - + * `videoObjectTrackingTrainResp` (*type:* `GoogleApi.Language.V2.Model.XPSVideoObjectTrackingTrainResponse.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deployedModelSizeBytes => String.t() | nil, + :errorAnalysisConfigs => + list(GoogleApi.Language.V2.Model.XPSVisionErrorAnalysisConfig.t()) | nil, + :evaluatedExampleSet => GoogleApi.Language.V2.Model.XPSExampleSet.t() | nil, + :evaluationMetricsSet => GoogleApi.Language.V2.Model.XPSEvaluationMetricsSet.t() | nil, + :explanationConfigs => + list(GoogleApi.Language.V2.Model.XPSResponseExplanationSpec.t()) | nil, + :imageClassificationTrainResp => + GoogleApi.Language.V2.Model.XPSImageClassificationTrainResponse.t() | nil, + :imageObjectDetectionTrainResp => + GoogleApi.Language.V2.Model.XPSImageObjectDetectionModelSpec.t() | nil, + :imageSegmentationTrainResp => + GoogleApi.Language.V2.Model.XPSImageSegmentationTrainResponse.t() | nil, + :modelToken => String.t() | nil, + :speechTrainResp => GoogleApi.Language.V2.Model.XPSSpeechModelSpec.t() | nil, + :tablesTrainResp => GoogleApi.Language.V2.Model.XPSTablesTrainResponse.t() | nil, + :textToSpeechTrainResp => + GoogleApi.Language.V2.Model.XPSTextToSpeechTrainResponse.t() | nil, + :textTrainResp => GoogleApi.Language.V2.Model.XPSTextTrainResponse.t() | nil, + :translationTrainResp => + GoogleApi.Language.V2.Model.XPSTranslationTrainResponse.t() | nil, + :videoActionRecognitionTrainResp => + GoogleApi.Language.V2.Model.XPSVideoActionRecognitionTrainResponse.t() | nil, + :videoClassificationTrainResp => + GoogleApi.Language.V2.Model.XPSVideoClassificationTrainResponse.t() | nil, + :videoObjectTrackingTrainResp => + GoogleApi.Language.V2.Model.XPSVideoObjectTrackingTrainResponse.t() | nil + } + + field(:deployedModelSizeBytes) + + field(:errorAnalysisConfigs, + as: GoogleApi.Language.V2.Model.XPSVisionErrorAnalysisConfig, + type: :list + ) + + field(:evaluatedExampleSet, as: GoogleApi.Language.V2.Model.XPSExampleSet) + field(:evaluationMetricsSet, as: GoogleApi.Language.V2.Model.XPSEvaluationMetricsSet) + + field(:explanationConfigs, + as: GoogleApi.Language.V2.Model.XPSResponseExplanationSpec, + type: :list + ) + + field(:imageClassificationTrainResp, + as: GoogleApi.Language.V2.Model.XPSImageClassificationTrainResponse + ) + + field(:imageObjectDetectionTrainResp, + as: GoogleApi.Language.V2.Model.XPSImageObjectDetectionModelSpec + ) + + field(:imageSegmentationTrainResp, + as: GoogleApi.Language.V2.Model.XPSImageSegmentationTrainResponse + ) + + field(:modelToken) + field(:speechTrainResp, as: GoogleApi.Language.V2.Model.XPSSpeechModelSpec) + field(:tablesTrainResp, as: GoogleApi.Language.V2.Model.XPSTablesTrainResponse) + field(:textToSpeechTrainResp, as: GoogleApi.Language.V2.Model.XPSTextToSpeechTrainResponse) + field(:textTrainResp, as: GoogleApi.Language.V2.Model.XPSTextTrainResponse) + field(:translationTrainResp, as: GoogleApi.Language.V2.Model.XPSTranslationTrainResponse) + + field(:videoActionRecognitionTrainResp, + as: GoogleApi.Language.V2.Model.XPSVideoActionRecognitionTrainResponse + ) + + field(:videoClassificationTrainResp, + as: GoogleApi.Language.V2.Model.XPSVideoClassificationTrainResponse + ) + + field(:videoObjectTrackingTrainResp, + as: GoogleApi.Language.V2.Model.XPSVideoObjectTrackingTrainResponse + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSTrainResponse do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSTrainResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSTrainResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_training_objective_point.ex b/clients/language/lib/google_api/language/v2/model/xps_training_objective_point.ex new file mode 100644 index 0000000000..eb9967d2cd --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_training_objective_point.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSTrainingObjectivePoint do + @moduledoc """ + + + ## Attributes + + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - The time at which this point was recorded. + * `value` (*type:* `number()`, *default:* `nil`) - The objective value when this point was recorded. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :createTime => DateTime.t() | nil, + :value => number() | nil + } + + field(:createTime, as: DateTime) + field(:value) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSTrainingObjectivePoint do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSTrainingObjectivePoint.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSTrainingObjectivePoint do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_translation_evaluation_metrics.ex b/clients/language/lib/google_api/language/v2/model/xps_translation_evaluation_metrics.ex new file mode 100644 index 0000000000..273f46eb6b --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_translation_evaluation_metrics.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSTranslationEvaluationMetrics do + @moduledoc """ + Evaluation metrics for the dataset. + + ## Attributes + + * `baseBleuScore` (*type:* `float()`, *default:* `nil`) - BLEU score for base model. + * `bleuScore` (*type:* `float()`, *default:* `nil`) - BLEU score. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :baseBleuScore => float() | nil, + :bleuScore => float() | nil + } + + field(:baseBleuScore) + field(:bleuScore) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSTranslationEvaluationMetrics do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSTranslationEvaluationMetrics.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSTranslationEvaluationMetrics do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_translation_preprocess_response.ex b/clients/language/lib/google_api/language/v2/model/xps_translation_preprocess_response.ex new file mode 100644 index 0000000000..46e6b25700 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_translation_preprocess_response.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSTranslationPreprocessResponse do + @moduledoc """ + Translation preprocess response. + + ## Attributes + + * `parsedExampleCount` (*type:* `String.t`, *default:* `nil`) - Total example count parsed. + * `validExampleCount` (*type:* `String.t`, *default:* `nil`) - Total valid example count. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :parsedExampleCount => String.t() | nil, + :validExampleCount => String.t() | nil + } + + field(:parsedExampleCount) + field(:validExampleCount) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSTranslationPreprocessResponse do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSTranslationPreprocessResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSTranslationPreprocessResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_translation_train_response.ex b/clients/language/lib/google_api/language/v2/model/xps_translation_train_response.ex new file mode 100644 index 0000000000..43bbcf71f4 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_translation_train_response.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSTranslationTrainResponse do + @moduledoc """ + Train response for translation. + + ## Attributes + + * `modelType` (*type:* `String.t`, *default:* `nil`) - Type of the model. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :modelType => String.t() | nil + } + + field(:modelType) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSTranslationTrainResponse do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSTranslationTrainResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSTranslationTrainResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_tuning_trial.ex b/clients/language/lib/google_api/language/v2/model/xps_tuning_trial.ex new file mode 100644 index 0000000000..fa6e992736 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_tuning_trial.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSTuningTrial do + @moduledoc """ + Metrics for a tuning job generated, will get forwarded to Stackdriver as model tuning logs. Setting this as a standalone message out of CreateModelMetadata to avoid confusion as we expose this message only to users. + + ## Attributes + + * `modelStructure` (*type:* `GoogleApi.Language.V2.Model.XPSTablesModelStructure.t`, *default:* `nil`) - Model parameters for the trial. + * `trainingObjectivePoint` (*type:* `GoogleApi.Language.V2.Model.XPSTrainingObjectivePoint.t`, *default:* `nil`) - The optimization objective evaluation of the eval split data. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :modelStructure => GoogleApi.Language.V2.Model.XPSTablesModelStructure.t() | nil, + :trainingObjectivePoint => + GoogleApi.Language.V2.Model.XPSTrainingObjectivePoint.t() | nil + } + + field(:modelStructure, as: GoogleApi.Language.V2.Model.XPSTablesModelStructure) + field(:trainingObjectivePoint, as: GoogleApi.Language.V2.Model.XPSTrainingObjectivePoint) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSTuningTrial do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSTuningTrial.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSTuningTrial do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_video_action_metrics_entry.ex b/clients/language/lib/google_api/language/v2/model/xps_video_action_metrics_entry.ex new file mode 100644 index 0000000000..c69dea2290 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_video_action_metrics_entry.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSVideoActionMetricsEntry do + @moduledoc """ + The Evaluation metrics entry given a specific precision_window_length. + + ## Attributes + + * `confidenceMetricsEntries` (*type:* `list(GoogleApi.Language.V2.Model.XPSVideoActionMetricsEntryConfidenceMetricsEntry.t)`, *default:* `nil`) - Metrics for each label-match confidence_threshold from 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. + * `meanAveragePrecision` (*type:* `number()`, *default:* `nil`) - The mean average precision. + * `precisionWindowLength` (*type:* `String.t`, *default:* `nil`) - This VideoActionMetricsEntry is calculated based on this prediction window length. If the predicted action's timestamp is inside the time window whose center is the ground truth action's timestamp with this specific length, the prediction result is treated as a true positive. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :confidenceMetricsEntries => + list(GoogleApi.Language.V2.Model.XPSVideoActionMetricsEntryConfidenceMetricsEntry.t()) + | nil, + :meanAveragePrecision => number() | nil, + :precisionWindowLength => String.t() | nil + } + + field(:confidenceMetricsEntries, + as: GoogleApi.Language.V2.Model.XPSVideoActionMetricsEntryConfidenceMetricsEntry, + type: :list + ) + + field(:meanAveragePrecision) + field(:precisionWindowLength) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSVideoActionMetricsEntry do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSVideoActionMetricsEntry.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSVideoActionMetricsEntry do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_video_action_metrics_entry_confidence_metrics_entry.ex b/clients/language/lib/google_api/language/v2/model/xps_video_action_metrics_entry_confidence_metrics_entry.ex new file mode 100644 index 0000000000..6d591e2166 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_video_action_metrics_entry_confidence_metrics_entry.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSVideoActionMetricsEntryConfidenceMetricsEntry do + @moduledoc """ + Metrics for a single confidence threshold. + + ## Attributes + + * `confidenceThreshold` (*type:* `number()`, *default:* `nil`) - Output only. The confidence threshold value used to compute the metrics. + * `f1Score` (*type:* `number()`, *default:* `nil`) - Output only. The harmonic mean of recall and precision. + * `precision` (*type:* `number()`, *default:* `nil`) - Output only. Precision for the given confidence threshold. + * `recall` (*type:* `number()`, *default:* `nil`) - Output only. Recall for the given confidence threshold. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :confidenceThreshold => number() | nil, + :f1Score => number() | nil, + :precision => number() | nil, + :recall => number() | nil + } + + field(:confidenceThreshold) + field(:f1Score) + field(:precision) + field(:recall) +end + +defimpl Poison.Decoder, + for: GoogleApi.Language.V2.Model.XPSVideoActionMetricsEntryConfidenceMetricsEntry do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSVideoActionMetricsEntryConfidenceMetricsEntry.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Language.V2.Model.XPSVideoActionMetricsEntryConfidenceMetricsEntry do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_video_action_recognition_evaluation_metrics.ex b/clients/language/lib/google_api/language/v2/model/xps_video_action_recognition_evaluation_metrics.ex new file mode 100644 index 0000000000..801bc3bc45 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_video_action_recognition_evaluation_metrics.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSVideoActionRecognitionEvaluationMetrics do + @moduledoc """ + Model evaluation metrics for video action recognition. + + ## Attributes + + * `evaluatedActionCount` (*type:* `integer()`, *default:* `nil`) - Output only. The number of ground truth actions used to create this evaluation. + * `videoActionMetricsEntries` (*type:* `list(GoogleApi.Language.V2.Model.XPSVideoActionMetricsEntry.t)`, *default:* `nil`) - Output only. The metric entries for precision window lengths: 1s,2s,3s,4s, 5s. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :evaluatedActionCount => integer() | nil, + :videoActionMetricsEntries => + list(GoogleApi.Language.V2.Model.XPSVideoActionMetricsEntry.t()) | nil + } + + field(:evaluatedActionCount) + + field(:videoActionMetricsEntries, + as: GoogleApi.Language.V2.Model.XPSVideoActionMetricsEntry, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Language.V2.Model.XPSVideoActionRecognitionEvaluationMetrics do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSVideoActionRecognitionEvaluationMetrics.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Language.V2.Model.XPSVideoActionRecognitionEvaluationMetrics do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_video_action_recognition_train_response.ex b/clients/language/lib/google_api/language/v2/model/xps_video_action_recognition_train_response.ex new file mode 100644 index 0000000000..8140428fc8 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_video_action_recognition_train_response.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSVideoActionRecognitionTrainResponse do + @moduledoc """ + + + ## Attributes + + * `modelArtifactSpec` (*type:* `GoogleApi.Language.V2.Model.XPSVideoModelArtifactSpec.t`, *default:* `nil`) - ## The fields below are only populated under uCAIP request scope. + * `trainCostNodeSeconds` (*type:* `String.t`, *default:* `nil`) - The actual train cost of creating this model, expressed in node seconds, i.e. 3,600 value in this field means 1 node hour. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :modelArtifactSpec => GoogleApi.Language.V2.Model.XPSVideoModelArtifactSpec.t() | nil, + :trainCostNodeSeconds => String.t() | nil + } + + field(:modelArtifactSpec, as: GoogleApi.Language.V2.Model.XPSVideoModelArtifactSpec) + field(:trainCostNodeSeconds) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSVideoActionRecognitionTrainResponse do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSVideoActionRecognitionTrainResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSVideoActionRecognitionTrainResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_video_batch_predict_operation_metadata.ex b/clients/language/lib/google_api/language/v2/model/xps_video_batch_predict_operation_metadata.ex new file mode 100644 index 0000000000..593e8454b3 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_video_batch_predict_operation_metadata.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSVideoBatchPredictOperationMetadata do + @moduledoc """ + + + ## Attributes + + * `outputExamples` (*type:* `list(String.t)`, *default:* `nil`) - All the partial batch prediction results that are completed at the moment. Output examples are sorted by completion time. The order will not be changed. Each output example should be the path of a single RecordIO file of AnnotatedExamples. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :outputExamples => list(String.t()) | nil + } + + field(:outputExamples, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSVideoBatchPredictOperationMetadata do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSVideoBatchPredictOperationMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSVideoBatchPredictOperationMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_video_classification_train_response.ex b/clients/language/lib/google_api/language/v2/model/xps_video_classification_train_response.ex new file mode 100644 index 0000000000..6654fb16ac --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_video_classification_train_response.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSVideoClassificationTrainResponse do + @moduledoc """ + + + ## Attributes + + * `modelArtifactSpec` (*type:* `GoogleApi.Language.V2.Model.XPSVideoModelArtifactSpec.t`, *default:* `nil`) - ## The fields below are only populated under uCAIP request scope. + * `trainCostNodeSeconds` (*type:* `String.t`, *default:* `nil`) - The actual train cost of creating this model, expressed in node seconds, i.e. 3,600 value in this field means 1 node hour. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :modelArtifactSpec => GoogleApi.Language.V2.Model.XPSVideoModelArtifactSpec.t() | nil, + :trainCostNodeSeconds => String.t() | nil + } + + field(:modelArtifactSpec, as: GoogleApi.Language.V2.Model.XPSVideoModelArtifactSpec) + field(:trainCostNodeSeconds) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSVideoClassificationTrainResponse do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSVideoClassificationTrainResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSVideoClassificationTrainResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_video_export_model_spec.ex b/clients/language/lib/google_api/language/v2/model/xps_video_export_model_spec.ex new file mode 100644 index 0000000000..84e68bafd7 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_video_export_model_spec.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSVideoExportModelSpec do + @moduledoc """ + Information of downloadable models that are pre-generated as part of training flow and will be persisted in AutoMl backend. Upon receiving ExportModel request from user, AutoMl backend can serve the pre-generated models to user if exists (by copying the files from internal path to user provided location), otherwise, AutoMl backend will call xPS ExportModel API to generate the model on the fly with the requesting format. + + ## Attributes + + * `exportModelOutputConfig` (*type:* `list(GoogleApi.Language.V2.Model.XPSExportModelOutputConfig.t)`, *default:* `nil`) - Contains the model format and internal location of the model files to be exported/downloaded. Use the GCS bucket name which is provided via TrainRequest.gcs_bucket_name to store the model files. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :exportModelOutputConfig => + list(GoogleApi.Language.V2.Model.XPSExportModelOutputConfig.t()) | nil + } + + field(:exportModelOutputConfig, + as: GoogleApi.Language.V2.Model.XPSExportModelOutputConfig, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSVideoExportModelSpec do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSVideoExportModelSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSVideoExportModelSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_video_model_artifact_spec.ex b/clients/language/lib/google_api/language/v2/model/xps_video_model_artifact_spec.ex new file mode 100644 index 0000000000..84a33d5118 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_video_model_artifact_spec.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSVideoModelArtifactSpec do + @moduledoc """ + + + ## Attributes + + * `exportArtifact` (*type:* `list(GoogleApi.Language.V2.Model.XPSModelArtifactItem.t)`, *default:* `nil`) - The model binary files in different formats for model export. + * `servingArtifact` (*type:* `GoogleApi.Language.V2.Model.XPSModelArtifactItem.t`, *default:* `nil`) - The default model binary file used for serving (e.g. batch predict) via public Cloud AI Platform API. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :exportArtifact => list(GoogleApi.Language.V2.Model.XPSModelArtifactItem.t()) | nil, + :servingArtifact => GoogleApi.Language.V2.Model.XPSModelArtifactItem.t() | nil + } + + field(:exportArtifact, as: GoogleApi.Language.V2.Model.XPSModelArtifactItem, type: :list) + field(:servingArtifact, as: GoogleApi.Language.V2.Model.XPSModelArtifactItem) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSVideoModelArtifactSpec do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSVideoModelArtifactSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSVideoModelArtifactSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_video_object_tracking_evaluation_metrics.ex b/clients/language/lib/google_api/language/v2/model/xps_video_object_tracking_evaluation_metrics.ex new file mode 100644 index 0000000000..038b3b5be4 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_video_object_tracking_evaluation_metrics.ex @@ -0,0 +1,76 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSVideoObjectTrackingEvaluationMetrics do + @moduledoc """ + Model evaluation metrics for ObjectTracking problems. Next tag: 10. + + ## Attributes + + * `boundingBoxMeanAveragePrecision` (*type:* `number()`, *default:* `nil`) - Output only. The single metric for bounding boxes evaluation: the mean_average_precision averaged over all bounding_box_metrics_entries. + * `boundingBoxMetricsEntries` (*type:* `list(GoogleApi.Language.V2.Model.XPSBoundingBoxMetricsEntry.t)`, *default:* `nil`) - Output only. The bounding boxes match metrics for each Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. + * `evaluatedBoundingboxCount` (*type:* `integer()`, *default:* `nil`) - The number of bounding boxes used for model evaluation. + * `evaluatedFrameCount` (*type:* `integer()`, *default:* `nil`) - The number of video frames used for model evaluation. + * `evaluatedTrackCount` (*type:* `integer()`, *default:* `nil`) - The number of tracks used for model evaluation. + * `trackMeanAveragePrecision` (*type:* `number()`, *default:* `nil`) - Output only. The single metric for tracks accuracy evaluation: the mean_average_precision averaged over all track_metrics_entries. + * `trackMeanBoundingBoxIou` (*type:* `number()`, *default:* `nil`) - Output only. The single metric for tracks bounding box iou evaluation: the mean_bounding_box_iou averaged over all track_metrics_entries. + * `trackMeanMismatchRate` (*type:* `number()`, *default:* `nil`) - Output only. The single metric for tracking consistency evaluation: the mean_mismatch_rate averaged over all track_metrics_entries. + * `trackMetricsEntries` (*type:* `list(GoogleApi.Language.V2.Model.XPSTrackMetricsEntry.t)`, *default:* `nil`) - Output only. The tracks match metrics for each Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :boundingBoxMeanAveragePrecision => number() | nil, + :boundingBoxMetricsEntries => + list(GoogleApi.Language.V2.Model.XPSBoundingBoxMetricsEntry.t()) | nil, + :evaluatedBoundingboxCount => integer() | nil, + :evaluatedFrameCount => integer() | nil, + :evaluatedTrackCount => integer() | nil, + :trackMeanAveragePrecision => number() | nil, + :trackMeanBoundingBoxIou => number() | nil, + :trackMeanMismatchRate => number() | nil, + :trackMetricsEntries => list(GoogleApi.Language.V2.Model.XPSTrackMetricsEntry.t()) | nil + } + + field(:boundingBoxMeanAveragePrecision) + + field(:boundingBoxMetricsEntries, + as: GoogleApi.Language.V2.Model.XPSBoundingBoxMetricsEntry, + type: :list + ) + + field(:evaluatedBoundingboxCount) + field(:evaluatedFrameCount) + field(:evaluatedTrackCount) + field(:trackMeanAveragePrecision) + field(:trackMeanBoundingBoxIou) + field(:trackMeanMismatchRate) + field(:trackMetricsEntries, as: GoogleApi.Language.V2.Model.XPSTrackMetricsEntry, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSVideoObjectTrackingEvaluationMetrics do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSVideoObjectTrackingEvaluationMetrics.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSVideoObjectTrackingEvaluationMetrics do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_video_object_tracking_train_response.ex b/clients/language/lib/google_api/language/v2/model/xps_video_object_tracking_train_response.ex new file mode 100644 index 0000000000..4cf88913a7 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_video_object_tracking_train_response.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSVideoObjectTrackingTrainResponse do + @moduledoc """ + + + ## Attributes + + * `exportModelSpec` (*type:* `GoogleApi.Language.V2.Model.XPSVideoExportModelSpec.t`, *default:* `nil`) - Populated for AutoML request only. + * `modelArtifactSpec` (*type:* `GoogleApi.Language.V2.Model.XPSVideoModelArtifactSpec.t`, *default:* `nil`) - ## The fields below are only populated under uCAIP request scope. + * `trainCostNodeSeconds` (*type:* `String.t`, *default:* `nil`) - The actual train cost of creating this model, expressed in node seconds, i.e. 3,600 value in this field means 1 node hour. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :exportModelSpec => GoogleApi.Language.V2.Model.XPSVideoExportModelSpec.t() | nil, + :modelArtifactSpec => GoogleApi.Language.V2.Model.XPSVideoModelArtifactSpec.t() | nil, + :trainCostNodeSeconds => String.t() | nil + } + + field(:exportModelSpec, as: GoogleApi.Language.V2.Model.XPSVideoExportModelSpec) + field(:modelArtifactSpec, as: GoogleApi.Language.V2.Model.XPSVideoModelArtifactSpec) + field(:trainCostNodeSeconds) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSVideoObjectTrackingTrainResponse do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSVideoObjectTrackingTrainResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSVideoObjectTrackingTrainResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_video_training_operation_metadata.ex b/clients/language/lib/google_api/language/v2/model/xps_video_training_operation_metadata.ex new file mode 100644 index 0000000000..611d835e6b --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_video_training_operation_metadata.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSVideoTrainingOperationMetadata do + @moduledoc """ + + + ## Attributes + + * `trainCostMilliNodeHour` (*type:* `String.t`, *default:* `nil`) - This is an estimation of the node hours necessary for training a model, expressed in milli node hours (i.e. 1,000 value in this field means 1 node hour). A node hour represents the time a virtual machine spends running your training job. The cost of one node running for one hour is a node hour. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :trainCostMilliNodeHour => String.t() | nil + } + + field(:trainCostMilliNodeHour) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSVideoTrainingOperationMetadata do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSVideoTrainingOperationMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSVideoTrainingOperationMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_vision_error_analysis_config.ex b/clients/language/lib/google_api/language/v2/model/xps_vision_error_analysis_config.ex new file mode 100644 index 0000000000..2a456fd6a8 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_vision_error_analysis_config.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSVisionErrorAnalysisConfig do + @moduledoc """ + The vision model error analysis configuration. Next tag: 3 + + ## Attributes + + * `exampleCount` (*type:* `integer()`, *default:* `nil`) - The number of query examples in error analysis. + * `queryType` (*type:* `String.t`, *default:* `nil`) - The query type used in retrieval. The enum values are frozen in the foreseeable future. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :exampleCount => integer() | nil, + :queryType => String.t() | nil + } + + field(:exampleCount) + field(:queryType) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSVisionErrorAnalysisConfig do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSVisionErrorAnalysisConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSVisionErrorAnalysisConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_vision_training_operation_metadata.ex b/clients/language/lib/google_api/language/v2/model/xps_vision_training_operation_metadata.ex new file mode 100644 index 0000000000..44b5ecc89e --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_vision_training_operation_metadata.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSVisionTrainingOperationMetadata do + @moduledoc """ + + + ## Attributes + + * `explanationUsage` (*type:* `GoogleApi.Language.V2.Model.InfraUsage.t`, *default:* `nil`) - Aggregated infra usage within certain time period, for billing report purpose if XAI is enable in training request. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :explanationUsage => GoogleApi.Language.V2.Model.InfraUsage.t() | nil + } + + field(:explanationUsage, as: GoogleApi.Language.V2.Model.InfraUsage) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSVisionTrainingOperationMetadata do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSVisionTrainingOperationMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSVisionTrainingOperationMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_visualization.ex b/clients/language/lib/google_api/language/v2/model/xps_visualization.ex new file mode 100644 index 0000000000..2f691cc1ff --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_visualization.ex @@ -0,0 +1,61 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSVisualization do + @moduledoc """ + Visualization configurations for image explanation. + + ## Attributes + + * `clipPercentLowerbound` (*type:* `number()`, *default:* `nil`) - Excludes attributions below the specified percentile, from the highlighted areas. Defaults to 62. + * `clipPercentUpperbound` (*type:* `number()`, *default:* `nil`) - Excludes attributions above the specified percentile from the highlighted areas. Using the clip_percent_upperbound and clip_percent_lowerbound together can be useful for filtering out noise and making it easier to see areas of strong attribution. Defaults to 99.9. + * `colorMap` (*type:* `String.t`, *default:* `nil`) - The color scheme used for the highlighted areas. Defaults to PINK_GREEN for Integrated Gradients attribution, which shows positive attributions in green and negative in pink. Defaults to VIRIDIS for XRAI attribution, which highlights the most influential regions in yellow and the least influential in blue. + * `overlayType` (*type:* `String.t`, *default:* `nil`) - How the original image is displayed in the visualization. Adjusting the overlay can help increase visual clarity if the original image makes it difficult to view the visualization. Defaults to NONE. + * `polarity` (*type:* `String.t`, *default:* `nil`) - Whether to only highlight pixels with positive contributions, negative or both. Defaults to POSITIVE. + * `type` (*type:* `String.t`, *default:* `nil`) - Type of the image visualization. Only applicable to Integrated Gradients attribution. OUTLINES shows regions of attribution, while PIXELS shows per-pixel attribution. Defaults to OUTLINES. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :clipPercentLowerbound => number() | nil, + :clipPercentUpperbound => number() | nil, + :colorMap => String.t() | nil, + :overlayType => String.t() | nil, + :polarity => String.t() | nil, + :type => String.t() | nil + } + + field(:clipPercentLowerbound) + field(:clipPercentUpperbound) + field(:colorMap) + field(:overlayType) + field(:polarity) + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSVisualization do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSVisualization.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSVisualization do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_xps_operation_metadata.ex b/clients/language/lib/google_api/language/v2/model/xps_xps_operation_metadata.ex new file mode 100644 index 0000000000..a2ee841365 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_xps_operation_metadata.ex @@ -0,0 +1,77 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSXpsOperationMetadata do + @moduledoc """ + + + ## Attributes + + * `exampleCount` (*type:* `String.t`, *default:* `nil`) - Optional. XPS server can opt to provide example count of the long running operation (e.g. training, data importing, batch prediction). + * `reportingMetrics` (*type:* `GoogleApi.Language.V2.Model.XPSReportingMetrics.t`, *default:* `nil`) - Metrics for the operation. By the time the operation is terminated (whether succeeded or failed) as returned from XPS, AutoML BE assumes the metrics are finalized. AutoML BE transparently posts the metrics to Chemist if it's not empty, regardless of the response content or error type. If user is supposed to be charged in case of cancellation/error, this field should be set. In the case where the type of LRO doesn't require any billing, this field should be left unset. + * `tablesTrainingOperationMetadata` (*type:* `GoogleApi.Language.V2.Model.XPSTablesTrainingOperationMetadata.t`, *default:* `nil`) - + * `videoBatchPredictOperationMetadata` (*type:* `GoogleApi.Language.V2.Model.XPSVideoBatchPredictOperationMetadata.t`, *default:* `nil`) - + * `videoTrainingOperationMetadata` (*type:* `GoogleApi.Language.V2.Model.XPSVideoTrainingOperationMetadata.t`, *default:* `nil`) - + * `visionTrainingOperationMetadata` (*type:* `GoogleApi.Language.V2.Model.XPSVisionTrainingOperationMetadata.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :exampleCount => String.t() | nil, + :reportingMetrics => GoogleApi.Language.V2.Model.XPSReportingMetrics.t() | nil, + :tablesTrainingOperationMetadata => + GoogleApi.Language.V2.Model.XPSTablesTrainingOperationMetadata.t() | nil, + :videoBatchPredictOperationMetadata => + GoogleApi.Language.V2.Model.XPSVideoBatchPredictOperationMetadata.t() | nil, + :videoTrainingOperationMetadata => + GoogleApi.Language.V2.Model.XPSVideoTrainingOperationMetadata.t() | nil, + :visionTrainingOperationMetadata => + GoogleApi.Language.V2.Model.XPSVisionTrainingOperationMetadata.t() | nil + } + + field(:exampleCount) + field(:reportingMetrics, as: GoogleApi.Language.V2.Model.XPSReportingMetrics) + + field(:tablesTrainingOperationMetadata, + as: GoogleApi.Language.V2.Model.XPSTablesTrainingOperationMetadata + ) + + field(:videoBatchPredictOperationMetadata, + as: GoogleApi.Language.V2.Model.XPSVideoBatchPredictOperationMetadata + ) + + field(:videoTrainingOperationMetadata, + as: GoogleApi.Language.V2.Model.XPSVideoTrainingOperationMetadata + ) + + field(:visionTrainingOperationMetadata, + as: GoogleApi.Language.V2.Model.XPSVisionTrainingOperationMetadata + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSXpsOperationMetadata do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSXpsOperationMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSXpsOperationMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v2/model/xps_xrai_attribution.ex b/clients/language/lib/google_api/language/v2/model/xps_xrai_attribution.ex new file mode 100644 index 0000000000..ac7b134386 --- /dev/null +++ b/clients/language/lib/google_api/language/v2/model/xps_xrai_attribution.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Language.V2.Model.XPSXraiAttribution do + @moduledoc """ + An explanation method that redistributes Integrated Gradients attributions to segmented regions, taking advantage of the model's fully differentiable structure. Refer to this paper for more details: https://arxiv.org/abs/1906.02825 Only supports image Models (modality is IMAGE). + + ## Attributes + + * `stepCount` (*type:* `integer()`, *default:* `nil`) - The number of steps for approximating the path integral. A good value to start is 50 and gradually increase until the sum to diff property is met within the desired error range. Valid range of its value is [1, 100], inclusively. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :stepCount => integer() | nil + } + + field(:stepCount) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSXraiAttribution do + def decode(value, options) do + GoogleApi.Language.V2.Model.XPSXraiAttribution.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSXraiAttribution do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end