From fe407437334ddab7df4dc3b1109133f48067cda3 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Mon, 11 Mar 2024 19:58:16 -0700 Subject: [PATCH] feat: Automated regeneration of Language client (#10999) Auto-created at 2024-03-12 02:54:08 +0000 using the toys pull request generator. --- .../google_api/language/v1/api/documents.ex | 59 ++++++++ .../lib/google_api/language/v1/metadata.ex | 2 +- .../v1/model/annotate_text_request.ex | 6 +- ...s.ex => annotate_text_request_features.ex} | 15 +- .../v1/model/annotate_text_response.ex | 6 + .../v1/model/classification_category.ex | 2 +- .../v1/model/classification_model_options.ex | 12 +- .../classification_model_options_v1_model.ex | 41 ++++++ ... classification_model_options_v2_model.ex} | 8 +- .../v1/model/classify_text_request.ex | 2 +- .../lib/google_api/language/v1/model/color.ex | 55 +++++++ .../language/v1/model/cpu_metric.ex | 58 ++++++++ .../language/v1/model/disk_metric.ex | 49 ++++++ .../language/v1/model/gpu_metric.ex | 55 +++++++ .../language/v1/model/infra_usage.ex | 58 ++++++++ .../v1/model/moderate_text_request.ex | 46 ++++++ .../v1/model/moderate_text_response.ex | 47 ++++++ .../language/v1/model/ram_metric.ex | 58 ++++++++ .../google_api/language/v1/model/text_span.ex | 4 +- .../language/v1/model/tpu_metric.ex | 49 ++++++ .../language/v1/model/xps_array_stats.ex | 49 ++++++ .../v1/model/xps_batch_predict_response.ex | 46 ++++++ .../model/xps_bounding_box_metrics_entry.ex | 58 ++++++++ ..._metrics_entry_confidence_metrics_entry.ex | 60 ++++++++ .../language/v1/model/xps_category_stats.ex | 54 +++++++ ...ps_category_stats_single_category_stats.ex | 49 ++++++ .../xps_classification_evaluation_metrics.ex | 70 +++++++++ .../language/v1/model/xps_color_map.ex | 55 +++++++ .../v1/model/xps_color_map_int_color.ex | 52 +++++++ .../language/v1/model/xps_column_spec.ex | 67 +++++++++ .../xps_column_spec_correlated_column.ex | 49 ++++++ .../xps_column_spec_forecasting_metadata.ex | 46 ++++++ .../language/v1/model/xps_common_stats.ex | 52 +++++++ .../v1/model/xps_confidence_metrics_entry.ex | 85 +++++++++++ .../language/v1/model/xps_confusion_matrix.ex | 55 +++++++ .../v1/model/xps_confusion_matrix_row.ex | 49 ++++++ .../{v1_model.ex => xps_core_ml_format.ex} | 10 +- .../v1/model/xps_correlation_stats.ex | 46 ++++++ .../language/v1/model/xps_data_errors.ex | 49 ++++++ .../language/v1/model/xps_data_stats.ex | 70 +++++++++ .../language/v1/model/xps_data_type.ex | 61 ++++++++ .../language/v1/model/xps_docker_format.ex | 49 ++++++ .../v1/model/xps_edge_tpu_tf_lite_format.ex | 41 ++++++ .../v1/model/xps_evaluation_metrics.ex | 139 ++++++++++++++++++ .../v1/model/xps_evaluation_metrics_set.ex | 52 +++++++ .../language/v1/model/xps_example_set.ex | 55 +++++++ .../model/xps_export_model_output_config.ex | 70 +++++++++ .../language/v1/model/xps_file_spec.ex | 55 +++++++ .../language/v1/model/xps_float64_stats.ex | 64 ++++++++ .../xps_float64_stats_histogram_bucket.ex | 52 +++++++ ...xps_image_classification_train_response.ex | 64 ++++++++ .../v1/model/xps_image_export_model_spec.ex | 50 +++++++ .../v1/model/xps_image_model_artifact_spec.ex | 61 ++++++++ .../v1/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/v1/model/xps_metric_entry.ex | 58 ++++++++ .../v1/model/xps_metric_entry_label.ex | 49 ++++++ .../v1/model/xps_model_artifact_item.ex | 49 ++++++ .../v1/model/xps_preprocess_response.ex | 61 ++++++++ .../xps_regression_evaluation_metrics.ex | 67 +++++++++ .../v1/model/xps_regression_metrics_entry.ex | 49 ++++++ .../v1/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 +++++++ .../v1/model/xps_response_explanation_spec.ex | 52 +++++++ .../google_api/language/v1/model/xps_row.ex | 49 ++++++ .../v1/model/xps_speech_evaluation_metrics.ex | 53 +++++++ ...ion_metrics_sub_model_evaluation_metric.ex | 75 ++++++++++ .../v1/model/xps_speech_model_spec.ex | 57 +++++++ .../xps_speech_model_spec_sub_model_spec.ex | 55 +++++++ .../model/xps_speech_preprocess_response.ex | 60 ++++++++ .../v1/model/xps_speech_preprocess_stats.ex | 73 +++++++++ .../language/v1/model/xps_string_stats.ex | 50 +++++++ .../model/xps_string_stats_unigram_stats.ex | 49 ++++++ .../language/v1/model/xps_struct_stats.ex | 50 +++++++ .../language/v1/model/xps_struct_type.ex | 46 ++++++ .../language/v1/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 +++++++++ .../v1/model/xps_tables_dataset_metadata.ex | 61 ++++++++ .../v1/model/xps_tables_evaluation_metrics.ex | 50 +++++++ .../v1/model/xps_tables_model_column_info.ex | 49 ++++++ .../v1/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 ++++++ .../v1/model/xps_tables_regression_metrics.ex | 67 +++++++++ .../v1/model/xps_tables_train_response.ex | 61 ++++++++ .../xps_tables_training_operation_metadata.ex | 67 +++++++++ .../v1/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 ++++++ .../v1/model/xps_text_train_response.ex | 46 ++++++ .../language/v1/model/xps_tf_js_format.ex | 41 ++++++ .../language/v1/model/xps_tf_lite_format.ex | 41 ++++++ .../v1/model/xps_tf_saved_model_format.ex | 41 ++++++ .../language/v1/model/xps_timestamp_stats.ex | 59 ++++++++ .../xps_timestamp_stats_granular_stats.ex | 46 ++++++ .../v1/model/xps_track_metrics_entry.ex | 63 ++++++++ ..._metrics_entry_confidence_metrics_entry.ex | 60 ++++++++ .../language/v1/model/xps_train_response.ex | 132 +++++++++++++++++ .../v1/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/v1/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 ++++++ .../v1/model/xps_video_export_model_spec.ex | 50 +++++++ .../v1/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/v1/model/xps_visualization.ex | 61 ++++++++ .../v1/model/xps_xps_operation_metadata.ex | 77 ++++++++++ .../language/v1/model/xps_xrai_attribution.ex | 46 ++++++ 132 files changed, 6931 insertions(+), 29 deletions(-) rename clients/language/lib/google_api/language/v1/model/{features.ex => annotate_text_request_features.ex} (74%) create mode 100644 clients/language/lib/google_api/language/v1/model/classification_model_options_v1_model.ex rename clients/language/lib/google_api/language/v1/model/{v2_model.ex => classification_model_options_v2_model.ex} (76%) create mode 100644 clients/language/lib/google_api/language/v1/model/color.ex create mode 100644 clients/language/lib/google_api/language/v1/model/cpu_metric.ex create mode 100644 clients/language/lib/google_api/language/v1/model/disk_metric.ex create mode 100644 clients/language/lib/google_api/language/v1/model/gpu_metric.ex create mode 100644 clients/language/lib/google_api/language/v1/model/infra_usage.ex create mode 100644 clients/language/lib/google_api/language/v1/model/moderate_text_request.ex create mode 100644 clients/language/lib/google_api/language/v1/model/moderate_text_response.ex create mode 100644 clients/language/lib/google_api/language/v1/model/ram_metric.ex create mode 100644 clients/language/lib/google_api/language/v1/model/tpu_metric.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_array_stats.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_batch_predict_response.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_bounding_box_metrics_entry.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_bounding_box_metrics_entry_confidence_metrics_entry.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_category_stats.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_category_stats_single_category_stats.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_classification_evaluation_metrics.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_color_map.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_color_map_int_color.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_column_spec.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_column_spec_correlated_column.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_column_spec_forecasting_metadata.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_common_stats.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_confidence_metrics_entry.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_confusion_matrix.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_confusion_matrix_row.ex rename clients/language/lib/google_api/language/v1/model/{v1_model.ex => xps_core_ml_format.ex} (73%) create mode 100644 clients/language/lib/google_api/language/v1/model/xps_correlation_stats.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_data_errors.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_data_stats.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_data_type.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_docker_format.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_edge_tpu_tf_lite_format.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_evaluation_metrics.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_evaluation_metrics_set.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_example_set.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_export_model_output_config.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_file_spec.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_float64_stats.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_float64_stats_histogram_bucket.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_image_classification_train_response.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_image_export_model_spec.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_image_model_artifact_spec.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_image_model_serving_spec.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_image_model_serving_spec_model_throughput_estimation.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_image_object_detection_evaluation_metrics.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_image_object_detection_model_spec.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_image_segmentation_evaluation_metrics.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_image_segmentation_evaluation_metrics_confidence_metrics_entry.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_image_segmentation_train_response.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_integrated_gradients_attribution.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_metric_entry.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_metric_entry_label.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_model_artifact_item.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_preprocess_response.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_regression_evaluation_metrics.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_regression_metrics_entry.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_reporting_metrics.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_response_explanation_metadata.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_response_explanation_metadata_input_metadata.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_response_explanation_metadata_output_metadata.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_response_explanation_parameters.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_response_explanation_spec.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_row.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_speech_evaluation_metrics.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_speech_evaluation_metrics_sub_model_evaluation_metric.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_speech_model_spec.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_speech_model_spec_sub_model_spec.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_speech_preprocess_response.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_speech_preprocess_stats.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_string_stats.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_string_stats_unigram_stats.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_struct_stats.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_struct_type.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_table_spec.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_tables_classification_metrics.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_tables_classification_metrics_curve_metrics.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_tables_confidence_metrics_entry.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_tables_dataset_metadata.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_tables_evaluation_metrics.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_tables_model_column_info.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_tables_model_structure.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_tables_model_structure_model_parameters.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_tables_model_structure_model_parameters_parameter.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_tables_preprocess_response.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_tables_regression_metrics.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_tables_train_response.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_tables_training_operation_metadata.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_text_component_model.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_text_extraction_evaluation_metrics.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_text_sentiment_evaluation_metrics.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_text_to_speech_train_response.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_text_train_response.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_tf_js_format.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_tf_lite_format.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_tf_saved_model_format.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_timestamp_stats.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_timestamp_stats_granular_stats.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_track_metrics_entry.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_track_metrics_entry_confidence_metrics_entry.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_train_response.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_training_objective_point.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_translation_evaluation_metrics.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_translation_preprocess_response.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_translation_train_response.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_tuning_trial.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_video_action_metrics_entry.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_video_action_metrics_entry_confidence_metrics_entry.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_video_action_recognition_evaluation_metrics.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_video_action_recognition_train_response.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_video_batch_predict_operation_metadata.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_video_classification_train_response.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_video_export_model_spec.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_video_model_artifact_spec.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_video_object_tracking_evaluation_metrics.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_video_object_tracking_train_response.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_video_training_operation_metadata.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_vision_error_analysis_config.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_vision_training_operation_metadata.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_visualization.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_xps_operation_metadata.ex create mode 100644 clients/language/lib/google_api/language/v1/model/xps_xrai_attribution.ex diff --git a/clients/language/lib/google_api/language/v1/api/documents.ex b/clients/language/lib/google_api/language/v1/api/documents.ex index c21473e49e..21c07502c3 100644 --- a/clients/language/lib/google_api/language/v1/api/documents.ex +++ b/clients/language/lib/google_api/language/v1/api/documents.ex @@ -380,4 +380,63 @@ defmodule GoogleApi.Language.V1.Api.Documents do |> Connection.execute(request) |> Response.decode(opts ++ [struct: %GoogleApi.Language.V1.Model.ClassifyTextResponse{}]) end + + @doc """ + Moderates a document for harmful and sensitive categories. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Language.V1.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.V1.Model.ModerateTextRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Language.V1.Model.ModerateTextResponse{}}` on success + * `{:error, info}` on failure + """ + @spec language_documents_moderate_text(Tesla.Env.client(), keyword(), keyword()) :: + {:ok, GoogleApi.Language.V1.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("/v1/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.V1.Model.ModerateTextResponse{}]) + end end diff --git a/clients/language/lib/google_api/language/v1/metadata.ex b/clients/language/lib/google_api/language/v1/metadata.ex index b498c6f67c..4c294607b7 100644 --- a/clients/language/lib/google_api/language/v1/metadata.ex +++ b/clients/language/lib/google_api/language/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.Language.V1 do API client metadata for GoogleApi.Language.V1. """ - @discovery_revision "20221015" + @discovery_revision "20240310" def discovery_revision(), do: @discovery_revision end diff --git a/clients/language/lib/google_api/language/v1/model/annotate_text_request.ex b/clients/language/lib/google_api/language/v1/model/annotate_text_request.ex index ce879621b0..fb349db891 100644 --- a/clients/language/lib/google_api/language/v1/model/annotate_text_request.ex +++ b/clients/language/lib/google_api/language/v1/model/annotate_text_request.ex @@ -23,7 +23,7 @@ defmodule GoogleApi.Language.V1.Model.AnnotateTextRequest do * `document` (*type:* `GoogleApi.Language.V1.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.V1.Model.Features.t`, *default:* `nil`) - Required. The enabled features. + * `features` (*type:* `GoogleApi.Language.V1.Model.AnnotateTextRequestFeatures.t`, *default:* `nil`) - Required. The enabled features. """ use GoogleApi.Gax.ModelBase @@ -31,12 +31,12 @@ defmodule GoogleApi.Language.V1.Model.AnnotateTextRequest do @type t :: %__MODULE__{ :document => GoogleApi.Language.V1.Model.Document.t() | nil, :encodingType => String.t() | nil, - :features => GoogleApi.Language.V1.Model.Features.t() | nil + :features => GoogleApi.Language.V1.Model.AnnotateTextRequestFeatures.t() | nil } field(:document, as: GoogleApi.Language.V1.Model.Document) field(:encodingType) - field(:features, as: GoogleApi.Language.V1.Model.Features) + field(:features, as: GoogleApi.Language.V1.Model.AnnotateTextRequestFeatures) end defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.AnnotateTextRequest do diff --git a/clients/language/lib/google_api/language/v1/model/features.ex b/clients/language/lib/google_api/language/v1/model/annotate_text_request_features.ex similarity index 74% rename from clients/language/lib/google_api/language/v1/model/features.ex rename to clients/language/lib/google_api/language/v1/model/annotate_text_request_features.ex index 653241d758..b12ea8ef30 100644 --- a/clients/language/lib/google_api/language/v1/model/features.ex +++ b/clients/language/lib/google_api/language/v1/model/annotate_text_request_features.ex @@ -15,18 +15,19 @@ # NOTE: This file is auto generated by the elixir code generator program. # Do not edit this file manually. -defmodule GoogleApi.Language.V1.Model.Features do +defmodule GoogleApi.Language.V1.Model.AnnotateTextRequestFeatures do @moduledoc """ All available features for sentiment, syntax, and semantic analysis. Setting each one to true will enable that specific analysis for the input. ## Attributes - * `classificationModelOptions` (*type:* `GoogleApi.Language.V1.Model.ClassificationModelOptions.t`, *default:* `nil`) - The model options to use for classification. Defaults to v1 options if not specified. Only used if `classify_text` is set to true. + * `classificationModelOptions` (*type:* `GoogleApi.Language.V1.Model.ClassificationModelOptions.t`, *default:* `nil`) - Optional. The model options to use for classification. Defaults to v1 options if not specified. Only used if `classify_text` is set to true. * `classifyText` (*type:* `boolean()`, *default:* `nil`) - Classify the full document into categories. * `extractDocumentSentiment` (*type:* `boolean()`, *default:* `nil`) - Extract document-level sentiment. * `extractEntities` (*type:* `boolean()`, *default:* `nil`) - Extract entities. * `extractEntitySentiment` (*type:* `boolean()`, *default:* `nil`) - Extract entities and their associated sentiment. * `extractSyntax` (*type:* `boolean()`, *default:* `nil`) - Extract syntax information. + * `moderateText` (*type:* `boolean()`, *default:* `nil`) - Moderate the document for harmful and sensitive categories. """ use GoogleApi.Gax.ModelBase @@ -38,7 +39,8 @@ defmodule GoogleApi.Language.V1.Model.Features do :extractDocumentSentiment => boolean() | nil, :extractEntities => boolean() | nil, :extractEntitySentiment => boolean() | nil, - :extractSyntax => boolean() | nil + :extractSyntax => boolean() | nil, + :moderateText => boolean() | nil } field(:classificationModelOptions, as: GoogleApi.Language.V1.Model.ClassificationModelOptions) @@ -47,15 +49,16 @@ defmodule GoogleApi.Language.V1.Model.Features do field(:extractEntities) field(:extractEntitySentiment) field(:extractSyntax) + field(:moderateText) end -defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.Features do +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.AnnotateTextRequestFeatures do def decode(value, options) do - GoogleApi.Language.V1.Model.Features.decode(value, options) + GoogleApi.Language.V1.Model.AnnotateTextRequestFeatures.decode(value, options) end end -defimpl Poison.Encoder, for: GoogleApi.Language.V1.Model.Features do +defimpl Poison.Encoder, for: GoogleApi.Language.V1.Model.AnnotateTextRequestFeatures do def encode(value, options) do GoogleApi.Gax.ModelBase.encode(value, options) end diff --git a/clients/language/lib/google_api/language/v1/model/annotate_text_response.ex b/clients/language/lib/google_api/language/v1/model/annotate_text_response.ex index cae8a251e9..97a4ae662a 100644 --- a/clients/language/lib/google_api/language/v1/model/annotate_text_response.ex +++ b/clients/language/lib/google_api/language/v1/model/annotate_text_response.ex @@ -25,6 +25,7 @@ defmodule GoogleApi.Language.V1.Model.AnnotateTextResponse do * `documentSentiment` (*type:* `GoogleApi.Language.V1.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.V1.Model.Entity.t)`, *default:* `nil`) - Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities. * `language` (*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. + * `moderationCategories` (*type:* `list(GoogleApi.Language.V1.Model.ClassificationCategory.t)`, *default:* `nil`) - Harmful and sensitive categories identified in the input document. * `sentences` (*type:* `list(GoogleApi.Language.V1.Model.Sentence.t)`, *default:* `nil`) - Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax. * `tokens` (*type:* `list(GoogleApi.Language.V1.Model.Token.t)`, *default:* `nil`) - Tokens, along with their syntactic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax. """ @@ -36,6 +37,8 @@ defmodule GoogleApi.Language.V1.Model.AnnotateTextResponse do :documentSentiment => GoogleApi.Language.V1.Model.Sentiment.t() | nil, :entities => list(GoogleApi.Language.V1.Model.Entity.t()) | nil, :language => String.t() | nil, + :moderationCategories => + list(GoogleApi.Language.V1.Model.ClassificationCategory.t()) | nil, :sentences => list(GoogleApi.Language.V1.Model.Sentence.t()) | nil, :tokens => list(GoogleApi.Language.V1.Model.Token.t()) | nil } @@ -44,6 +47,9 @@ defmodule GoogleApi.Language.V1.Model.AnnotateTextResponse do field(:documentSentiment, as: GoogleApi.Language.V1.Model.Sentiment) field(:entities, as: GoogleApi.Language.V1.Model.Entity, type: :list) field(:language) + + field(:moderationCategories, as: GoogleApi.Language.V1.Model.ClassificationCategory, type: :list) + field(:sentences, as: GoogleApi.Language.V1.Model.Sentence, type: :list) field(:tokens, as: GoogleApi.Language.V1.Model.Token, type: :list) end diff --git a/clients/language/lib/google_api/language/v1/model/classification_category.ex b/clients/language/lib/google_api/language/v1/model/classification_category.ex index e4d6f9ae80..59a6ebdb05 100644 --- a/clients/language/lib/google_api/language/v1/model/classification_category.ex +++ b/clients/language/lib/google_api/language/v1/model/classification_category.ex @@ -22,7 +22,7 @@ defmodule GoogleApi.Language.V1.Model.ClassificationCategory do ## 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, from the [predefined taxonomy](https://cloud.google.com/natural-language/docs/categories). + * `name` (*type:* `String.t`, *default:* `nil`) - The name of the category representing the document. """ use GoogleApi.Gax.ModelBase diff --git a/clients/language/lib/google_api/language/v1/model/classification_model_options.ex b/clients/language/lib/google_api/language/v1/model/classification_model_options.ex index 0c7b8888ef..fc5ab9688d 100644 --- a/clients/language/lib/google_api/language/v1/model/classification_model_options.ex +++ b/clients/language/lib/google_api/language/v1/model/classification_model_options.ex @@ -21,19 +21,19 @@ defmodule GoogleApi.Language.V1.Model.ClassificationModelOptions do ## Attributes - * `v1Model` (*type:* `GoogleApi.Language.V1.Model.V1Model.t`, *default:* `nil`) - Setting this field will use the V1 model and V1 content categories version. The V1 model is a legacy model; support for this will be discontinued in the future. - * `v2Model` (*type:* `GoogleApi.Language.V1.Model.V2Model.t`, *default:* `nil`) - Setting this field will use the V2 model with the appropriate content categories version. The V2 model is a better performing model. + * `v1Model` (*type:* `GoogleApi.Language.V1.Model.ClassificationModelOptionsV1Model.t`, *default:* `nil`) - Setting this field will use the V1 model and V1 content categories version. The V1 model is a legacy model; support for this will be discontinued in the future. + * `v2Model` (*type:* `GoogleApi.Language.V1.Model.ClassificationModelOptionsV2Model.t`, *default:* `nil`) - Setting this field will use the V2 model with the appropriate content categories version. The V2 model is a better performing model. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ - :v1Model => GoogleApi.Language.V1.Model.V1Model.t() | nil, - :v2Model => GoogleApi.Language.V1.Model.V2Model.t() | nil + :v1Model => GoogleApi.Language.V1.Model.ClassificationModelOptionsV1Model.t() | nil, + :v2Model => GoogleApi.Language.V1.Model.ClassificationModelOptionsV2Model.t() | nil } - field(:v1Model, as: GoogleApi.Language.V1.Model.V1Model) - field(:v2Model, as: GoogleApi.Language.V1.Model.V2Model) + field(:v1Model, as: GoogleApi.Language.V1.Model.ClassificationModelOptionsV1Model) + field(:v2Model, as: GoogleApi.Language.V1.Model.ClassificationModelOptionsV2Model) end defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.ClassificationModelOptions do diff --git a/clients/language/lib/google_api/language/v1/model/classification_model_options_v1_model.ex b/clients/language/lib/google_api/language/v1/model/classification_model_options_v1_model.ex new file mode 100644 index 0000000000..1bdef467fd --- /dev/null +++ b/clients/language/lib/google_api/language/v1/model/classification_model_options_v1_model.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.V1.Model.ClassificationModelOptionsV1Model do + @moduledoc """ + Options for the V1 model. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.ClassificationModelOptionsV1Model do + def decode(value, options) do + GoogleApi.Language.V1.Model.ClassificationModelOptionsV1Model.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.Model.ClassificationModelOptionsV1Model do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/language/lib/google_api/language/v1/model/v2_model.ex b/clients/language/lib/google_api/language/v1/model/classification_model_options_v2_model.ex similarity index 76% rename from clients/language/lib/google_api/language/v1/model/v2_model.ex rename to clients/language/lib/google_api/language/v1/model/classification_model_options_v2_model.ex index 8b6ceb23e8..d8a0d7b67a 100644 --- a/clients/language/lib/google_api/language/v1/model/v2_model.ex +++ b/clients/language/lib/google_api/language/v1/model/classification_model_options_v2_model.ex @@ -15,7 +15,7 @@ # NOTE: This file is auto generated by the elixir code generator program. # Do not edit this file manually. -defmodule GoogleApi.Language.V1.Model.V2Model do +defmodule GoogleApi.Language.V1.Model.ClassificationModelOptionsV2Model do @moduledoc """ Options for the V2 model. @@ -33,13 +33,13 @@ defmodule GoogleApi.Language.V1.Model.V2Model do field(:contentCategoriesVersion) end -defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.V2Model do +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.ClassificationModelOptionsV2Model do def decode(value, options) do - GoogleApi.Language.V1.Model.V2Model.decode(value, options) + GoogleApi.Language.V1.Model.ClassificationModelOptionsV2Model.decode(value, options) end end -defimpl Poison.Encoder, for: GoogleApi.Language.V1.Model.V2Model do +defimpl Poison.Encoder, for: GoogleApi.Language.V1.Model.ClassificationModelOptionsV2Model do def encode(value, options) do GoogleApi.Gax.ModelBase.encode(value, options) end diff --git a/clients/language/lib/google_api/language/v1/model/classify_text_request.ex b/clients/language/lib/google_api/language/v1/model/classify_text_request.ex index 70dd1323f5..cf9234ada3 100644 --- a/clients/language/lib/google_api/language/v1/model/classify_text_request.ex +++ b/clients/language/lib/google_api/language/v1/model/classify_text_request.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.Language.V1.Model.ClassifyTextRequest do ## Attributes - * `classificationModelOptions` (*type:* `GoogleApi.Language.V1.Model.ClassificationModelOptions.t`, *default:* `nil`) - Model options to use for classification. Defaults to v1 options if not specified. + * `classificationModelOptions` (*type:* `GoogleApi.Language.V1.Model.ClassificationModelOptions.t`, *default:* `nil`) - Optional. Model options to use for classification. Defaults to v1 options if not specified. * `document` (*type:* `GoogleApi.Language.V1.Model.Document.t`, *default:* `nil`) - Required. Input document. """ diff --git a/clients/language/lib/google_api/language/v1/model/color.ex b/clients/language/lib/google_api/language/v1/model/color.ex new file mode 100644 index 0000000000..ea25015ded --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.Color do + def decode(value, options) do + GoogleApi.Language.V1.Model.Color.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/cpu_metric.ex b/clients/language/lib/google_api/language/v1/model/cpu_metric.ex new file mode 100644 index 0000000000..79857852af --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.CpuMetric do + def decode(value, options) do + GoogleApi.Language.V1.Model.CpuMetric.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/disk_metric.ex b/clients/language/lib/google_api/language/v1/model/disk_metric.ex new file mode 100644 index 0000000000..447a21b363 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.DiskMetric do + def decode(value, options) do + GoogleApi.Language.V1.Model.DiskMetric.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/gpu_metric.ex b/clients/language/lib/google_api/language/v1/model/gpu_metric.ex new file mode 100644 index 0000000000..022f88879b --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.GpuMetric do + def decode(value, options) do + GoogleApi.Language.V1.Model.GpuMetric.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/infra_usage.ex b/clients/language/lib/google_api/language/v1/model/infra_usage.ex new file mode 100644 index 0000000000..722adc3c01 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.InfraUsage do + @moduledoc """ + Infra Usage of billing metrics. Next ID: 6 + + ## Attributes + + * `cpuMetrics` (*type:* `list(GoogleApi.Language.V1.Model.CpuMetric.t)`, *default:* `nil`) - Aggregated core metrics since requested start_time. + * `diskMetrics` (*type:* `list(GoogleApi.Language.V1.Model.DiskMetric.t)`, *default:* `nil`) - Aggregated persistent disk metrics since requested start_time. + * `gpuMetrics` (*type:* `list(GoogleApi.Language.V1.Model.GpuMetric.t)`, *default:* `nil`) - Aggregated gpu metrics since requested start_time. + * `ramMetrics` (*type:* `list(GoogleApi.Language.V1.Model.RamMetric.t)`, *default:* `nil`) - Aggregated ram metrics since requested start_time. + * `tpuMetrics` (*type:* `list(GoogleApi.Language.V1.Model.TpuMetric.t)`, *default:* `nil`) - Aggregated tpu metrics since requested start_time. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cpuMetrics => list(GoogleApi.Language.V1.Model.CpuMetric.t()) | nil, + :diskMetrics => list(GoogleApi.Language.V1.Model.DiskMetric.t()) | nil, + :gpuMetrics => list(GoogleApi.Language.V1.Model.GpuMetric.t()) | nil, + :ramMetrics => list(GoogleApi.Language.V1.Model.RamMetric.t()) | nil, + :tpuMetrics => list(GoogleApi.Language.V1.Model.TpuMetric.t()) | nil + } + + field(:cpuMetrics, as: GoogleApi.Language.V1.Model.CpuMetric, type: :list) + field(:diskMetrics, as: GoogleApi.Language.V1.Model.DiskMetric, type: :list) + field(:gpuMetrics, as: GoogleApi.Language.V1.Model.GpuMetric, type: :list) + field(:ramMetrics, as: GoogleApi.Language.V1.Model.RamMetric, type: :list) + field(:tpuMetrics, as: GoogleApi.Language.V1.Model.TpuMetric, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.InfraUsage do + def decode(value, options) do + GoogleApi.Language.V1.Model.InfraUsage.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/moderate_text_request.ex b/clients/language/lib/google_api/language/v1/model/moderate_text_request.ex new file mode 100644 index 0000000000..b50a1f6700 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.ModerateTextRequest do + @moduledoc """ + The document moderation request message. + + ## Attributes + + * `document` (*type:* `GoogleApi.Language.V1.Model.Document.t`, *default:* `nil`) - Required. Input document. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :document => GoogleApi.Language.V1.Model.Document.t() | nil + } + + field(:document, as: GoogleApi.Language.V1.Model.Document) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.ModerateTextRequest do + def decode(value, options) do + GoogleApi.Language.V1.Model.ModerateTextRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/moderate_text_response.ex b/clients/language/lib/google_api/language/v1/model/moderate_text_response.ex new file mode 100644 index 0000000000..61ed6e5c7a --- /dev/null +++ b/clients/language/lib/google_api/language/v1/model/moderate_text_response.ex @@ -0,0 +1,47 @@ +# 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.V1.Model.ModerateTextResponse do + @moduledoc """ + The document moderation response message. + + ## Attributes + + * `moderationCategories` (*type:* `list(GoogleApi.Language.V1.Model.ClassificationCategory.t)`, *default:* `nil`) - Harmful and sensitive categories representing the input document. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :moderationCategories => + list(GoogleApi.Language.V1.Model.ClassificationCategory.t()) | nil + } + + field(:moderationCategories, as: GoogleApi.Language.V1.Model.ClassificationCategory, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.ModerateTextResponse do + def decode(value, options) do + GoogleApi.Language.V1.Model.ModerateTextResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/ram_metric.ex b/clients/language/lib/google_api/language/v1/model/ram_metric.ex new file mode 100644 index 0000000000..6dc15eb20d --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.RamMetric do + def decode(value, options) do + GoogleApi.Language.V1.Model.RamMetric.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/text_span.ex b/clients/language/lib/google_api/language/v1/model/text_span.ex index ed59d4af22..56be8c00bb 100644 --- a/clients/language/lib/google_api/language/v1/model/text_span.ex +++ b/clients/language/lib/google_api/language/v1/model/text_span.ex @@ -17,12 +17,12 @@ defmodule GoogleApi.Language.V1.Model.TextSpan do @moduledoc """ - Represents an output piece of text. + 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 output text. + * `content` (*type:* `String.t`, *default:* `nil`) - The content of the text span, which is a substring of the document. """ use GoogleApi.Gax.ModelBase diff --git a/clients/language/lib/google_api/language/v1/model/tpu_metric.ex b/clients/language/lib/google_api/language/v1/model/tpu_metric.ex new file mode 100644 index 0000000000..de9b0c956f --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.TpuMetric do + def decode(value, options) do + GoogleApi.Language.V1.Model.TpuMetric.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_array_stats.ex b/clients/language/lib/google_api/language/v1/model/xps_array_stats.ex new file mode 100644 index 0000000000..402acf820f --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSArrayStats do + @moduledoc """ + The data statistics of a series of ARRAY values. + + ## Attributes + + * `commonStats` (*type:* `GoogleApi.Language.V1.Model.XPSCommonStats.t`, *default:* `nil`) - + * `memberStats` (*type:* `GoogleApi.Language.V1.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.V1.Model.XPSCommonStats.t() | nil, + :memberStats => GoogleApi.Language.V1.Model.XPSDataStats.t() | nil + } + + field(:commonStats, as: GoogleApi.Language.V1.Model.XPSCommonStats) + field(:memberStats, as: GoogleApi.Language.V1.Model.XPSDataStats) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSArrayStats do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSArrayStats.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_batch_predict_response.ex b/clients/language/lib/google_api/language/v1/model/xps_batch_predict_response.ex new file mode 100644 index 0000000000..2dda1efcd5 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSBatchPredictResponse do + @moduledoc """ + + + ## Attributes + + * `exampleSet` (*type:* `GoogleApi.Language.V1.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.V1.Model.XPSExampleSet.t() | nil + } + + field(:exampleSet, as: GoogleApi.Language.V1.Model.XPSExampleSet) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSBatchPredictResponse do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSBatchPredictResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_bounding_box_metrics_entry.ex b/clients/language/lib/google_api/language/v1/model/xps_bounding_box_metrics_entry.ex new file mode 100644 index 0000000000..512417f74c --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.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.V1.Model.XPSBoundingBoxMetricsEntryConfidenceMetricsEntry.t()) + | nil, + :iouThreshold => number() | nil, + :meanAveragePrecision => number() | nil + } + + field(:confidenceMetricsEntries, + as: GoogleApi.Language.V1.Model.XPSBoundingBoxMetricsEntryConfidenceMetricsEntry, + type: :list + ) + + field(:iouThreshold) + field(:meanAveragePrecision) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSBoundingBoxMetricsEntry do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSBoundingBoxMetricsEntry.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_bounding_box_metrics_entry_confidence_metrics_entry.ex b/clients/language/lib/google_api/language/v1/model/xps_bounding_box_metrics_entry_confidence_metrics_entry.ex new file mode 100644 index 0000000000..bb2f485569 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSBoundingBoxMetricsEntryConfidenceMetricsEntry do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSBoundingBoxMetricsEntryConfidenceMetricsEntry.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Language.V1.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/v1/model/xps_category_stats.ex b/clients/language/lib/google_api/language/v1/model/xps_category_stats.ex new file mode 100644 index 0000000000..3f654d6b89 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSCategoryStats do + @moduledoc """ + The data statistics of a series of CATEGORY values. + + ## Attributes + + * `commonStats` (*type:* `GoogleApi.Language.V1.Model.XPSCommonStats.t`, *default:* `nil`) - + * `topCategoryStats` (*type:* `list(GoogleApi.Language.V1.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.V1.Model.XPSCommonStats.t() | nil, + :topCategoryStats => + list(GoogleApi.Language.V1.Model.XPSCategoryStatsSingleCategoryStats.t()) | nil + } + + field(:commonStats, as: GoogleApi.Language.V1.Model.XPSCommonStats) + + field(:topCategoryStats, + as: GoogleApi.Language.V1.Model.XPSCategoryStatsSingleCategoryStats, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSCategoryStats do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSCategoryStats.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_category_stats_single_category_stats.ex b/clients/language/lib/google_api/language/v1/model/xps_category_stats_single_category_stats.ex new file mode 100644 index 0000000000..e0ee6f91f4 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSCategoryStatsSingleCategoryStats do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSCategoryStatsSingleCategoryStats.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_classification_evaluation_metrics.ex b/clients/language/lib/google_api/language/v1/model/xps_classification_evaluation_metrics.ex new file mode 100644 index 0000000000..0703257bbb --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSConfidenceMetricsEntry.t)`, *default:* `nil`) - Metrics that have confidence thresholds. Precision-recall curve can be derived from it. + * `confusionMatrix` (*type:* `GoogleApi.Language.V1.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.V1.Model.XPSConfidenceMetricsEntry.t()) | nil, + :confusionMatrix => GoogleApi.Language.V1.Model.XPSConfusionMatrix.t() | nil, + :evaluatedExamplesCount => integer() | nil, + :logLoss => number() | nil + } + + field(:auPrc) + field(:auRoc) + field(:baseAuPrc) + + field(:confidenceMetricsEntries, + as: GoogleApi.Language.V1.Model.XPSConfidenceMetricsEntry, + type: :list + ) + + field(:confusionMatrix, as: GoogleApi.Language.V1.Model.XPSConfusionMatrix) + field(:evaluatedExamplesCount) + field(:logLoss) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSClassificationEvaluationMetrics do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSClassificationEvaluationMetrics.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_color_map.ex b/clients/language/lib/google_api/language/v1/model/xps_color_map.ex new file mode 100644 index 0000000000..bc72448084 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.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.V1.Model.XPSColorMapIntColor.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :annotationSpecIdToken => String.t() | nil, + :color => GoogleApi.Language.V1.Model.Color.t() | nil, + :displayName => String.t() | nil, + :intColor => GoogleApi.Language.V1.Model.XPSColorMapIntColor.t() | nil + } + + field(:annotationSpecIdToken) + field(:color, as: GoogleApi.Language.V1.Model.Color) + field(:displayName) + field(:intColor, as: GoogleApi.Language.V1.Model.XPSColorMapIntColor) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSColorMap do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSColorMap.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_color_map_int_color.ex b/clients/language/lib/google_api/language/v1/model/xps_color_map_int_color.ex new file mode 100644 index 0000000000..cb68173c07 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSColorMapIntColor do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSColorMapIntColor.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_column_spec.ex b/clients/language/lib/google_api/language/v1/model/xps_column_spec.ex new file mode 100644 index 0000000000..ef902c7837 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.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.V1.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.V1.Model.XPSColumnSpecForecastingMetadata.t`, *default:* `nil`) - + * `topCorrelatedColumns` (*type:* `list(GoogleApi.Language.V1.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.V1.Model.XPSDataStats.t() | nil, + :dataType => GoogleApi.Language.V1.Model.XPSDataType.t() | nil, + :displayName => String.t() | nil, + :forecastingMetadata => + GoogleApi.Language.V1.Model.XPSColumnSpecForecastingMetadata.t() | nil, + :topCorrelatedColumns => + list(GoogleApi.Language.V1.Model.XPSColumnSpecCorrelatedColumn.t()) | nil + } + + field(:columnId) + field(:dataStats, as: GoogleApi.Language.V1.Model.XPSDataStats) + field(:dataType, as: GoogleApi.Language.V1.Model.XPSDataType) + field(:displayName) + field(:forecastingMetadata, as: GoogleApi.Language.V1.Model.XPSColumnSpecForecastingMetadata) + + field(:topCorrelatedColumns, + as: GoogleApi.Language.V1.Model.XPSColumnSpecCorrelatedColumn, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSColumnSpec do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSColumnSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_column_spec_correlated_column.ex b/clients/language/lib/google_api/language/v1/model/xps_column_spec_correlated_column.ex new file mode 100644 index 0000000000..26b5b0b911 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSCorrelationStats.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :columnId => integer() | nil, + :correlationStats => GoogleApi.Language.V1.Model.XPSCorrelationStats.t() | nil + } + + field(:columnId) + field(:correlationStats, as: GoogleApi.Language.V1.Model.XPSCorrelationStats) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSColumnSpecCorrelatedColumn do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSColumnSpecCorrelatedColumn.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_column_spec_forecasting_metadata.ex b/clients/language/lib/google_api/language/v1/model/xps_column_spec_forecasting_metadata.ex new file mode 100644 index 0000000000..f974474bea --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSColumnSpecForecastingMetadata do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSColumnSpecForecastingMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_common_stats.ex b/clients/language/lib/google_api/language/v1/model/xps_common_stats.ex new file mode 100644 index 0000000000..074726a3d9 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSCommonStats do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSCommonStats.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_confidence_metrics_entry.ex b/clients/language/lib/google_api/language/v1/model/xps_confidence_metrics_entry.ex new file mode 100644 index 0000000000..d8195b42b1 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSConfidenceMetricsEntry do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSConfidenceMetricsEntry.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_confusion_matrix.ex b/clients/language/lib/google_api/language/v1/model/xps_confusion_matrix.ex new file mode 100644 index 0000000000..988de29d98 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.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.V1.Model.XPSConfusionMatrixRow.t()) | nil, + :sentimentLabel => list(integer()) | nil + } + + field(:annotationSpecIdToken, type: :list) + field(:category, type: :list) + field(:row, as: GoogleApi.Language.V1.Model.XPSConfusionMatrixRow, type: :list) + field(:sentimentLabel, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSConfusionMatrix do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSConfusionMatrix.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_confusion_matrix_row.ex b/clients/language/lib/google_api/language/v1/model/xps_confusion_matrix_row.ex new file mode 100644 index 0000000000..8ef6e5f934 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSConfusionMatrixRow do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSConfusionMatrixRow.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/v1_model.ex b/clients/language/lib/google_api/language/v1/model/xps_core_ml_format.ex similarity index 73% rename from clients/language/lib/google_api/language/v1/model/v1_model.ex rename to clients/language/lib/google_api/language/v1/model/xps_core_ml_format.ex index 3840254e3d..3cc695b044 100644 --- a/clients/language/lib/google_api/language/v1/model/v1_model.ex +++ b/clients/language/lib/google_api/language/v1/model/xps_core_ml_format.ex @@ -15,9 +15,9 @@ # NOTE: This file is auto generated by the elixir code generator program. # Do not edit this file manually. -defmodule GoogleApi.Language.V1.Model.V1Model do +defmodule GoogleApi.Language.V1.Model.XPSCoreMlFormat do @moduledoc """ - Options for the V1 model. + A model format used for iOS mobile devices. ## Attributes @@ -28,13 +28,13 @@ defmodule GoogleApi.Language.V1.Model.V1Model do @type t :: %__MODULE__{} end -defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.V1Model do +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSCoreMlFormat do def decode(value, options) do - GoogleApi.Language.V1.Model.V1Model.decode(value, options) + GoogleApi.Language.V1.Model.XPSCoreMlFormat.decode(value, options) end end -defimpl Poison.Encoder, for: GoogleApi.Language.V1.Model.V1Model do +defimpl Poison.Encoder, for: GoogleApi.Language.V1.Model.XPSCoreMlFormat do def encode(value, options) do GoogleApi.Gax.ModelBase.encode(value, options) end diff --git a/clients/language/lib/google_api/language/v1/model/xps_correlation_stats.ex b/clients/language/lib/google_api/language/v1/model/xps_correlation_stats.ex new file mode 100644 index 0000000000..8aff6c9440 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSCorrelationStats do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSCorrelationStats.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_data_errors.ex b/clients/language/lib/google_api/language/v1/model/xps_data_errors.ex new file mode 100644 index 0000000000..6109c182aa --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSDataErrors do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSDataErrors.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_data_stats.ex b/clients/language/lib/google_api/language/v1/model/xps_data_stats.ex new file mode 100644 index 0000000000..234d414c3e --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSDataStats do + @moduledoc """ + The data statistics of a series of values that share the same DataType. + + ## Attributes + + * `arrayStats` (*type:* `GoogleApi.Language.V1.Model.XPSArrayStats.t`, *default:* `nil`) - The statistics for ARRAY DataType. + * `categoryStats` (*type:* `GoogleApi.Language.V1.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.V1.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.V1.Model.XPSStringStats.t`, *default:* `nil`) - The statistics for STRING DataType. + * `structStats` (*type:* `GoogleApi.Language.V1.Model.XPSStructStats.t`, *default:* `nil`) - The statistics for STRUCT DataType. + * `timestampStats` (*type:* `GoogleApi.Language.V1.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.V1.Model.XPSArrayStats.t() | nil, + :categoryStats => GoogleApi.Language.V1.Model.XPSCategoryStats.t() | nil, + :distinctValueCount => String.t() | nil, + :float64Stats => GoogleApi.Language.V1.Model.XPSFloat64Stats.t() | nil, + :nullValueCount => String.t() | nil, + :stringStats => GoogleApi.Language.V1.Model.XPSStringStats.t() | nil, + :structStats => GoogleApi.Language.V1.Model.XPSStructStats.t() | nil, + :timestampStats => GoogleApi.Language.V1.Model.XPSTimestampStats.t() | nil, + :validValueCount => String.t() | nil + } + + field(:arrayStats, as: GoogleApi.Language.V1.Model.XPSArrayStats) + field(:categoryStats, as: GoogleApi.Language.V1.Model.XPSCategoryStats) + field(:distinctValueCount) + field(:float64Stats, as: GoogleApi.Language.V1.Model.XPSFloat64Stats) + field(:nullValueCount) + field(:stringStats, as: GoogleApi.Language.V1.Model.XPSStringStats) + field(:structStats, as: GoogleApi.Language.V1.Model.XPSStructStats) + field(:timestampStats, as: GoogleApi.Language.V1.Model.XPSTimestampStats) + field(:validValueCount) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSDataStats do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSDataStats.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_data_type.ex b/clients/language/lib/google_api/language/v1/model/xps_data_type.ex new file mode 100644 index 0000000000..dde7b73117 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSDataType.t)`, *default:* `nil`) - The highly compatible data types to this data type. + * `listElementType` (*type:* `GoogleApi.Language.V1.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.V1.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.V1.Model.XPSDataType.t()) | nil, + :listElementType => GoogleApi.Language.V1.Model.XPSDataType.t() | nil, + :nullable => boolean() | nil, + :structType => GoogleApi.Language.V1.Model.XPSStructType.t() | nil, + :timeFormat => String.t() | nil, + :typeCode => String.t() | nil + } + + field(:compatibleDataTypes, as: GoogleApi.Language.V1.Model.XPSDataType, type: :list) + field(:listElementType, as: GoogleApi.Language.V1.Model.XPSDataType) + field(:nullable) + field(:structType, as: GoogleApi.Language.V1.Model.XPSStructType) + field(:timeFormat) + field(:typeCode) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSDataType do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSDataType.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_docker_format.ex b/clients/language/lib/google_api/language/v1/model/xps_docker_format.ex new file mode 100644 index 0000000000..d2192cf3bc --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSDockerFormat do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSDockerFormat.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_edge_tpu_tf_lite_format.ex b/clients/language/lib/google_api/language/v1/model/xps_edge_tpu_tf_lite_format.ex new file mode 100644 index 0000000000..e4375ea8a4 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSEdgeTpuTfLiteFormat do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSEdgeTpuTfLiteFormat.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_evaluation_metrics.ex b/clients/language/lib/google_api/language/v1/model/xps_evaluation_metrics.ex new file mode 100644 index 0000000000..96ca24dce9 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSClassificationEvaluationMetrics.t`, *default:* `nil`) - + * `imageObjectDetectionEvalMetrics` (*type:* `GoogleApi.Language.V1.Model.XPSImageObjectDetectionEvaluationMetrics.t`, *default:* `nil`) - + * `imageSegmentationEvalMetrics` (*type:* `GoogleApi.Language.V1.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.V1.Model.XPSRegressionEvaluationMetrics.t`, *default:* `nil`) - + * `tablesClassificationEvalMetrics` (*type:* `GoogleApi.Language.V1.Model.XPSClassificationEvaluationMetrics.t`, *default:* `nil`) - + * `tablesEvalMetrics` (*type:* `GoogleApi.Language.V1.Model.XPSTablesEvaluationMetrics.t`, *default:* `nil`) - + * `textClassificationEvalMetrics` (*type:* `GoogleApi.Language.V1.Model.XPSClassificationEvaluationMetrics.t`, *default:* `nil`) - + * `textExtractionEvalMetrics` (*type:* `GoogleApi.Language.V1.Model.XPSTextExtractionEvaluationMetrics.t`, *default:* `nil`) - + * `textSentimentEvalMetrics` (*type:* `GoogleApi.Language.V1.Model.XPSTextSentimentEvaluationMetrics.t`, *default:* `nil`) - + * `translationEvalMetrics` (*type:* `GoogleApi.Language.V1.Model.XPSTranslationEvaluationMetrics.t`, *default:* `nil`) - + * `videoActionRecognitionEvalMetrics` (*type:* `GoogleApi.Language.V1.Model.XPSVideoActionRecognitionEvaluationMetrics.t`, *default:* `nil`) - + * `videoClassificationEvalMetrics` (*type:* `GoogleApi.Language.V1.Model.XPSClassificationEvaluationMetrics.t`, *default:* `nil`) - + * `videoObjectTrackingEvalMetrics` (*type:* `GoogleApi.Language.V1.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.V1.Model.XPSClassificationEvaluationMetrics.t() | nil, + :imageObjectDetectionEvalMetrics => + GoogleApi.Language.V1.Model.XPSImageObjectDetectionEvaluationMetrics.t() | nil, + :imageSegmentationEvalMetrics => + GoogleApi.Language.V1.Model.XPSImageSegmentationEvaluationMetrics.t() | nil, + :label => String.t() | nil, + :regressionEvalMetrics => + GoogleApi.Language.V1.Model.XPSRegressionEvaluationMetrics.t() | nil, + :tablesClassificationEvalMetrics => + GoogleApi.Language.V1.Model.XPSClassificationEvaluationMetrics.t() | nil, + :tablesEvalMetrics => GoogleApi.Language.V1.Model.XPSTablesEvaluationMetrics.t() | nil, + :textClassificationEvalMetrics => + GoogleApi.Language.V1.Model.XPSClassificationEvaluationMetrics.t() | nil, + :textExtractionEvalMetrics => + GoogleApi.Language.V1.Model.XPSTextExtractionEvaluationMetrics.t() | nil, + :textSentimentEvalMetrics => + GoogleApi.Language.V1.Model.XPSTextSentimentEvaluationMetrics.t() | nil, + :translationEvalMetrics => + GoogleApi.Language.V1.Model.XPSTranslationEvaluationMetrics.t() | nil, + :videoActionRecognitionEvalMetrics => + GoogleApi.Language.V1.Model.XPSVideoActionRecognitionEvaluationMetrics.t() | nil, + :videoClassificationEvalMetrics => + GoogleApi.Language.V1.Model.XPSClassificationEvaluationMetrics.t() | nil, + :videoObjectTrackingEvalMetrics => + GoogleApi.Language.V1.Model.XPSVideoObjectTrackingEvaluationMetrics.t() | nil + } + + field(:annotationSpecIdToken) + field(:category) + field(:evaluatedExampleCount) + + field(:imageClassificationEvalMetrics, + as: GoogleApi.Language.V1.Model.XPSClassificationEvaluationMetrics + ) + + field(:imageObjectDetectionEvalMetrics, + as: GoogleApi.Language.V1.Model.XPSImageObjectDetectionEvaluationMetrics + ) + + field(:imageSegmentationEvalMetrics, + as: GoogleApi.Language.V1.Model.XPSImageSegmentationEvaluationMetrics + ) + + field(:label) + field(:regressionEvalMetrics, as: GoogleApi.Language.V1.Model.XPSRegressionEvaluationMetrics) + + field(:tablesClassificationEvalMetrics, + as: GoogleApi.Language.V1.Model.XPSClassificationEvaluationMetrics + ) + + field(:tablesEvalMetrics, as: GoogleApi.Language.V1.Model.XPSTablesEvaluationMetrics) + + field(:textClassificationEvalMetrics, + as: GoogleApi.Language.V1.Model.XPSClassificationEvaluationMetrics + ) + + field(:textExtractionEvalMetrics, + as: GoogleApi.Language.V1.Model.XPSTextExtractionEvaluationMetrics + ) + + field(:textSentimentEvalMetrics, + as: GoogleApi.Language.V1.Model.XPSTextSentimentEvaluationMetrics + ) + + field(:translationEvalMetrics, as: GoogleApi.Language.V1.Model.XPSTranslationEvaluationMetrics) + + field(:videoActionRecognitionEvalMetrics, + as: GoogleApi.Language.V1.Model.XPSVideoActionRecognitionEvaluationMetrics + ) + + field(:videoClassificationEvalMetrics, + as: GoogleApi.Language.V1.Model.XPSClassificationEvaluationMetrics + ) + + field(:videoObjectTrackingEvalMetrics, + as: GoogleApi.Language.V1.Model.XPSVideoObjectTrackingEvaluationMetrics + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSEvaluationMetrics do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSEvaluationMetrics.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_evaluation_metrics_set.ex b/clients/language/lib/google_api/language/v1/model/xps_evaluation_metrics_set.ex new file mode 100644 index 0000000000..df25f9a436 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSEvaluationMetricsSet do + @moduledoc """ + Specifies location of model evaluation metrics. + + ## Attributes + + * `evaluationMetrics` (*type:* `list(GoogleApi.Language.V1.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.V1.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.V1.Model.XPSEvaluationMetrics.t()) | nil, + :fileSpec => GoogleApi.Language.V1.Model.XPSFileSpec.t() | nil, + :numEvaluationMetrics => String.t() | nil + } + + field(:evaluationMetrics, as: GoogleApi.Language.V1.Model.XPSEvaluationMetrics, type: :list) + field(:fileSpec, as: GoogleApi.Language.V1.Model.XPSFileSpec) + field(:numEvaluationMetrics) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSEvaluationMetricsSet do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSEvaluationMetricsSet.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_example_set.ex b/clients/language/lib/google_api/language/v1/model/xps_example_set.ex new file mode 100644 index 0000000000..6075a26ebd --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSExampleSet do + @moduledoc """ + Set of examples or input sources. + + ## Attributes + + * `fileSpec` (*type:* `GoogleApi.Language.V1.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.V1.Model.XPSFileSpec.t() | nil, + :fingerprint => String.t() | nil, + :numExamples => String.t() | nil, + :numInputSources => String.t() | nil + } + + field(:fileSpec, as: GoogleApi.Language.V1.Model.XPSFileSpec) + field(:fingerprint) + field(:numExamples) + field(:numInputSources) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSExampleSet do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSExampleSet.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_export_model_output_config.ex b/clients/language/lib/google_api/language/v1/model/xps_export_model_output_config.ex new file mode 100644 index 0000000000..e14fd5be76 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSExportModelOutputConfig do + @moduledoc """ + + + ## Attributes + + * `coreMlFormat` (*type:* `GoogleApi.Language.V1.Model.XPSCoreMlFormat.t`, *default:* `nil`) - + * `dockerFormat` (*type:* `GoogleApi.Language.V1.Model.XPSDockerFormat.t`, *default:* `nil`) - + * `edgeTpuTfLiteFormat` (*type:* `GoogleApi.Language.V1.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.V1.Model.XPSTfJsFormat.t`, *default:* `nil`) - + * `tfLiteFormat` (*type:* `GoogleApi.Language.V1.Model.XPSTfLiteFormat.t`, *default:* `nil`) - + * `tfSavedModelFormat` (*type:* `GoogleApi.Language.V1.Model.XPSTfSavedModelFormat.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :coreMlFormat => GoogleApi.Language.V1.Model.XPSCoreMlFormat.t() | nil, + :dockerFormat => GoogleApi.Language.V1.Model.XPSDockerFormat.t() | nil, + :edgeTpuTfLiteFormat => GoogleApi.Language.V1.Model.XPSEdgeTpuTfLiteFormat.t() | nil, + :exportFirebaseAuxiliaryInfo => boolean() | nil, + :outputGcrUri => String.t() | nil, + :outputGcsUri => String.t() | nil, + :tfJsFormat => GoogleApi.Language.V1.Model.XPSTfJsFormat.t() | nil, + :tfLiteFormat => GoogleApi.Language.V1.Model.XPSTfLiteFormat.t() | nil, + :tfSavedModelFormat => GoogleApi.Language.V1.Model.XPSTfSavedModelFormat.t() | nil + } + + field(:coreMlFormat, as: GoogleApi.Language.V1.Model.XPSCoreMlFormat) + field(:dockerFormat, as: GoogleApi.Language.V1.Model.XPSDockerFormat) + field(:edgeTpuTfLiteFormat, as: GoogleApi.Language.V1.Model.XPSEdgeTpuTfLiteFormat) + field(:exportFirebaseAuxiliaryInfo) + field(:outputGcrUri) + field(:outputGcsUri) + field(:tfJsFormat, as: GoogleApi.Language.V1.Model.XPSTfJsFormat) + field(:tfLiteFormat, as: GoogleApi.Language.V1.Model.XPSTfLiteFormat) + field(:tfSavedModelFormat, as: GoogleApi.Language.V1.Model.XPSTfSavedModelFormat) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSExportModelOutputConfig do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSExportModelOutputConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_file_spec.ex b/clients/language/lib/google_api/language/v1/model/xps_file_spec.ex new file mode 100644 index 0000000000..f169881b92 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSFileSpec do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSFileSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_float64_stats.ex b/clients/language/lib/google_api/language/v1/model/xps_float64_stats.ex new file mode 100644 index 0000000000..734759e885 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSFloat64Stats do + @moduledoc """ + The data statistics of a series of FLOAT64 values. + + ## Attributes + + * `commonStats` (*type:* `GoogleApi.Language.V1.Model.XPSCommonStats.t`, *default:* `nil`) - + * `histogramBuckets` (*type:* `list(GoogleApi.Language.V1.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.V1.Model.XPSCommonStats.t() | nil, + :histogramBuckets => + list(GoogleApi.Language.V1.Model.XPSFloat64StatsHistogramBucket.t()) | nil, + :mean => float() | nil, + :quantiles => list(float()) | nil, + :standardDeviation => float() | nil + } + + field(:commonStats, as: GoogleApi.Language.V1.Model.XPSCommonStats) + + field(:histogramBuckets, + as: GoogleApi.Language.V1.Model.XPSFloat64StatsHistogramBucket, + type: :list + ) + + field(:mean) + field(:quantiles, type: :list) + field(:standardDeviation) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSFloat64Stats do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSFloat64Stats.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_float64_stats_histogram_bucket.ex b/clients/language/lib/google_api/language/v1/model/xps_float64_stats_histogram_bucket.ex new file mode 100644 index 0000000000..4447afb4ba --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSFloat64StatsHistogramBucket do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSFloat64StatsHistogramBucket.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_image_classification_train_response.ex b/clients/language/lib/google_api/language/v1/model/xps_image_classification_train_response.ex new file mode 100644 index 0000000000..c8e9b9519a --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSImageClassificationTrainResponse do + @moduledoc """ + + + ## Attributes + + * `classCount` (*type:* `String.t`, *default:* `nil`) - Total number of classes. + * `exportModelSpec` (*type:* `GoogleApi.Language.V1.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.V1.Model.XPSImageModelArtifactSpec.t`, *default:* `nil`) - ## The fields below are only populated under uCAIP request scope. + * `modelServingSpec` (*type:* `GoogleApi.Language.V1.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.V1.Model.XPSImageExportModelSpec.t() | nil, + :modelArtifactSpec => GoogleApi.Language.V1.Model.XPSImageModelArtifactSpec.t() | nil, + :modelServingSpec => GoogleApi.Language.V1.Model.XPSImageModelServingSpec.t() | nil, + :stopReason => String.t() | nil, + :trainCostInNodeTime => String.t() | nil, + :trainCostNodeSeconds => String.t() | nil + } + + field(:classCount) + field(:exportModelSpec, as: GoogleApi.Language.V1.Model.XPSImageExportModelSpec) + field(:modelArtifactSpec, as: GoogleApi.Language.V1.Model.XPSImageModelArtifactSpec) + field(:modelServingSpec, as: GoogleApi.Language.V1.Model.XPSImageModelServingSpec) + field(:stopReason) + field(:trainCostInNodeTime) + field(:trainCostNodeSeconds) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSImageClassificationTrainResponse do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSImageClassificationTrainResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_image_export_model_spec.ex b/clients/language/lib/google_api/language/v1/model/xps_image_export_model_spec.ex new file mode 100644 index 0000000000..763ceb9ad7 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.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.V1.Model.XPSExportModelOutputConfig.t()) | nil + } + + field(:exportModelOutputConfig, + as: GoogleApi.Language.V1.Model.XPSExportModelOutputConfig, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSImageExportModelSpec do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSImageExportModelSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_image_model_artifact_spec.ex b/clients/language/lib/google_api/language/v1/model/xps_image_model_artifact_spec.ex new file mode 100644 index 0000000000..0b0c47304f --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSImageModelArtifactSpec do + @moduledoc """ + Stores the locations and related metadata of the model artifacts. Populated for uCAIP requests only. + + ## Attributes + + * `checkpointArtifact` (*type:* `GoogleApi.Language.V1.Model.XPSModelArtifactItem.t`, *default:* `nil`) - The Tensorflow checkpoint files. e.g. Used for resumable training. + * `exportArtifact` (*type:* `list(GoogleApi.Language.V1.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.V1.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.V1.Model.XPSModelArtifactItem.t() | nil, + :exportArtifact => list(GoogleApi.Language.V1.Model.XPSModelArtifactItem.t()) | nil, + :labelGcsUri => String.t() | nil, + :servingArtifact => GoogleApi.Language.V1.Model.XPSModelArtifactItem.t() | nil, + :tfJsBinaryGcsPrefix => String.t() | nil, + :tfLiteMetadataGcsUri => String.t() | nil + } + + field(:checkpointArtifact, as: GoogleApi.Language.V1.Model.XPSModelArtifactItem) + field(:exportArtifact, as: GoogleApi.Language.V1.Model.XPSModelArtifactItem, type: :list) + field(:labelGcsUri) + field(:servingArtifact, as: GoogleApi.Language.V1.Model.XPSModelArtifactItem) + field(:tfJsBinaryGcsPrefix) + field(:tfLiteMetadataGcsUri) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSImageModelArtifactSpec do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSImageModelArtifactSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_image_model_serving_spec.ex b/clients/language/lib/google_api/language/v1/model/xps_image_model_serving_spec.ex new file mode 100644 index 0000000000..4f0e54c360 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSImageModelServingSpec do + @moduledoc """ + Serving specification for image models. + + ## Attributes + + * `modelThroughputEstimation` (*type:* `list(GoogleApi.Language.V1.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.V1.Model.XPSImageModelServingSpecModelThroughputEstimation.t() + ) + | nil, + :nodeQps => float() | nil, + :tfRuntimeVersion => String.t() | nil + } + + field(:modelThroughputEstimation, + as: GoogleApi.Language.V1.Model.XPSImageModelServingSpecModelThroughputEstimation, + type: :list + ) + + field(:nodeQps) + field(:tfRuntimeVersion) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSImageModelServingSpec do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSImageModelServingSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_image_model_serving_spec_model_throughput_estimation.ex b/clients/language/lib/google_api/language/v1/model/xps_image_model_serving_spec_model_throughput_estimation.ex new file mode 100644 index 0000000000..e70f163313 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSImageModelServingSpecModelThroughputEstimation do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSImageModelServingSpecModelThroughputEstimation.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Language.V1.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/v1/model/xps_image_object_detection_evaluation_metrics.ex b/clients/language/lib/google_api/language/v1/model/xps_image_object_detection_evaluation_metrics.ex new file mode 100644 index 0000000000..aa9d0df5dc --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.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.V1.Model.XPSBoundingBoxMetricsEntry.t()) | nil, + :evaluatedBoundingBoxCount => integer() | nil + } + + field(:boundingBoxMeanAveragePrecision) + + field(:boundingBoxMetricsEntries, + as: GoogleApi.Language.V1.Model.XPSBoundingBoxMetricsEntry, + type: :list + ) + + field(:evaluatedBoundingBoxCount) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSImageObjectDetectionEvaluationMetrics do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSImageObjectDetectionEvaluationMetrics.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_image_object_detection_model_spec.ex b/clients/language/lib/google_api/language/v1/model/xps_image_object_detection_model_spec.ex new file mode 100644 index 0000000000..2f03a52ebf --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSImageObjectDetectionModelSpec do + @moduledoc """ + + + ## Attributes + + * `classCount` (*type:* `String.t`, *default:* `nil`) - Total number of classes. + * `exportModelSpec` (*type:* `GoogleApi.Language.V1.Model.XPSImageExportModelSpec.t`, *default:* `nil`) - + * `maxBoundingBoxCount` (*type:* `String.t`, *default:* `nil`) - Max number of bounding box. + * `modelArtifactSpec` (*type:* `GoogleApi.Language.V1.Model.XPSImageModelArtifactSpec.t`, *default:* `nil`) - ## The fields below are only populated under uCAIP request scope. + * `modelServingSpec` (*type:* `GoogleApi.Language.V1.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.V1.Model.XPSImageExportModelSpec.t() | nil, + :maxBoundingBoxCount => String.t() | nil, + :modelArtifactSpec => GoogleApi.Language.V1.Model.XPSImageModelArtifactSpec.t() | nil, + :modelServingSpec => GoogleApi.Language.V1.Model.XPSImageModelServingSpec.t() | nil, + :stopReason => String.t() | nil, + :trainCostNodeSeconds => String.t() | nil + } + + field(:classCount) + field(:exportModelSpec, as: GoogleApi.Language.V1.Model.XPSImageExportModelSpec) + field(:maxBoundingBoxCount) + field(:modelArtifactSpec, as: GoogleApi.Language.V1.Model.XPSImageModelArtifactSpec) + field(:modelServingSpec, as: GoogleApi.Language.V1.Model.XPSImageModelServingSpec) + field(:stopReason) + field(:trainCostNodeSeconds) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSImageObjectDetectionModelSpec do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSImageObjectDetectionModelSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_image_segmentation_evaluation_metrics.ex b/clients/language/lib/google_api/language/v1/model/xps_image_segmentation_evaluation_metrics.ex new file mode 100644 index 0000000000..45ed6fa1ec --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSImageSegmentationEvaluationMetrics do + @moduledoc """ + Model evaluation metrics for image segmentation problems. Next tag: 4. + + ## Attributes + + * `confidenceMetricsEntries` (*type:* `list(GoogleApi.Language.V1.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.V1.Model.XPSImageSegmentationEvaluationMetricsConfidenceMetricsEntry.t() + ) + | nil + } + + field(:confidenceMetricsEntries, + as: GoogleApi.Language.V1.Model.XPSImageSegmentationEvaluationMetricsConfidenceMetricsEntry, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSImageSegmentationEvaluationMetrics do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSImageSegmentationEvaluationMetrics.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_image_segmentation_evaluation_metrics_confidence_metrics_entry.ex b/clients/language/lib/google_api/language/v1/model/xps_image_segmentation_evaluation_metrics_confidence_metrics_entry.ex new file mode 100644 index 0000000000..d185e15a39 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.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.V1.Model.XPSConfusionMatrix.t() | nil, + :diceScoreCoefficient => number() | nil, + :iouScore => number() | nil, + :precision => number() | nil, + :recall => number() | nil + } + + field(:confidenceThreshold) + field(:confusionMatrix, as: GoogleApi.Language.V1.Model.XPSConfusionMatrix) + field(:diceScoreCoefficient) + field(:iouScore) + field(:precision) + field(:recall) +end + +defimpl Poison.Decoder, + for: GoogleApi.Language.V1.Model.XPSImageSegmentationEvaluationMetricsConfidenceMetricsEntry do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSImageSegmentationEvaluationMetricsConfidenceMetricsEntry.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Language.V1.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/v1/model/xps_image_segmentation_train_response.ex b/clients/language/lib/google_api/language/v1/model/xps_image_segmentation_train_response.ex new file mode 100644 index 0000000000..48999a1698 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSImageSegmentationTrainResponse do + @moduledoc """ + + + ## Attributes + + * `colorMaps` (*type:* `list(GoogleApi.Language.V1.Model.XPSColorMap.t)`, *default:* `nil`) - Color map of the model. + * `exportModelSpec` (*type:* `GoogleApi.Language.V1.Model.XPSImageExportModelSpec.t`, *default:* `nil`) - NOTE: These fields are not used/needed in EAP but will be set later. + * `modelArtifactSpec` (*type:* `GoogleApi.Language.V1.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.V1.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.V1.Model.XPSColorMap.t()) | nil, + :exportModelSpec => GoogleApi.Language.V1.Model.XPSImageExportModelSpec.t() | nil, + :modelArtifactSpec => GoogleApi.Language.V1.Model.XPSImageModelArtifactSpec.t() | nil, + :modelServingSpec => GoogleApi.Language.V1.Model.XPSImageModelServingSpec.t() | nil, + :stopReason => String.t() | nil, + :trainCostNodeSeconds => String.t() | nil + } + + field(:colorMaps, as: GoogleApi.Language.V1.Model.XPSColorMap, type: :list) + field(:exportModelSpec, as: GoogleApi.Language.V1.Model.XPSImageExportModelSpec) + field(:modelArtifactSpec, as: GoogleApi.Language.V1.Model.XPSImageModelArtifactSpec) + field(:modelServingSpec, as: GoogleApi.Language.V1.Model.XPSImageModelServingSpec) + field(:stopReason) + field(:trainCostNodeSeconds) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSImageSegmentationTrainResponse do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSImageSegmentationTrainResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_integrated_gradients_attribution.ex b/clients/language/lib/google_api/language/v1/model/xps_integrated_gradients_attribution.ex new file mode 100644 index 0000000000..8732827522 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSIntegratedGradientsAttribution do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSIntegratedGradientsAttribution.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_metric_entry.ex b/clients/language/lib/google_api/language/v1/model/xps_metric_entry.ex new file mode 100644 index 0000000000..07e1596eaa --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.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.V1.Model.XPSMetricEntryLabel.t()) | nil + } + + field(:argentumMetricId) + field(:doubleValue) + field(:int64Value) + field(:metricName) + field(:systemLabels, as: GoogleApi.Language.V1.Model.XPSMetricEntryLabel, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSMetricEntry do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSMetricEntry.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_metric_entry_label.ex b/clients/language/lib/google_api/language/v1/model/xps_metric_entry_label.ex new file mode 100644 index 0000000000..0c823ea20c --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSMetricEntryLabel do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSMetricEntryLabel.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_model_artifact_item.ex b/clients/language/lib/google_api/language/v1/model/xps_model_artifact_item.ex new file mode 100644 index 0000000000..a0d40ff549 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSModelArtifactItem do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSModelArtifactItem.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_preprocess_response.ex b/clients/language/lib/google_api/language/v1/model/xps_preprocess_response.ex new file mode 100644 index 0000000000..b7db8a4c74 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSPreprocessResponse do + @moduledoc """ + Next ID: 8 + + ## Attributes + + * `outputExampleSet` (*type:* `GoogleApi.Language.V1.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.V1.Model.XPSSpeechPreprocessResponse.t`, *default:* `nil`) - + * `tablesPreprocessResponse` (*type:* `GoogleApi.Language.V1.Model.XPSTablesPreprocessResponse.t`, *default:* `nil`) - + * `translationPreprocessResp` (*type:* `GoogleApi.Language.V1.Model.XPSTranslationPreprocessResponse.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :outputExampleSet => GoogleApi.Language.V1.Model.XPSExampleSet.t() | nil, + :speechPreprocessResp => + GoogleApi.Language.V1.Model.XPSSpeechPreprocessResponse.t() | nil, + :tablesPreprocessResponse => + GoogleApi.Language.V1.Model.XPSTablesPreprocessResponse.t() | nil, + :translationPreprocessResp => + GoogleApi.Language.V1.Model.XPSTranslationPreprocessResponse.t() | nil + } + + field(:outputExampleSet, as: GoogleApi.Language.V1.Model.XPSExampleSet) + field(:speechPreprocessResp, as: GoogleApi.Language.V1.Model.XPSSpeechPreprocessResponse) + field(:tablesPreprocessResponse, as: GoogleApi.Language.V1.Model.XPSTablesPreprocessResponse) + + field(:translationPreprocessResp, + as: GoogleApi.Language.V1.Model.XPSTranslationPreprocessResponse + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSPreprocessResponse do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSPreprocessResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_regression_evaluation_metrics.ex b/clients/language/lib/google_api/language/v1/model/xps_regression_evaluation_metrics.ex new file mode 100644 index 0000000000..e7efcfff7a --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.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.V1.Model.XPSRegressionMetricsEntry.t()) | nil, + :rootMeanSquaredError => number() | nil, + :rootMeanSquaredLogError => number() | nil + } + + field(:meanAbsoluteError) + field(:meanAbsolutePercentageError) + field(:rSquared) + + field(:regressionMetricsEntries, + as: GoogleApi.Language.V1.Model.XPSRegressionMetricsEntry, + type: :list + ) + + field(:rootMeanSquaredError) + field(:rootMeanSquaredLogError) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSRegressionEvaluationMetrics do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSRegressionEvaluationMetrics.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_regression_metrics_entry.ex b/clients/language/lib/google_api/language/v1/model/xps_regression_metrics_entry.ex new file mode 100644 index 0000000000..cebdfd6863 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSRegressionMetricsEntry do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSRegressionMetricsEntry.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_reporting_metrics.ex b/clients/language/lib/google_api/language/v1/model/xps_reporting_metrics.ex new file mode 100644 index 0000000000..4abeb60919 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.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.V1.Model.XPSMetricEntry.t()) | nil + } + + field(:effectiveTrainingDuration) + field(:metricEntries, as: GoogleApi.Language.V1.Model.XPSMetricEntry, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSReportingMetrics do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSReportingMetrics.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_response_explanation_metadata.ex b/clients/language/lib/google_api/language/v1/model/xps_response_explanation_metadata.ex new file mode 100644 index 0000000000..9ff22af8ee --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSResponseExplanationMetadata do + @moduledoc """ + + + ## Attributes + + * `inputs` (*type:* `%{optional(String.t) => GoogleApi.Language.V1.Model.XPSResponseExplanationMetadataInputMetadata.t}`, *default:* `nil`) - Metadata of the input. + * `outputs` (*type:* `%{optional(String.t) => GoogleApi.Language.V1.Model.XPSResponseExplanationMetadataOutputMetadata.t}`, *default:* `nil`) - Metadata of the output. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :inputs => + %{ + optional(String.t()) => + GoogleApi.Language.V1.Model.XPSResponseExplanationMetadataInputMetadata.t() + } + | nil, + :outputs => + %{ + optional(String.t()) => + GoogleApi.Language.V1.Model.XPSResponseExplanationMetadataOutputMetadata.t() + } + | nil + } + + field(:inputs, + as: GoogleApi.Language.V1.Model.XPSResponseExplanationMetadataInputMetadata, + type: :map + ) + + field(:outputs, + as: GoogleApi.Language.V1.Model.XPSResponseExplanationMetadataOutputMetadata, + type: :map + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSResponseExplanationMetadata do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSResponseExplanationMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_response_explanation_metadata_input_metadata.ex b/clients/language/lib/google_api/language/v1/model/xps_response_explanation_metadata_input_metadata.ex new file mode 100644 index 0000000000..979b357a00 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.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.V1.Model.XPSVisualization.t() | nil + } + + field(:inputTensorName) + field(:modality) + field(:visualizationConfig, as: GoogleApi.Language.V1.Model.XPSVisualization) +end + +defimpl Poison.Decoder, + for: GoogleApi.Language.V1.Model.XPSResponseExplanationMetadataInputMetadata do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSResponseExplanationMetadataInputMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Language.V1.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/v1/model/xps_response_explanation_metadata_output_metadata.ex b/clients/language/lib/google_api/language/v1/model/xps_response_explanation_metadata_output_metadata.ex new file mode 100644 index 0000000000..afc9b8d72e --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSResponseExplanationMetadataOutputMetadata do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSResponseExplanationMetadataOutputMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Language.V1.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/v1/model/xps_response_explanation_parameters.ex b/clients/language/lib/google_api/language/v1/model/xps_response_explanation_parameters.ex new file mode 100644 index 0000000000..e967f0c074 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSResponseExplanationParameters do + @moduledoc """ + + + ## Attributes + + * `integratedGradientsAttribution` (*type:* `GoogleApi.Language.V1.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.V1.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.V1.Model.XPSIntegratedGradientsAttribution.t() | nil, + :xraiAttribution => GoogleApi.Language.V1.Model.XPSXraiAttribution.t() | nil + } + + field(:integratedGradientsAttribution, + as: GoogleApi.Language.V1.Model.XPSIntegratedGradientsAttribution + ) + + field(:xraiAttribution, as: GoogleApi.Language.V1.Model.XPSXraiAttribution) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSResponseExplanationParameters do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSResponseExplanationParameters.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_response_explanation_spec.ex b/clients/language/lib/google_api/language/v1/model/xps_response_explanation_spec.ex new file mode 100644 index 0000000000..fe89a302fb --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSResponseExplanationMetadata.t`, *default:* `nil`) - Metadata describing the Model's input and output for explanation. + * `parameters` (*type:* `GoogleApi.Language.V1.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.V1.Model.XPSResponseExplanationMetadata.t() | nil, + :parameters => GoogleApi.Language.V1.Model.XPSResponseExplanationParameters.t() | nil + } + + field(:explanationType) + field(:metadata, as: GoogleApi.Language.V1.Model.XPSResponseExplanationMetadata) + field(:parameters, as: GoogleApi.Language.V1.Model.XPSResponseExplanationParameters) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSResponseExplanationSpec do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSResponseExplanationSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_row.ex b/clients/language/lib/google_api/language/v1/model/xps_row.ex new file mode 100644 index 0000000000..980f5b78c7 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSRow do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSRow.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_speech_evaluation_metrics.ex b/clients/language/lib/google_api/language/v1/model/xps_speech_evaluation_metrics.ex new file mode 100644 index 0000000000..0e8d75686c --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSSpeechEvaluationMetrics do + @moduledoc """ + + + ## Attributes + + * `subModelEvaluationMetrics` (*type:* `list(GoogleApi.Language.V1.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.V1.Model.XPSSpeechEvaluationMetricsSubModelEvaluationMetric.t() + ) + | nil + } + + field(:subModelEvaluationMetrics, + as: GoogleApi.Language.V1.Model.XPSSpeechEvaluationMetricsSubModelEvaluationMetric, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSSpeechEvaluationMetrics do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSSpeechEvaluationMetrics.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_speech_evaluation_metrics_sub_model_evaluation_metric.ex b/clients/language/lib/google_api/language/v1/model/xps_speech_evaluation_metrics_sub_model_evaluation_metric.ex new file mode 100644 index 0000000000..ae9cad1d6b --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSSpeechEvaluationMetricsSubModelEvaluationMetric do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSSpeechEvaluationMetricsSubModelEvaluationMetric.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Language.V1.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/v1/model/xps_speech_model_spec.ex b/clients/language/lib/google_api/language/v1/model/xps_speech_model_spec.ex new file mode 100644 index 0000000000..7721ae3b1a --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.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.V1.Model.XPSSpeechModelSpecSubModelSpec.t()) | nil + } + + field(:datasetId) + field(:language) + + field(:subModelSpecs, + as: GoogleApi.Language.V1.Model.XPSSpeechModelSpecSubModelSpec, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSSpeechModelSpec do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSSpeechModelSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_speech_model_spec_sub_model_spec.ex b/clients/language/lib/google_api/language/v1/model/xps_speech_model_spec_sub_model_spec.ex new file mode 100644 index 0000000000..efabbdd3c5 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSSpeechModelSpecSubModelSpec do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSSpeechModelSpecSubModelSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_speech_preprocess_response.ex b/clients/language/lib/google_api/language/v1/model/xps_speech_preprocess_response.ex new file mode 100644 index 0000000000..7787ffbe05 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.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.V1.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.V1.Model.XPSSpeechEvaluationMetrics.t() | nil, + :speechPreprocessStats => GoogleApi.Language.V1.Model.XPSSpeechPreprocessStats.t() | nil + } + + field(:cnsTestDataPath) + field(:cnsTrainDataPath) + + field(:prebuiltModelEvaluationMetrics, + as: GoogleApi.Language.V1.Model.XPSSpeechEvaluationMetrics + ) + + field(:speechPreprocessStats, as: GoogleApi.Language.V1.Model.XPSSpeechPreprocessStats) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSSpeechPreprocessResponse do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSSpeechPreprocessResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_speech_preprocess_stats.ex b/clients/language/lib/google_api/language/v1/model/xps_speech_preprocess_stats.ex new file mode 100644 index 0000000000..200779c483 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSSpeechPreprocessStats do + @moduledoc """ + + + ## Attributes + + * `dataErrors` (*type:* `list(GoogleApi.Language.V1.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.V1.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.V1.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.V1.Model.XPSSpeechPreprocessStats do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSSpeechPreprocessStats.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_string_stats.ex b/clients/language/lib/google_api/language/v1/model/xps_string_stats.ex new file mode 100644 index 0000000000..d3139eb086 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSStringStats do + @moduledoc """ + The data statistics of a series of STRING values. + + ## Attributes + + * `commonStats` (*type:* `GoogleApi.Language.V1.Model.XPSCommonStats.t`, *default:* `nil`) - + * `topUnigramStats` (*type:* `list(GoogleApi.Language.V1.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.V1.Model.XPSCommonStats.t() | nil, + :topUnigramStats => + list(GoogleApi.Language.V1.Model.XPSStringStatsUnigramStats.t()) | nil + } + + field(:commonStats, as: GoogleApi.Language.V1.Model.XPSCommonStats) + field(:topUnigramStats, as: GoogleApi.Language.V1.Model.XPSStringStatsUnigramStats, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSStringStats do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSStringStats.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_string_stats_unigram_stats.ex b/clients/language/lib/google_api/language/v1/model/xps_string_stats_unigram_stats.ex new file mode 100644 index 0000000000..3a12fe8bb1 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSStringStatsUnigramStats do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSStringStatsUnigramStats.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_struct_stats.ex b/clients/language/lib/google_api/language/v1/model/xps_struct_stats.ex new file mode 100644 index 0000000000..bcd8e90475 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSStructStats do + @moduledoc """ + The data statistics of a series of STRUCT values. + + ## Attributes + + * `commonStats` (*type:* `GoogleApi.Language.V1.Model.XPSCommonStats.t`, *default:* `nil`) - + * `fieldStats` (*type:* `%{optional(String.t) => GoogleApi.Language.V1.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.V1.Model.XPSCommonStats.t() | nil, + :fieldStats => + %{optional(String.t()) => GoogleApi.Language.V1.Model.XPSDataStats.t()} | nil + } + + field(:commonStats, as: GoogleApi.Language.V1.Model.XPSCommonStats) + field(:fieldStats, as: GoogleApi.Language.V1.Model.XPSDataStats, type: :map) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSStructStats do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSStructStats.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_struct_type.ex b/clients/language/lib/google_api/language/v1/model/xps_struct_type.ex new file mode 100644 index 0000000000..fffc391a77 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSStructType do + @moduledoc """ + `StructType` defines the DataType-s of a STRUCT type. + + ## Attributes + + * `fields` (*type:* `%{optional(String.t) => GoogleApi.Language.V1.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.V1.Model.XPSDataType.t()} | nil + } + + field(:fields, as: GoogleApi.Language.V1.Model.XPSDataType, type: :map) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSStructType do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSStructType.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_table_spec.ex b/clients/language/lib/google_api/language/v1/model/xps_table_spec.ex new file mode 100644 index 0000000000..0108769e2a --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSTableSpec do + @moduledoc """ + + + ## Attributes + + * `columnSpecs` (*type:* `%{optional(String.t) => GoogleApi.Language.V1.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.V1.Model.XPSColumnSpec.t()} | nil, + :importedDataSizeInBytes => String.t() | nil, + :rowCount => String.t() | nil, + :timeColumnId => integer() | nil, + :validRowCount => String.t() | nil + } + + field(:columnSpecs, as: GoogleApi.Language.V1.Model.XPSColumnSpec, type: :map) + field(:importedDataSizeInBytes) + field(:rowCount) + field(:timeColumnId) + field(:validRowCount) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSTableSpec do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSTableSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_tables_classification_metrics.ex b/clients/language/lib/google_api/language/v1/model/xps_tables_classification_metrics.ex new file mode 100644 index 0000000000..1fa9fed20f --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSTablesClassificationMetrics do + @moduledoc """ + Metrics for Tables classification problems. + + ## Attributes + + * `curveMetrics` (*type:* `list(GoogleApi.Language.V1.Model.XPSTablesClassificationMetricsCurveMetrics.t)`, *default:* `nil`) - Metrics building a curve. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :curveMetrics => + list(GoogleApi.Language.V1.Model.XPSTablesClassificationMetricsCurveMetrics.t()) | nil + } + + field(:curveMetrics, + as: GoogleApi.Language.V1.Model.XPSTablesClassificationMetricsCurveMetrics, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSTablesClassificationMetrics do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSTablesClassificationMetrics.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_tables_classification_metrics_curve_metrics.ex b/clients/language/lib/google_api/language/v1/model/xps_tables_classification_metrics_curve_metrics.ex new file mode 100644 index 0000000000..2ceebdf3af --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.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.V1.Model.XPSTablesConfidenceMetricsEntry.t()) | nil, + :logLoss => float() | nil, + :positionThreshold => integer() | nil, + :value => String.t() | nil + } + + field(:aucPr) + field(:aucRoc) + + field(:confidenceMetricsEntries, + as: GoogleApi.Language.V1.Model.XPSTablesConfidenceMetricsEntry, + type: :list + ) + + field(:logLoss) + field(:positionThreshold) + field(:value) +end + +defimpl Poison.Decoder, + for: GoogleApi.Language.V1.Model.XPSTablesClassificationMetricsCurveMetrics do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSTablesClassificationMetricsCurveMetrics.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Language.V1.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/v1/model/xps_tables_confidence_metrics_entry.ex b/clients/language/lib/google_api/language/v1/model/xps_tables_confidence_metrics_entry.ex new file mode 100644 index 0000000000..ec6af15244 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSTablesConfidenceMetricsEntry do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSTablesConfidenceMetricsEntry.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_tables_dataset_metadata.ex b/clients/language/lib/google_api/language/v1/model/xps_tables_dataset_metadata.ex new file mode 100644 index 0000000000..1bb6825419 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSTableSpec.t`, *default:* `nil`) - Primary table. + * `targetColumnCorrelations` (*type:* `%{optional(String.t) => GoogleApi.Language.V1.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.V1.Model.XPSTableSpec.t() | nil, + :targetColumnCorrelations => + %{optional(String.t()) => GoogleApi.Language.V1.Model.XPSCorrelationStats.t()} | nil, + :targetColumnId => integer() | nil, + :weightColumnId => integer() | nil + } + + field(:mlUseColumnId) + field(:primaryTableSpec, as: GoogleApi.Language.V1.Model.XPSTableSpec) + + field(:targetColumnCorrelations, as: GoogleApi.Language.V1.Model.XPSCorrelationStats, type: :map) + + field(:targetColumnId) + field(:weightColumnId) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSTablesDatasetMetadata do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSTablesDatasetMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_tables_evaluation_metrics.ex b/clients/language/lib/google_api/language/v1/model/xps_tables_evaluation_metrics.ex new file mode 100644 index 0000000000..354f84780e --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSTablesEvaluationMetrics do + @moduledoc """ + + + ## Attributes + + * `classificationMetrics` (*type:* `GoogleApi.Language.V1.Model.XPSTablesClassificationMetrics.t`, *default:* `nil`) - Classification metrics. + * `regressionMetrics` (*type:* `GoogleApi.Language.V1.Model.XPSTablesRegressionMetrics.t`, *default:* `nil`) - Regression metrics. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :classificationMetrics => + GoogleApi.Language.V1.Model.XPSTablesClassificationMetrics.t() | nil, + :regressionMetrics => GoogleApi.Language.V1.Model.XPSTablesRegressionMetrics.t() | nil + } + + field(:classificationMetrics, as: GoogleApi.Language.V1.Model.XPSTablesClassificationMetrics) + field(:regressionMetrics, as: GoogleApi.Language.V1.Model.XPSTablesRegressionMetrics) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSTablesEvaluationMetrics do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSTablesEvaluationMetrics.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_tables_model_column_info.ex b/clients/language/lib/google_api/language/v1/model/xps_tables_model_column_info.ex new file mode 100644 index 0000000000..1b66c66b26 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSTablesModelColumnInfo do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSTablesModelColumnInfo.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_tables_model_structure.ex b/clients/language/lib/google_api/language/v1/model/xps_tables_model_structure.ex new file mode 100644 index 0000000000..219a5c1c56 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSTablesModelStructure do + @moduledoc """ + A description of Tables model structure. + + ## Attributes + + * `modelParameters` (*type:* `list(GoogleApi.Language.V1.Model.XPSTablesModelStructureModelParameters.t)`, *default:* `nil`) - A list of models. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :modelParameters => + list(GoogleApi.Language.V1.Model.XPSTablesModelStructureModelParameters.t()) | nil + } + + field(:modelParameters, + as: GoogleApi.Language.V1.Model.XPSTablesModelStructureModelParameters, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSTablesModelStructure do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSTablesModelStructure.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_tables_model_structure_model_parameters.ex b/clients/language/lib/google_api/language/v1/model/xps_tables_model_structure_model_parameters.ex new file mode 100644 index 0000000000..f8f4aa394e --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSTablesModelStructureModelParameters do + @moduledoc """ + Model hyper-parameters for a model. + + ## Attributes + + * `hyperparameters` (*type:* `list(GoogleApi.Language.V1.Model.XPSTablesModelStructureModelParametersParameter.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :hyperparameters => + list(GoogleApi.Language.V1.Model.XPSTablesModelStructureModelParametersParameter.t()) + | nil + } + + field(:hyperparameters, + as: GoogleApi.Language.V1.Model.XPSTablesModelStructureModelParametersParameter, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSTablesModelStructureModelParameters do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSTablesModelStructureModelParameters.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_tables_model_structure_model_parameters_parameter.ex b/clients/language/lib/google_api/language/v1/model/xps_tables_model_structure_model_parameters_parameter.ex new file mode 100644 index 0000000000..4888c43314 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSTablesModelStructureModelParametersParameter do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSTablesModelStructureModelParametersParameter.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Language.V1.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/v1/model/xps_tables_preprocess_response.ex b/clients/language/lib/google_api/language/v1/model/xps_tables_preprocess_response.ex new file mode 100644 index 0000000000..f520ba73a3 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSTablesPreprocessResponse do + @moduledoc """ + + + ## Attributes + + * `tablesDatasetMetadata` (*type:* `GoogleApi.Language.V1.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.V1.Model.XPSTablesDatasetMetadata.t() | nil + } + + field(:tablesDatasetMetadata, as: GoogleApi.Language.V1.Model.XPSTablesDatasetMetadata) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSTablesPreprocessResponse do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSTablesPreprocessResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_tables_regression_metrics.ex b/clients/language/lib/google_api/language/v1/model/xps_tables_regression_metrics.ex new file mode 100644 index 0000000000..60c959f292 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.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.V1.Model.XPSRegressionMetricsEntry.t()) | nil, + :rootMeanSquaredError => float() | nil, + :rootMeanSquaredLogError => float() | nil + } + + field(:meanAbsoluteError) + field(:meanAbsolutePercentageError) + field(:rSquared) + + field(:regressionMetricsEntries, + as: GoogleApi.Language.V1.Model.XPSRegressionMetricsEntry, + type: :list + ) + + field(:rootMeanSquaredError) + field(:rootMeanSquaredLogError) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSTablesRegressionMetrics do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSTablesRegressionMetrics.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_tables_train_response.ex b/clients/language/lib/google_api/language/v1/model/xps_tables_train_response.ex new file mode 100644 index 0000000000..40aa1101f0 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSTablesTrainResponse do + @moduledoc """ + + + ## Attributes + + * `modelStructure` (*type:* `GoogleApi.Language.V1.Model.XPSTablesModelStructure.t`, *default:* `nil`) - + * `predictionSampleRows` (*type:* `list(GoogleApi.Language.V1.Model.XPSRow.t)`, *default:* `nil`) - Sample rows from the dataset this model was trained. + * `tablesModelColumnInfo` (*type:* `list(GoogleApi.Language.V1.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.V1.Model.XPSTablesModelStructure.t() | nil, + :predictionSampleRows => list(GoogleApi.Language.V1.Model.XPSRow.t()) | nil, + :tablesModelColumnInfo => + list(GoogleApi.Language.V1.Model.XPSTablesModelColumnInfo.t()) | nil, + :trainCostMilliNodeHours => String.t() | nil + } + + field(:modelStructure, as: GoogleApi.Language.V1.Model.XPSTablesModelStructure) + field(:predictionSampleRows, as: GoogleApi.Language.V1.Model.XPSRow, type: :list) + + field(:tablesModelColumnInfo, + as: GoogleApi.Language.V1.Model.XPSTablesModelColumnInfo, + type: :list + ) + + field(:trainCostMilliNodeHours) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSTablesTrainResponse do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSTablesTrainResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_tables_training_operation_metadata.ex b/clients/language/lib/google_api/language/v1/model/xps_tables_training_operation_metadata.ex new file mode 100644 index 0000000000..d32d31bdc3 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.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.V1.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.V1.Model.XPSTuningTrial.t()) | nil, + :trainBudgetMilliNodeHours => String.t() | nil, + :trainingObjectivePoints => + list(GoogleApi.Language.V1.Model.XPSTrainingObjectivePoint.t()) | nil, + :trainingStartTime => DateTime.t() | nil + } + + field(:createModelStage) + field(:optimizationObjective) + field(:topTrials, as: GoogleApi.Language.V1.Model.XPSTuningTrial, type: :list) + field(:trainBudgetMilliNodeHours) + + field(:trainingObjectivePoints, + as: GoogleApi.Language.V1.Model.XPSTrainingObjectivePoint, + type: :list + ) + + field(:trainingStartTime, as: DateTime) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSTablesTrainingOperationMetadata do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSTablesTrainingOperationMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_text_component_model.ex b/clients/language/lib/google_api/language/v1/model/xps_text_component_model.ex new file mode 100644 index 0000000000..1d73562225 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.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.V1.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.V1.Model.XPSModelArtifactItem) + field(:servoModelName) + field(:submodelName) + field(:submodelType) + field(:tfRuntimeVersion) + field(:versionNumber) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSTextComponentModel do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSTextComponentModel.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_text_extraction_evaluation_metrics.ex b/clients/language/lib/google_api/language/v1/model/xps_text_extraction_evaluation_metrics.ex new file mode 100644 index 0000000000..ef3f1190f2 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSTextExtractionEvaluationMetrics do + @moduledoc """ + + + ## Attributes + + * `bestF1ConfidenceMetrics` (*type:* `GoogleApi.Language.V1.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.V1.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.V1.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.V1.Model.XPSConfidenceMetricsEntry.t}`, *default:* `nil`) - Only recall, precision, and f1_score will be set. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :bestF1ConfidenceMetrics => + GoogleApi.Language.V1.Model.XPSConfidenceMetricsEntry.t() | nil, + :confidenceMetricsEntries => + list(GoogleApi.Language.V1.Model.XPSConfidenceMetricsEntry.t()) | nil, + :confusionMatrix => GoogleApi.Language.V1.Model.XPSConfusionMatrix.t() | nil, + :perLabelConfidenceMetrics => + %{optional(String.t()) => GoogleApi.Language.V1.Model.XPSConfidenceMetricsEntry.t()} + | nil + } + + field(:bestF1ConfidenceMetrics, as: GoogleApi.Language.V1.Model.XPSConfidenceMetricsEntry) + + field(:confidenceMetricsEntries, + as: GoogleApi.Language.V1.Model.XPSConfidenceMetricsEntry, + type: :list + ) + + field(:confusionMatrix, as: GoogleApi.Language.V1.Model.XPSConfusionMatrix) + + field(:perLabelConfidenceMetrics, + as: GoogleApi.Language.V1.Model.XPSConfidenceMetricsEntry, + type: :map + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSTextExtractionEvaluationMetrics do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSTextExtractionEvaluationMetrics.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_text_sentiment_evaluation_metrics.ex b/clients/language/lib/google_api/language/v1/model/xps_text_sentiment_evaluation_metrics.ex new file mode 100644 index 0000000000..d9cf3af01f --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSTextSentimentEvaluationMetrics do + @moduledoc """ + Model evaluation metrics for text sentiment problems. + + ## Attributes + + * `confusionMatrix` (*type:* `GoogleApi.Language.V1.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.V1.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.V1.Model.XPSConfusionMatrix) + field(:f1Score) + field(:linearKappa) + field(:meanAbsoluteError) + field(:meanSquaredError) + field(:precision) + field(:quadraticKappa) + field(:recall) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSTextSentimentEvaluationMetrics do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSTextSentimentEvaluationMetrics.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_text_to_speech_train_response.ex b/clients/language/lib/google_api/language/v1/model/xps_text_to_speech_train_response.ex new file mode 100644 index 0000000000..33a2c92190 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSTextToSpeechTrainResponse do + @moduledoc """ + TextToSpeech train response + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSTextToSpeechTrainResponse do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSTextToSpeechTrainResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_text_train_response.ex b/clients/language/lib/google_api/language/v1/model/xps_text_train_response.ex new file mode 100644 index 0000000000..681d76f44c --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSTextTrainResponse do + @moduledoc """ + + + ## Attributes + + * `componentModel` (*type:* `list(GoogleApi.Language.V1.Model.XPSTextComponentModel.t)`, *default:* `nil`) - Component submodels. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :componentModel => list(GoogleApi.Language.V1.Model.XPSTextComponentModel.t()) | nil + } + + field(:componentModel, as: GoogleApi.Language.V1.Model.XPSTextComponentModel, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSTextTrainResponse do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSTextTrainResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_tf_js_format.ex b/clients/language/lib/google_api/language/v1/model/xps_tf_js_format.ex new file mode 100644 index 0000000000..930bd71676 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSTfJsFormat do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSTfJsFormat.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_tf_lite_format.ex b/clients/language/lib/google_api/language/v1/model/xps_tf_lite_format.ex new file mode 100644 index 0000000000..c15dd72ea3 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSTfLiteFormat do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSTfLiteFormat.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_tf_saved_model_format.ex b/clients/language/lib/google_api/language/v1/model/xps_tf_saved_model_format.ex new file mode 100644 index 0000000000..99336f7db7 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSTfSavedModelFormat do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSTfSavedModelFormat.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_timestamp_stats.ex b/clients/language/lib/google_api/language/v1/model/xps_timestamp_stats.ex new file mode 100644 index 0000000000..2a73858b6d --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSTimestampStats do + @moduledoc """ + The data statistics of a series of TIMESTAMP values. + + ## Attributes + + * `commonStats` (*type:* `GoogleApi.Language.V1.Model.XPSCommonStats.t`, *default:* `nil`) - + * `granularStats` (*type:* `%{optional(String.t) => GoogleApi.Language.V1.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.V1.Model.XPSCommonStats.t() | nil, + :granularStats => + %{ + optional(String.t()) => + GoogleApi.Language.V1.Model.XPSTimestampStatsGranularStats.t() + } + | nil, + :medianTimestampNanos => String.t() | nil + } + + field(:commonStats, as: GoogleApi.Language.V1.Model.XPSCommonStats) + + field(:granularStats, as: GoogleApi.Language.V1.Model.XPSTimestampStatsGranularStats, type: :map) + + field(:medianTimestampNanos) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSTimestampStats do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSTimestampStats.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_timestamp_stats_granular_stats.ex b/clients/language/lib/google_api/language/v1/model/xps_timestamp_stats_granular_stats.ex new file mode 100644 index 0000000000..2be6074ff3 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSTimestampStatsGranularStats do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSTimestampStatsGranularStats.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_track_metrics_entry.ex b/clients/language/lib/google_api/language/v1/model/xps_track_metrics_entry.ex new file mode 100644 index 0000000000..54f8c95f5f --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.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.V1.Model.XPSTrackMetricsEntryConfidenceMetricsEntry.t()) | nil, + :iouThreshold => number() | nil, + :meanBoundingBoxIou => number() | nil, + :meanMismatchRate => number() | nil, + :meanTrackingAveragePrecision => number() | nil + } + + field(:confidenceMetricsEntries, + as: GoogleApi.Language.V1.Model.XPSTrackMetricsEntryConfidenceMetricsEntry, + type: :list + ) + + field(:iouThreshold) + field(:meanBoundingBoxIou) + field(:meanMismatchRate) + field(:meanTrackingAveragePrecision) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSTrackMetricsEntry do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSTrackMetricsEntry.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_track_metrics_entry_confidence_metrics_entry.ex b/clients/language/lib/google_api/language/v1/model/xps_track_metrics_entry_confidence_metrics_entry.ex new file mode 100644 index 0000000000..45892bdf45 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSTrackMetricsEntryConfidenceMetricsEntry do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSTrackMetricsEntryConfidenceMetricsEntry.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Language.V1.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/v1/model/xps_train_response.ex b/clients/language/lib/google_api/language/v1/model/xps_train_response.ex new file mode 100644 index 0000000000..dfc5fe3c27 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.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.V1.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.V1.Model.XPSEvaluationMetricsSet.t`, *default:* `nil`) - The trained model evaluation metrics. This can be optionally returned. + * `explanationConfigs` (*type:* `list(GoogleApi.Language.V1.Model.XPSResponseExplanationSpec.t)`, *default:* `nil`) - VisionExplanationConfig for XAI on test set. Optional for when XAI is enable in training request. + * `imageClassificationTrainResp` (*type:* `GoogleApi.Language.V1.Model.XPSImageClassificationTrainResponse.t`, *default:* `nil`) - + * `imageObjectDetectionTrainResp` (*type:* `GoogleApi.Language.V1.Model.XPSImageObjectDetectionModelSpec.t`, *default:* `nil`) - + * `imageSegmentationTrainResp` (*type:* `GoogleApi.Language.V1.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.V1.Model.XPSSpeechModelSpec.t`, *default:* `nil`) - + * `tablesTrainResp` (*type:* `GoogleApi.Language.V1.Model.XPSTablesTrainResponse.t`, *default:* `nil`) - + * `textToSpeechTrainResp` (*type:* `GoogleApi.Language.V1.Model.XPSTextToSpeechTrainResponse.t`, *default:* `nil`) - + * `textTrainResp` (*type:* `GoogleApi.Language.V1.Model.XPSTextTrainResponse.t`, *default:* `nil`) - Will only be needed for uCAIP from Beta. + * `translationTrainResp` (*type:* `GoogleApi.Language.V1.Model.XPSTranslationTrainResponse.t`, *default:* `nil`) - + * `videoActionRecognitionTrainResp` (*type:* `GoogleApi.Language.V1.Model.XPSVideoActionRecognitionTrainResponse.t`, *default:* `nil`) - + * `videoClassificationTrainResp` (*type:* `GoogleApi.Language.V1.Model.XPSVideoClassificationTrainResponse.t`, *default:* `nil`) - + * `videoObjectTrackingTrainResp` (*type:* `GoogleApi.Language.V1.Model.XPSVideoObjectTrackingTrainResponse.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deployedModelSizeBytes => String.t() | nil, + :errorAnalysisConfigs => + list(GoogleApi.Language.V1.Model.XPSVisionErrorAnalysisConfig.t()) | nil, + :evaluatedExampleSet => GoogleApi.Language.V1.Model.XPSExampleSet.t() | nil, + :evaluationMetricsSet => GoogleApi.Language.V1.Model.XPSEvaluationMetricsSet.t() | nil, + :explanationConfigs => + list(GoogleApi.Language.V1.Model.XPSResponseExplanationSpec.t()) | nil, + :imageClassificationTrainResp => + GoogleApi.Language.V1.Model.XPSImageClassificationTrainResponse.t() | nil, + :imageObjectDetectionTrainResp => + GoogleApi.Language.V1.Model.XPSImageObjectDetectionModelSpec.t() | nil, + :imageSegmentationTrainResp => + GoogleApi.Language.V1.Model.XPSImageSegmentationTrainResponse.t() | nil, + :modelToken => String.t() | nil, + :speechTrainResp => GoogleApi.Language.V1.Model.XPSSpeechModelSpec.t() | nil, + :tablesTrainResp => GoogleApi.Language.V1.Model.XPSTablesTrainResponse.t() | nil, + :textToSpeechTrainResp => + GoogleApi.Language.V1.Model.XPSTextToSpeechTrainResponse.t() | nil, + :textTrainResp => GoogleApi.Language.V1.Model.XPSTextTrainResponse.t() | nil, + :translationTrainResp => + GoogleApi.Language.V1.Model.XPSTranslationTrainResponse.t() | nil, + :videoActionRecognitionTrainResp => + GoogleApi.Language.V1.Model.XPSVideoActionRecognitionTrainResponse.t() | nil, + :videoClassificationTrainResp => + GoogleApi.Language.V1.Model.XPSVideoClassificationTrainResponse.t() | nil, + :videoObjectTrackingTrainResp => + GoogleApi.Language.V1.Model.XPSVideoObjectTrackingTrainResponse.t() | nil + } + + field(:deployedModelSizeBytes) + + field(:errorAnalysisConfigs, + as: GoogleApi.Language.V1.Model.XPSVisionErrorAnalysisConfig, + type: :list + ) + + field(:evaluatedExampleSet, as: GoogleApi.Language.V1.Model.XPSExampleSet) + field(:evaluationMetricsSet, as: GoogleApi.Language.V1.Model.XPSEvaluationMetricsSet) + + field(:explanationConfigs, + as: GoogleApi.Language.V1.Model.XPSResponseExplanationSpec, + type: :list + ) + + field(:imageClassificationTrainResp, + as: GoogleApi.Language.V1.Model.XPSImageClassificationTrainResponse + ) + + field(:imageObjectDetectionTrainResp, + as: GoogleApi.Language.V1.Model.XPSImageObjectDetectionModelSpec + ) + + field(:imageSegmentationTrainResp, + as: GoogleApi.Language.V1.Model.XPSImageSegmentationTrainResponse + ) + + field(:modelToken) + field(:speechTrainResp, as: GoogleApi.Language.V1.Model.XPSSpeechModelSpec) + field(:tablesTrainResp, as: GoogleApi.Language.V1.Model.XPSTablesTrainResponse) + field(:textToSpeechTrainResp, as: GoogleApi.Language.V1.Model.XPSTextToSpeechTrainResponse) + field(:textTrainResp, as: GoogleApi.Language.V1.Model.XPSTextTrainResponse) + field(:translationTrainResp, as: GoogleApi.Language.V1.Model.XPSTranslationTrainResponse) + + field(:videoActionRecognitionTrainResp, + as: GoogleApi.Language.V1.Model.XPSVideoActionRecognitionTrainResponse + ) + + field(:videoClassificationTrainResp, + as: GoogleApi.Language.V1.Model.XPSVideoClassificationTrainResponse + ) + + field(:videoObjectTrackingTrainResp, + as: GoogleApi.Language.V1.Model.XPSVideoObjectTrackingTrainResponse + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSTrainResponse do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSTrainResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_training_objective_point.ex b/clients/language/lib/google_api/language/v1/model/xps_training_objective_point.ex new file mode 100644 index 0000000000..f1757f7f3e --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSTrainingObjectivePoint do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSTrainingObjectivePoint.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_translation_evaluation_metrics.ex b/clients/language/lib/google_api/language/v1/model/xps_translation_evaluation_metrics.ex new file mode 100644 index 0000000000..9e6b526e5c --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSTranslationEvaluationMetrics do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSTranslationEvaluationMetrics.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_translation_preprocess_response.ex b/clients/language/lib/google_api/language/v1/model/xps_translation_preprocess_response.ex new file mode 100644 index 0000000000..8236c0f340 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSTranslationPreprocessResponse do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSTranslationPreprocessResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_translation_train_response.ex b/clients/language/lib/google_api/language/v1/model/xps_translation_train_response.ex new file mode 100644 index 0000000000..e02462efbd --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSTranslationTrainResponse do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSTranslationTrainResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_tuning_trial.ex b/clients/language/lib/google_api/language/v1/model/xps_tuning_trial.ex new file mode 100644 index 0000000000..003070a871 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSTablesModelStructure.t`, *default:* `nil`) - Model parameters for the trial. + * `trainingObjectivePoint` (*type:* `GoogleApi.Language.V1.Model.XPSTrainingObjectivePoint.t`, *default:* `nil`) - The optimization objective evaluation of the eval split data. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :modelStructure => GoogleApi.Language.V1.Model.XPSTablesModelStructure.t() | nil, + :trainingObjectivePoint => + GoogleApi.Language.V1.Model.XPSTrainingObjectivePoint.t() | nil + } + + field(:modelStructure, as: GoogleApi.Language.V1.Model.XPSTablesModelStructure) + field(:trainingObjectivePoint, as: GoogleApi.Language.V1.Model.XPSTrainingObjectivePoint) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSTuningTrial do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSTuningTrial.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_video_action_metrics_entry.ex b/clients/language/lib/google_api/language/v1/model/xps_video_action_metrics_entry.ex new file mode 100644 index 0000000000..93437d400f --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSVideoActionMetricsEntry do + @moduledoc """ + The Evaluation metrics entry given a specific precision_window_length. + + ## Attributes + + * `confidenceMetricsEntries` (*type:* `list(GoogleApi.Language.V1.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.V1.Model.XPSVideoActionMetricsEntryConfidenceMetricsEntry.t()) + | nil, + :meanAveragePrecision => number() | nil, + :precisionWindowLength => String.t() | nil + } + + field(:confidenceMetricsEntries, + as: GoogleApi.Language.V1.Model.XPSVideoActionMetricsEntryConfidenceMetricsEntry, + type: :list + ) + + field(:meanAveragePrecision) + field(:precisionWindowLength) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSVideoActionMetricsEntry do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSVideoActionMetricsEntry.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_video_action_metrics_entry_confidence_metrics_entry.ex b/clients/language/lib/google_api/language/v1/model/xps_video_action_metrics_entry_confidence_metrics_entry.ex new file mode 100644 index 0000000000..007a58865b --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSVideoActionMetricsEntryConfidenceMetricsEntry do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSVideoActionMetricsEntryConfidenceMetricsEntry.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Language.V1.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/v1/model/xps_video_action_recognition_evaluation_metrics.ex b/clients/language/lib/google_api/language/v1/model/xps_video_action_recognition_evaluation_metrics.ex new file mode 100644 index 0000000000..b11f3b2225 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.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.V1.Model.XPSVideoActionMetricsEntry.t()) | nil + } + + field(:evaluatedActionCount) + + field(:videoActionMetricsEntries, + as: GoogleApi.Language.V1.Model.XPSVideoActionMetricsEntry, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Language.V1.Model.XPSVideoActionRecognitionEvaluationMetrics do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSVideoActionRecognitionEvaluationMetrics.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Language.V1.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/v1/model/xps_video_action_recognition_train_response.ex b/clients/language/lib/google_api/language/v1/model/xps_video_action_recognition_train_response.ex new file mode 100644 index 0000000000..fd5ba9e0a7 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSVideoActionRecognitionTrainResponse do + @moduledoc """ + + + ## Attributes + + * `modelArtifactSpec` (*type:* `GoogleApi.Language.V1.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.V1.Model.XPSVideoModelArtifactSpec.t() | nil, + :trainCostNodeSeconds => String.t() | nil + } + + field(:modelArtifactSpec, as: GoogleApi.Language.V1.Model.XPSVideoModelArtifactSpec) + field(:trainCostNodeSeconds) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSVideoActionRecognitionTrainResponse do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSVideoActionRecognitionTrainResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_video_batch_predict_operation_metadata.ex b/clients/language/lib/google_api/language/v1/model/xps_video_batch_predict_operation_metadata.ex new file mode 100644 index 0000000000..6f9430aa9d --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSVideoBatchPredictOperationMetadata do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSVideoBatchPredictOperationMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_video_classification_train_response.ex b/clients/language/lib/google_api/language/v1/model/xps_video_classification_train_response.ex new file mode 100644 index 0000000000..90bff3f610 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSVideoClassificationTrainResponse do + @moduledoc """ + + + ## Attributes + + * `modelArtifactSpec` (*type:* `GoogleApi.Language.V1.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.V1.Model.XPSVideoModelArtifactSpec.t() | nil, + :trainCostNodeSeconds => String.t() | nil + } + + field(:modelArtifactSpec, as: GoogleApi.Language.V1.Model.XPSVideoModelArtifactSpec) + field(:trainCostNodeSeconds) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSVideoClassificationTrainResponse do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSVideoClassificationTrainResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_video_export_model_spec.ex b/clients/language/lib/google_api/language/v1/model/xps_video_export_model_spec.ex new file mode 100644 index 0000000000..439384860c --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.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.V1.Model.XPSExportModelOutputConfig.t()) | nil + } + + field(:exportModelOutputConfig, + as: GoogleApi.Language.V1.Model.XPSExportModelOutputConfig, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSVideoExportModelSpec do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSVideoExportModelSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_video_model_artifact_spec.ex b/clients/language/lib/google_api/language/v1/model/xps_video_model_artifact_spec.ex new file mode 100644 index 0000000000..65bf1aabd1 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSVideoModelArtifactSpec do + @moduledoc """ + + + ## Attributes + + * `exportArtifact` (*type:* `list(GoogleApi.Language.V1.Model.XPSModelArtifactItem.t)`, *default:* `nil`) - The model binary files in different formats for model export. + * `servingArtifact` (*type:* `GoogleApi.Language.V1.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.V1.Model.XPSModelArtifactItem.t()) | nil, + :servingArtifact => GoogleApi.Language.V1.Model.XPSModelArtifactItem.t() | nil + } + + field(:exportArtifact, as: GoogleApi.Language.V1.Model.XPSModelArtifactItem, type: :list) + field(:servingArtifact, as: GoogleApi.Language.V1.Model.XPSModelArtifactItem) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSVideoModelArtifactSpec do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSVideoModelArtifactSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_video_object_tracking_evaluation_metrics.ex b/clients/language/lib/google_api/language/v1/model/xps_video_object_tracking_evaluation_metrics.ex new file mode 100644 index 0000000000..81a0620580 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.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.V1.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.V1.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.V1.Model.XPSTrackMetricsEntry.t()) | nil + } + + field(:boundingBoxMeanAveragePrecision) + + field(:boundingBoxMetricsEntries, + as: GoogleApi.Language.V1.Model.XPSBoundingBoxMetricsEntry, + type: :list + ) + + field(:evaluatedBoundingboxCount) + field(:evaluatedFrameCount) + field(:evaluatedTrackCount) + field(:trackMeanAveragePrecision) + field(:trackMeanBoundingBoxIou) + field(:trackMeanMismatchRate) + field(:trackMetricsEntries, as: GoogleApi.Language.V1.Model.XPSTrackMetricsEntry, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSVideoObjectTrackingEvaluationMetrics do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSVideoObjectTrackingEvaluationMetrics.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_video_object_tracking_train_response.ex b/clients/language/lib/google_api/language/v1/model/xps_video_object_tracking_train_response.ex new file mode 100644 index 0000000000..5f57771fab --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSVideoObjectTrackingTrainResponse do + @moduledoc """ + + + ## Attributes + + * `exportModelSpec` (*type:* `GoogleApi.Language.V1.Model.XPSVideoExportModelSpec.t`, *default:* `nil`) - Populated for AutoML request only. + * `modelArtifactSpec` (*type:* `GoogleApi.Language.V1.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.V1.Model.XPSVideoExportModelSpec.t() | nil, + :modelArtifactSpec => GoogleApi.Language.V1.Model.XPSVideoModelArtifactSpec.t() | nil, + :trainCostNodeSeconds => String.t() | nil + } + + field(:exportModelSpec, as: GoogleApi.Language.V1.Model.XPSVideoExportModelSpec) + field(:modelArtifactSpec, as: GoogleApi.Language.V1.Model.XPSVideoModelArtifactSpec) + field(:trainCostNodeSeconds) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSVideoObjectTrackingTrainResponse do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSVideoObjectTrackingTrainResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_video_training_operation_metadata.ex b/clients/language/lib/google_api/language/v1/model/xps_video_training_operation_metadata.ex new file mode 100644 index 0000000000..01784cff36 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSVideoTrainingOperationMetadata do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSVideoTrainingOperationMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_vision_error_analysis_config.ex b/clients/language/lib/google_api/language/v1/model/xps_vision_error_analysis_config.ex new file mode 100644 index 0000000000..f0b6f5c2ac --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSVisionErrorAnalysisConfig do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSVisionErrorAnalysisConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_vision_training_operation_metadata.ex b/clients/language/lib/google_api/language/v1/model/xps_vision_training_operation_metadata.ex new file mode 100644 index 0000000000..a7034b715a --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.Model.XPSVisionTrainingOperationMetadata do + @moduledoc """ + + + ## Attributes + + * `explanationUsage` (*type:* `GoogleApi.Language.V1.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.V1.Model.InfraUsage.t() | nil + } + + field(:explanationUsage, as: GoogleApi.Language.V1.Model.InfraUsage) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSVisionTrainingOperationMetadata do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSVisionTrainingOperationMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_visualization.ex b/clients/language/lib/google_api/language/v1/model/xps_visualization.ex new file mode 100644 index 0000000000..148e2dc25b --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSVisualization do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSVisualization.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_xps_operation_metadata.ex b/clients/language/lib/google_api/language/v1/model/xps_xps_operation_metadata.ex new file mode 100644 index 0000000000..9c731eb9b0 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.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.V1.Model.XPSTablesTrainingOperationMetadata.t`, *default:* `nil`) - + * `videoBatchPredictOperationMetadata` (*type:* `GoogleApi.Language.V1.Model.XPSVideoBatchPredictOperationMetadata.t`, *default:* `nil`) - + * `videoTrainingOperationMetadata` (*type:* `GoogleApi.Language.V1.Model.XPSVideoTrainingOperationMetadata.t`, *default:* `nil`) - + * `visionTrainingOperationMetadata` (*type:* `GoogleApi.Language.V1.Model.XPSVisionTrainingOperationMetadata.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :exampleCount => String.t() | nil, + :reportingMetrics => GoogleApi.Language.V1.Model.XPSReportingMetrics.t() | nil, + :tablesTrainingOperationMetadata => + GoogleApi.Language.V1.Model.XPSTablesTrainingOperationMetadata.t() | nil, + :videoBatchPredictOperationMetadata => + GoogleApi.Language.V1.Model.XPSVideoBatchPredictOperationMetadata.t() | nil, + :videoTrainingOperationMetadata => + GoogleApi.Language.V1.Model.XPSVideoTrainingOperationMetadata.t() | nil, + :visionTrainingOperationMetadata => + GoogleApi.Language.V1.Model.XPSVisionTrainingOperationMetadata.t() | nil + } + + field(:exampleCount) + field(:reportingMetrics, as: GoogleApi.Language.V1.Model.XPSReportingMetrics) + + field(:tablesTrainingOperationMetadata, + as: GoogleApi.Language.V1.Model.XPSTablesTrainingOperationMetadata + ) + + field(:videoBatchPredictOperationMetadata, + as: GoogleApi.Language.V1.Model.XPSVideoBatchPredictOperationMetadata + ) + + field(:videoTrainingOperationMetadata, + as: GoogleApi.Language.V1.Model.XPSVideoTrainingOperationMetadata + ) + + field(:visionTrainingOperationMetadata, + as: GoogleApi.Language.V1.Model.XPSVisionTrainingOperationMetadata + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.XPSXpsOperationMetadata do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSXpsOperationMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.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/v1/model/xps_xrai_attribution.ex b/clients/language/lib/google_api/language/v1/model/xps_xrai_attribution.ex new file mode 100644 index 0000000000..9a3f844726 --- /dev/null +++ b/clients/language/lib/google_api/language/v1/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.V1.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.V1.Model.XPSXraiAttribution do + def decode(value, options) do + GoogleApi.Language.V1.Model.XPSXraiAttribution.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Language.V1.Model.XPSXraiAttribution do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end