From caa34ab595bfe052d29ab38a4cb5f97209d64bb0 Mon Sep 17 00:00:00 2001 From: Brett Morgan Date: Thu, 6 Jun 2019 18:25:57 +1000 Subject: [PATCH] Re-run fetch_protos_and_generate_dart.sh --- .../google/cloud/dataproc/v1/clusters.pb.dart | 5 + .../cloud/dataproc/v1/clusters.pbjson.dart | 8 + .../google/cloud/dataproc/v1/shared.pb.dart | 10 + .../cloud/dataproc/v1/shared.pbenum.dart | 32 + .../cloud/dataproc/v1/shared.pbjson.dart | 16 + .../google/cloud/redis/v1/cloud_redis.pb.dart | 256 ++++++++ .../cloud/redis/v1/cloud_redis.pbenum.dart | 2 + .../cloud/redis/v1/cloud_redis.pbgrpc.dart | 58 ++ .../cloud/redis/v1/cloud_redis.pbjson.dart | 88 +++ .../cloud/redis/v1beta1/cloud_redis.pb.dart | 256 ++++++++ .../redis/v1beta1/cloud_redis.pbgrpc.dart | 58 ++ .../redis/v1beta1/cloud_redis.pbjson.dart | 87 +++ .../google/cloud/talent/v4beta1/batch.pb.dart | 196 ++++++ .../cloud/talent/v4beta1/batch.pbenum.dart | 40 ++ .../cloud/talent/v4beta1/batch.pbjson.dart | 99 +++ .../cloud/talent/v4beta1/common.pbenum.dart | 3 + .../cloud/talent/v4beta1/common.pbjson.dart | 1 + .../google/cloud/talent/v4beta1/event.pb.dart | 9 + .../cloud/talent/v4beta1/event.pbenum.dart | 3 - .../cloud/talent/v4beta1/event.pbjson.dart | 2 +- .../cloud/talent/v4beta1/job_service.pb.dart | 180 ++++-- .../talent/v4beta1/job_service.pbgrpc.dart | 59 ++ .../talent/v4beta1/job_service.pbjson.dart | 38 ++ .../v1/video_intelligence.pb.dart | 72 +++ .../v1/video_intelligence.pbjson.dart | 30 + .../v1p3beta1/video_intelligence.pb.dart | 592 +++++++++++++++++- .../v1p3beta1/video_intelligence.pbenum.dart | 5 + .../v1p3beta1/video_intelligence.pbjson.dart | 268 ++++++++ .../dart/google/home/graph/v1/device.pb.dart | 47 ++ .../google/home/graph/v1/device.pbjson.dart | 16 + .../dart/google/privacy/dlp/v2/dlp.pb.dart | 99 +++ .../google/privacy/dlp/v2/dlp.pbjson.dart | 39 ++ .../fetch_protos_and_generate_dart.sh | 2 + .../ads/googleads/v1/common/ad_asset.proto | 5 +- .../googleads/v1/common/ad_type_infos.proto | 37 +- .../ads/googleads/v1/common/asset_types.proto | 2 +- .../ads/googleads/v1/common/bidding.proto | 28 +- .../googleads/v1/common/click_location.proto | 2 +- .../ads/googleads/v1/common/criteria.proto | 46 +- .../criterion_category_availability.proto | 14 +- .../v1/common/custom_parameter.proto | 2 +- .../ads/googleads/v1/common/dates.proto | 2 +- .../explorer_auto_optimizer_setting.proto | 2 +- .../ads/googleads/v1/common/extensions.proto | 20 +- .../ads/googleads/v1/common/feed_common.proto | 2 +- .../googleads/v1/common/final_app_url.proto | 5 +- .../googleads/v1/common/frequency_cap.proto | 11 +- .../v1/common/keyword_plan_common.proto | 5 +- .../v1/common/matching_function.proto | 9 +- .../ads/googleads/v1/common/metrics.proto | 45 +- .../ads/googleads/v1/common/policy.proto | 17 +- .../v1/common/real_time_bidding_setting.proto | 2 +- .../ads/googleads/v1/common/segments.proto | 47 +- .../ads/googleads/v1/common/simulation.proto | 2 +- .../ads/googleads/v1/common/tag_snippet.proto | 5 +- .../v1/common/targeting_setting.proto | 5 +- .../ads/googleads/v1/common/text_label.proto | 2 +- .../googleads/v1/common/url_collection.proto | 2 +- .../ads/googleads/v1/common/user_lists.proto | 33 +- .../v1/resources/account_budget.proto | 26 +- .../resources/account_budget_proposal.proto | 23 +- .../ads/googleads/v1/resources/ad.proto | 29 +- .../ads/googleads/v1/resources/ad_group.proto | 20 +- .../googleads/v1/resources/ad_group_ad.proto | 11 +- .../v1/resources/ad_group_ad_label.proto | 2 +- .../v1/resources/ad_group_bid_modifier.proto | 14 +- .../v1/resources/ad_group_criterion.proto | 41 +- .../resources/ad_group_criterion_label.proto | 2 +- .../ad_group_criterion_simulation.proto | 8 +- .../ad_group_extension_setting.proto | 8 +- .../v1/resources/ad_group_feed.proto | 5 +- .../v1/resources/ad_group_label.proto | 2 +- .../v1/resources/ad_group_simulation.proto | 14 +- .../googleads/v1/resources/ad_parameter.proto | 2 +- .../ads/googleads/v1/resources/asset.proto | 2 +- .../v1/resources/bidding_strategy.proto | 11 +- .../v1/resources/billing_setup.proto | 5 +- .../v1/resources/campaign_bid_modifier.proto | 2 +- .../v1/resources/campaign_budget.proto | 17 +- .../v1/resources/campaign_criterion.proto | 14 +- .../campaign_criterion_simulation.proto | 8 +- .../campaign_extension_setting.proto | 8 +- .../v1/resources/campaign_feed.proto | 5 +- .../v1/resources/campaign_label.proto | 2 +- .../v1/resources/campaign_shared_set.proto | 5 +- .../v1/resources/carrier_constant.proto | 2 +- .../v1/resources/change_status.proto | 8 +- .../googleads/v1/resources/click_view.proto | 2 +- .../v1/resources/conversion_action.proto | 20 +- .../v1/resources/custom_interest.proto | 11 +- .../ads/googleads/v1/resources/customer.proto | 7 +- .../v1/resources/customer_client.proto | 2 +- .../v1/resources/customer_client_link.proto | 5 +- .../customer_extension_setting.proto | 8 +- .../v1/resources/customer_feed.proto | 5 +- .../v1/resources/customer_label.proto | 2 +- .../v1/resources/customer_manager_link.proto | 5 +- .../customer_negative_criterion.proto | 5 +- .../v1/resources/detail_placement_view.proto | 5 +- .../v1/resources/domain_category.proto | 2 +- .../dynamic_search_ads_search_term_view.proto | 2 +- .../expanded_landing_page_view.proto | 2 +- .../v1/resources/extension_feed_item.proto | 17 +- .../ads/googleads/v1/resources/feed.proto | 8 +- .../googleads/v1/resources/feed_item.proto | 29 +- .../v1/resources/feed_item_target.proto | 8 +- .../googleads/v1/resources/feed_mapping.proto | 75 ++- .../v1/resources/feed_placeholder_view.proto | 3 +- .../v1/resources/geo_target_constant.proto | 5 +- .../v1/resources/geographic_view.proto | 5 +- .../v1/resources/google_ads_field.proto | 8 +- .../v1/resources/group_placement_view.proto | 5 +- .../googleads/v1/resources/keyword_plan.proto | 5 +- .../v1/resources/keyword_plan_ad_group.proto | 2 +- .../v1/resources/keyword_plan_campaign.proto | 5 +- .../v1/resources/keyword_plan_keyword.proto | 5 +- .../keyword_plan_negative_keyword.proto | 5 +- .../ads/googleads/v1/resources/label.proto | 2 +- .../v1/resources/landing_page_view.proto | 2 +- .../v1/resources/language_constant.proto | 2 +- .../googleads/v1/resources/media_file.proto | 2 +- .../v1/resources/merchant_center_link.proto | 5 +- .../mobile_app_category_constant.proto | 2 +- .../v1/resources/mobile_device_constant.proto | 2 +- .../googleads/v1/resources/mutate_job.proto | 2 +- .../operating_system_version_constant.proto | 5 +- .../paid_organic_search_term_view.proto | 2 +- .../v1/resources/payments_account.proto | 2 +- .../product_bidding_category_constant.proto | 8 +- .../v1/resources/remarketing_action.proto | 2 +- .../v1/resources/search_term_view.proto | 5 +- .../v1/resources/shared_criterion.proto | 5 +- .../googleads/v1/resources/shared_set.proto | 2 +- .../v1/resources/topic_constant.proto | 2 +- .../v1/resources/user_interest.proto | 8 +- .../googleads/v1/resources/user_list.proto | 26 +- .../ads/googleads/v1/resources/video.proto | 2 +- .../grpc_api/protos/google/api/BUILD.bazel | 150 ++++- .../google/api/expr/v1alpha1/BUILD.bazel | 58 ++ .../google/api/expr/v1beta1/BUILD.bazel | 33 + .../google/cloud/dataproc/dataproc.yaml | 16 +- .../google/cloud/dataproc/v1/BUILD.bazel | 1 + .../google/cloud/dataproc/v1/clusters.proto | 70 +-- .../cloud/dataproc/v1/dataproc_gapic.yaml | 37 +- .../google/cloud/dataproc/v1/jobs.proto | 17 +- .../google/cloud/dataproc/v1/operations.proto | 2 +- .../google/cloud/dataproc/v1/shared.proto | 43 ++ .../dataproc/v1/workflow_templates.proto | 39 +- .../dataproc/v1beta2/dataproc_gapic.yaml | 1 + .../google/cloud/redis/artman_redis_v1.yaml | 2 +- .../cloud/redis/artman_redis_v1beta1.yaml | 2 +- .../protos/google/cloud/redis/redis_v1.yaml | 50 +- .../google/cloud/redis/redis_v1beta1.yaml | 22 +- .../google/cloud/redis/v1/cloud_redis.proto | 125 +++- .../google/cloud/redis/v1/redis_gapic.yaml | 90 ++- .../cloud/redis/v1beta1/cloud_redis.proto | 146 ++++- .../cloud/redis/v1beta1/redis_gapic.yaml | 54 +- .../google/cloud/speech/sample_resources.yaml | 26 + .../samples/speech_transcribe_async.test.yaml | 26 + .../v1/samples/speech_transcribe_async.yaml | 35 ++ .../speech_transcribe_async_gcs.test.yaml | 26 + .../samples/speech_transcribe_async_gcs.yaml | 35 ++ ...ribe_async_word_time_offsets_gcs.test.yaml | 35 ++ ...ranscribe_async_word_time_offsets_gcs.yaml | 38 ++ ...speech_transcribe_enhanced_model.test.yaml | 27 + .../speech_transcribe_enhanced_model.yaml | 38 ++ ...peech_transcribe_model_selection.test.yaml | 50 ++ .../speech_transcribe_model_selection.yaml | 34 + ...h_transcribe_model_selection_gcs.test.yaml | 50 ++ ...speech_transcribe_model_selection_gcs.yaml | 34 + .../speech_transcribe_multichannel.test.yaml | 29 + .../speech_transcribe_multichannel.yaml | 40 ++ ...eech_transcribe_multichannel_gcs.test.yaml | 30 + .../speech_transcribe_multichannel_gcs.yaml | 40 ++ .../samples/speech_transcribe_sync.test.yaml | 26 + .../v1/samples/speech_transcribe_sync.yaml | 35 ++ .../speech_transcribe_sync_gcs.test.yaml | 26 + .../samples/speech_transcribe_sync_gcs.yaml | 35 ++ .../google/cloud/speech/v1/speech_gapic.yaml | 407 ++++++++++++ .../cloud/speech/v1p1beta1/cloud_speech.proto | 6 + .../samples/speech_adaptation_beta.test.yaml | 9 + .../speech_contexts_classes_beta.test.yaml | 9 + .../samples/speech_quickstart_beta.test.yaml | 9 + ...transcribe_auto_punctuation_beta.test.yaml | 26 + ...eech_transcribe_auto_punctuation_beta.yaml | 34 + ...eech_transcribe_diarization_beta.test.yaml | 38 ++ .../speech_transcribe_diarization_beta.yaml | 46 ++ ...ch_transcribe_multilanguage_beta.test.yaml | 31 + .../speech_transcribe_multilanguage_beta.yaml | 37 ++ ...scribe_recognition_metadata_beta.test.yaml | 25 + ..._transcribe_recognition_metadata_beta.yaml | 42 ++ ...cribe_word_level_confidence_beta.test.yaml | 33 + ...transcribe_word_level_confidence_beta.yaml | 38 ++ .../cloud/speech/v1p1beta1/speech_gapic.yaml | 410 +++++++++--- .../google/cloud/talent/talent_v4beta1.yaml | 82 +-- .../cloud/talent/v4beta1/application.proto | 3 +- .../google/cloud/talent/v4beta1/batch.proto | 92 +++ .../google/cloud/talent/v4beta1/common.proto | 164 +++-- .../google/cloud/talent/v4beta1/company.proto | 13 +- .../talent/v4beta1/completion_service.proto | 42 +- .../google/cloud/talent/v4beta1/event.proto | 63 +- .../google/cloud/talent/v4beta1/filters.proto | 174 +++-- .../cloud/talent/v4beta1/histogram.proto | 16 +- .../google/cloud/talent/v4beta1/job.proto | 117 ++-- .../cloud/talent/v4beta1/job_service.proto | 455 +++++++++----- .../google/cloud/talent/v4beta1/profile.proto | 152 +++-- .../talent/v4beta1/profile_service.proto | 83 ++- .../cloud/talent/v4beta1/talent_gapic.yaml | 42 ++ .../v1/video_intelligence.proto | 32 + .../v1p3beta1/video_intelligence.proto | 253 +++++++- .../protos/google/cloud/vision/v1/BUILD.bazel | 32 + .../cloud/vision/v1/product_search.proto | 5 +- .../vision/v1/product_search_service.proto | 6 +- .../vision/v1p4beta1/product_search.proto | 8 +- .../v1p4beta1/product_search_service.proto | 9 +- .../protos/google/home/graph/v1/device.proto | 18 + .../protos/google/longrunning/BUILD.bazel | 21 + .../protos/google/privacy/dlp/v2/dlp.proto | 166 ++--- .../google/privacy/dlp/v2/storage.proto | 5 +- .../protos/google/protobuf/descriptor.proto | 1 + .../protos/google/pubsub/v1/pubsub_gapic.yaml | 16 +- .../grpc_api/protos/google/rpc/BUILD.bazel | 23 + .../grpc_api/protos/google/type/BUILD.bazel | 63 ++ 223 files changed, 7356 insertions(+), 1353 deletions(-) create mode 100644 lib/src/grpc_api/dart/google/cloud/dataproc/v1/shared.pb.dart create mode 100644 lib/src/grpc_api/dart/google/cloud/dataproc/v1/shared.pbenum.dart create mode 100644 lib/src/grpc_api/dart/google/cloud/dataproc/v1/shared.pbjson.dart create mode 100644 lib/src/grpc_api/protos/google/cloud/dataproc/v1/shared.proto create mode 100644 lib/src/grpc_api/protos/google/cloud/speech/sample_resources.yaml create mode 100644 lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_async.test.yaml create mode 100644 lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_async.yaml create mode 100644 lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_async_gcs.test.yaml create mode 100644 lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_async_gcs.yaml create mode 100644 lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_async_word_time_offsets_gcs.test.yaml create mode 100644 lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_async_word_time_offsets_gcs.yaml create mode 100644 lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_enhanced_model.test.yaml create mode 100644 lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_enhanced_model.yaml create mode 100644 lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_model_selection.test.yaml create mode 100644 lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_model_selection.yaml create mode 100644 lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_model_selection_gcs.test.yaml create mode 100644 lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_model_selection_gcs.yaml create mode 100644 lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_multichannel.test.yaml create mode 100644 lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_multichannel.yaml create mode 100644 lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_multichannel_gcs.test.yaml create mode 100644 lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_multichannel_gcs.yaml create mode 100644 lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_sync.test.yaml create mode 100644 lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_sync.yaml create mode 100644 lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_sync_gcs.test.yaml create mode 100644 lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_sync_gcs.yaml create mode 100644 lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_adaptation_beta.test.yaml create mode 100644 lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_contexts_classes_beta.test.yaml create mode 100644 lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_quickstart_beta.test.yaml create mode 100644 lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_auto_punctuation_beta.test.yaml create mode 100644 lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_auto_punctuation_beta.yaml create mode 100644 lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_diarization_beta.test.yaml create mode 100644 lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_diarization_beta.yaml create mode 100644 lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_multilanguage_beta.test.yaml create mode 100644 lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_multilanguage_beta.yaml create mode 100644 lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_recognition_metadata_beta.test.yaml create mode 100644 lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_recognition_metadata_beta.yaml create mode 100644 lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_word_level_confidence_beta.test.yaml create mode 100644 lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_word_level_confidence_beta.yaml diff --git a/lib/src/grpc_api/dart/google/cloud/dataproc/v1/clusters.pb.dart b/lib/src/grpc_api/dart/google/cloud/dataproc/v1/clusters.pb.dart index 74f9d11d..bfd8b03d 100644 --- a/lib/src/grpc_api/dart/google/cloud/dataproc/v1/clusters.pb.dart +++ b/lib/src/grpc_api/dart/google/cloud/dataproc/v1/clusters.pb.dart @@ -15,6 +15,7 @@ import '../../../protobuf/timestamp.pb.dart' as $3; import '../../../protobuf/field_mask.pb.dart' as $4; import 'clusters.pbenum.dart'; +import 'shared.pbenum.dart' as $5; export 'clusters.pbenum.dart'; @@ -691,6 +692,8 @@ class SoftwareConfig extends $pb.GeneratedMessage { null, null, const $pb.PackageName('google.cloud.dataproc.v1')) + ..pc<$5.Component>(3, 'optionalComponents', $pb.PbFieldType.PE, null, + $5.Component.valueOf, $5.Component.values) ..hasRequiredFields = false; SoftwareConfig() : super(); @@ -720,6 +723,8 @@ class SoftwareConfig extends $pb.GeneratedMessage { void clearImageVersion() => clearField(1); $core.Map<$core.String, $core.String> get properties => $_getMap(1); + + $core.List<$5.Component> get optionalComponents => $_getList(2); } class ClusterMetrics extends $pb.GeneratedMessage { diff --git a/lib/src/grpc_api/dart/google/cloud/dataproc/v1/clusters.pbjson.dart b/lib/src/grpc_api/dart/google/cloud/dataproc/v1/clusters.pbjson.dart index 280b14a3..57e4371e 100644 --- a/lib/src/grpc_api/dart/google/cloud/dataproc/v1/clusters.pbjson.dart +++ b/lib/src/grpc_api/dart/google/cloud/dataproc/v1/clusters.pbjson.dart @@ -340,6 +340,14 @@ const SoftwareConfig$json = { '6': '.google.cloud.dataproc.v1.SoftwareConfig.PropertiesEntry', '10': 'properties' }, + { + '1': 'optional_components', + '3': 3, + '4': 3, + '5': 14, + '6': '.google.cloud.dataproc.v1.Component', + '10': 'optionalComponents' + }, ], '3': [SoftwareConfig_PropertiesEntry$json], }; diff --git a/lib/src/grpc_api/dart/google/cloud/dataproc/v1/shared.pb.dart b/lib/src/grpc_api/dart/google/cloud/dataproc/v1/shared.pb.dart new file mode 100644 index 00000000..7128fdeb --- /dev/null +++ b/lib/src/grpc_api/dart/google/cloud/dataproc/v1/shared.pb.dart @@ -0,0 +1,10 @@ +/// +// Generated code. Do not modify. +// source: google/cloud/dataproc/v1/shared.proto +/// +// ignore_for_file: camel_case_types,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name + +import 'dart:core' as $core + show bool, Deprecated, double, int, List, Map, override, String; + +export 'shared.pbenum.dart'; diff --git a/lib/src/grpc_api/dart/google/cloud/dataproc/v1/shared.pbenum.dart b/lib/src/grpc_api/dart/google/cloud/dataproc/v1/shared.pbenum.dart new file mode 100644 index 00000000..ecaf2803 --- /dev/null +++ b/lib/src/grpc_api/dart/google/cloud/dataproc/v1/shared.pbenum.dart @@ -0,0 +1,32 @@ +/// +// Generated code. Do not modify. +// source: google/cloud/dataproc/v1/shared.proto +/// +// ignore_for_file: camel_case_types,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name + +// ignore_for_file: UNDEFINED_SHOWN_NAME,UNUSED_SHOWN_NAME +import 'dart:core' as $core show int, dynamic, String, List, Map; +import 'package:protobuf/protobuf.dart' as $pb; + +class Component extends $pb.ProtobufEnum { + static const Component COMPONENT_UNSPECIFIED = + Component._(0, 'COMPONENT_UNSPECIFIED'); + static const Component ANACONDA = Component._(5, 'ANACONDA'); + static const Component HIVE_WEBHCAT = Component._(3, 'HIVE_WEBHCAT'); + static const Component JUPYTER = Component._(1, 'JUPYTER'); + static const Component ZEPPELIN = Component._(4, 'ZEPPELIN'); + + static const $core.List values = [ + COMPONENT_UNSPECIFIED, + ANACONDA, + HIVE_WEBHCAT, + JUPYTER, + ZEPPELIN, + ]; + + static final $core.Map<$core.int, Component> _byValue = + $pb.ProtobufEnum.initByValue(values); + static Component valueOf($core.int value) => _byValue[value]; + + const Component._($core.int v, $core.String n) : super(v, n); +} diff --git a/lib/src/grpc_api/dart/google/cloud/dataproc/v1/shared.pbjson.dart b/lib/src/grpc_api/dart/google/cloud/dataproc/v1/shared.pbjson.dart new file mode 100644 index 00000000..c05e1052 --- /dev/null +++ b/lib/src/grpc_api/dart/google/cloud/dataproc/v1/shared.pbjson.dart @@ -0,0 +1,16 @@ +/// +// Generated code. Do not modify. +// source: google/cloud/dataproc/v1/shared.proto +/// +// ignore_for_file: camel_case_types,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name + +const Component$json = { + '1': 'Component', + '2': [ + {'1': 'COMPONENT_UNSPECIFIED', '2': 0}, + {'1': 'ANACONDA', '2': 5}, + {'1': 'HIVE_WEBHCAT', '2': 3}, + {'1': 'JUPYTER', '2': 1}, + {'1': 'ZEPPELIN', '2': 4}, + ], +}; diff --git a/lib/src/grpc_api/dart/google/cloud/redis/v1/cloud_redis.pb.dart b/lib/src/grpc_api/dart/google/cloud/redis/v1/cloud_redis.pb.dart index 3d46d337..f8d905d8 100644 --- a/lib/src/grpc_api/dart/google/cloud/redis/v1/cloud_redis.pb.dart +++ b/lib/src/grpc_api/dart/google/cloud/redis/v1/cloud_redis.pb.dart @@ -67,6 +67,7 @@ class Instance extends $pb.GeneratedMessage { Instance_Tier.values) ..a<$core.int>(18, 'memorySizeGb', $pb.PbFieldType.O3) ..aOS(20, 'authorizedNetwork') + ..aOS(21, 'persistenceIamIdentity') ..hasRequiredFields = false; Instance() : super(); @@ -209,6 +210,14 @@ class Instance extends $pb.GeneratedMessage { $core.bool hasAuthorizedNetwork() => $_has(16); void clearAuthorizedNetwork() => clearField(20); + + $core.String get persistenceIamIdentity => $_getS(17, ''); + set persistenceIamIdentity($core.String v) { + $_setString(17, v); + } + + $core.bool hasPersistenceIamIdentity() => $_has(17); + void clearPersistenceIamIdentity() => clearField(21); } class ListInstancesRequest extends $pb.GeneratedMessage { @@ -478,6 +487,253 @@ class DeleteInstanceRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +class GcsSource extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo('GcsSource', + package: const $pb.PackageName('google.cloud.redis.v1')) + ..aOS(1, 'uri') + ..hasRequiredFields = false; + + GcsSource() : super(); + GcsSource.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromBuffer(i, r); + GcsSource.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromJson(i, r); + GcsSource clone() => GcsSource()..mergeFromMessage(this); + GcsSource copyWith(void Function(GcsSource) updates) => + super.copyWith((message) => updates(message as GcsSource)); + $pb.BuilderInfo get info_ => _i; + static GcsSource create() => GcsSource(); + GcsSource createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + static GcsSource getDefault() => _defaultInstance ??= create()..freeze(); + static GcsSource _defaultInstance; + + $core.String get uri => $_getS(0, ''); + set uri($core.String v) { + $_setString(0, v); + } + + $core.bool hasUri() => $_has(0); + void clearUri() => clearField(1); +} + +enum InputConfig_Source { gcsSource, notSet } + +class InputConfig extends $pb.GeneratedMessage { + static const $core.Map<$core.int, InputConfig_Source> + _InputConfig_SourceByTag = { + 1: InputConfig_Source.gcsSource, + 0: InputConfig_Source.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo('InputConfig', + package: const $pb.PackageName('google.cloud.redis.v1')) + ..a(1, 'gcsSource', $pb.PbFieldType.OM, GcsSource.getDefault, + GcsSource.create) + ..oo(0, [1]) + ..hasRequiredFields = false; + + InputConfig() : super(); + InputConfig.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromBuffer(i, r); + InputConfig.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromJson(i, r); + InputConfig clone() => InputConfig()..mergeFromMessage(this); + InputConfig copyWith(void Function(InputConfig) updates) => + super.copyWith((message) => updates(message as InputConfig)); + $pb.BuilderInfo get info_ => _i; + static InputConfig create() => InputConfig(); + InputConfig createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + static InputConfig getDefault() => _defaultInstance ??= create()..freeze(); + static InputConfig _defaultInstance; + + InputConfig_Source whichSource() => _InputConfig_SourceByTag[$_whichOneof(0)]; + void clearSource() => clearField($_whichOneof(0)); + + GcsSource get gcsSource => $_getN(0); + set gcsSource(GcsSource v) { + setField(1, v); + } + + $core.bool hasGcsSource() => $_has(0); + void clearGcsSource() => clearField(1); +} + +class ImportInstanceRequest extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo('ImportInstanceRequest', + package: const $pb.PackageName('google.cloud.redis.v1')) + ..aOS(1, 'name') + ..a(3, 'inputConfig', $pb.PbFieldType.OM, + InputConfig.getDefault, InputConfig.create) + ..hasRequiredFields = false; + + ImportInstanceRequest() : super(); + ImportInstanceRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromBuffer(i, r); + ImportInstanceRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromJson(i, r); + ImportInstanceRequest clone() => + ImportInstanceRequest()..mergeFromMessage(this); + ImportInstanceRequest copyWith( + void Function(ImportInstanceRequest) updates) => + super.copyWith((message) => updates(message as ImportInstanceRequest)); + $pb.BuilderInfo get info_ => _i; + static ImportInstanceRequest create() => ImportInstanceRequest(); + ImportInstanceRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + static ImportInstanceRequest getDefault() => + _defaultInstance ??= create()..freeze(); + static ImportInstanceRequest _defaultInstance; + + $core.String get name => $_getS(0, ''); + set name($core.String v) { + $_setString(0, v); + } + + $core.bool hasName() => $_has(0); + void clearName() => clearField(1); + + InputConfig get inputConfig => $_getN(1); + set inputConfig(InputConfig v) { + setField(3, v); + } + + $core.bool hasInputConfig() => $_has(1); + void clearInputConfig() => clearField(3); +} + +class GcsDestination extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo('GcsDestination', + package: const $pb.PackageName('google.cloud.redis.v1')) + ..aOS(1, 'uri') + ..hasRequiredFields = false; + + GcsDestination() : super(); + GcsDestination.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromBuffer(i, r); + GcsDestination.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromJson(i, r); + GcsDestination clone() => GcsDestination()..mergeFromMessage(this); + GcsDestination copyWith(void Function(GcsDestination) updates) => + super.copyWith((message) => updates(message as GcsDestination)); + $pb.BuilderInfo get info_ => _i; + static GcsDestination create() => GcsDestination(); + GcsDestination createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + static GcsDestination getDefault() => _defaultInstance ??= create()..freeze(); + static GcsDestination _defaultInstance; + + $core.String get uri => $_getS(0, ''); + set uri($core.String v) { + $_setString(0, v); + } + + $core.bool hasUri() => $_has(0); + void clearUri() => clearField(1); +} + +enum OutputConfig_Destination { gcsDestination, notSet } + +class OutputConfig extends $pb.GeneratedMessage { + static const $core.Map<$core.int, OutputConfig_Destination> + _OutputConfig_DestinationByTag = { + 1: OutputConfig_Destination.gcsDestination, + 0: OutputConfig_Destination.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo('OutputConfig', + package: const $pb.PackageName('google.cloud.redis.v1')) + ..a(1, 'gcsDestination', $pb.PbFieldType.OM, + GcsDestination.getDefault, GcsDestination.create) + ..oo(0, [1]) + ..hasRequiredFields = false; + + OutputConfig() : super(); + OutputConfig.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromBuffer(i, r); + OutputConfig.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromJson(i, r); + OutputConfig clone() => OutputConfig()..mergeFromMessage(this); + OutputConfig copyWith(void Function(OutputConfig) updates) => + super.copyWith((message) => updates(message as OutputConfig)); + $pb.BuilderInfo get info_ => _i; + static OutputConfig create() => OutputConfig(); + OutputConfig createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + static OutputConfig getDefault() => _defaultInstance ??= create()..freeze(); + static OutputConfig _defaultInstance; + + OutputConfig_Destination whichDestination() => + _OutputConfig_DestinationByTag[$_whichOneof(0)]; + void clearDestination() => clearField($_whichOneof(0)); + + GcsDestination get gcsDestination => $_getN(0); + set gcsDestination(GcsDestination v) { + setField(1, v); + } + + $core.bool hasGcsDestination() => $_has(0); + void clearGcsDestination() => clearField(1); +} + +class ExportInstanceRequest extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo('ExportInstanceRequest', + package: const $pb.PackageName('google.cloud.redis.v1')) + ..aOS(1, 'name') + ..a(3, 'outputConfig', $pb.PbFieldType.OM, + OutputConfig.getDefault, OutputConfig.create) + ..hasRequiredFields = false; + + ExportInstanceRequest() : super(); + ExportInstanceRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromBuffer(i, r); + ExportInstanceRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromJson(i, r); + ExportInstanceRequest clone() => + ExportInstanceRequest()..mergeFromMessage(this); + ExportInstanceRequest copyWith( + void Function(ExportInstanceRequest) updates) => + super.copyWith((message) => updates(message as ExportInstanceRequest)); + $pb.BuilderInfo get info_ => _i; + static ExportInstanceRequest create() => ExportInstanceRequest(); + ExportInstanceRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + static ExportInstanceRequest getDefault() => + _defaultInstance ??= create()..freeze(); + static ExportInstanceRequest _defaultInstance; + + $core.String get name => $_getS(0, ''); + set name($core.String v) { + $_setString(0, v); + } + + $core.bool hasName() => $_has(0); + void clearName() => clearField(1); + + OutputConfig get outputConfig => $_getN(1); + set outputConfig(OutputConfig v) { + setField(3, v); + } + + $core.bool hasOutputConfig() => $_has(1); + void clearOutputConfig() => clearField(3); +} + class FailoverInstanceRequest extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo('FailoverInstanceRequest', package: const $pb.PackageName('google.cloud.redis.v1')) diff --git a/lib/src/grpc_api/dart/google/cloud/redis/v1/cloud_redis.pbenum.dart b/lib/src/grpc_api/dart/google/cloud/redis/v1/cloud_redis.pbenum.dart index 9a010ac5..b0f0ffaf 100644 --- a/lib/src/grpc_api/dart/google/cloud/redis/v1/cloud_redis.pbenum.dart +++ b/lib/src/grpc_api/dart/google/cloud/redis/v1/cloud_redis.pbenum.dart @@ -17,6 +17,7 @@ class Instance_State extends $pb.ProtobufEnum { static const Instance_State DELETING = Instance_State._(4, 'DELETING'); static const Instance_State REPAIRING = Instance_State._(5, 'REPAIRING'); static const Instance_State MAINTENANCE = Instance_State._(6, 'MAINTENANCE'); + static const Instance_State IMPORTING = Instance_State._(8, 'IMPORTING'); static const Instance_State FAILING_OVER = Instance_State._(9, 'FAILING_OVER'); @@ -28,6 +29,7 @@ class Instance_State extends $pb.ProtobufEnum { DELETING, REPAIRING, MAINTENANCE, + IMPORTING, FAILING_OVER, ]; diff --git a/lib/src/grpc_api/dart/google/cloud/redis/v1/cloud_redis.pbgrpc.dart b/lib/src/grpc_api/dart/google/cloud/redis/v1/cloud_redis.pbgrpc.dart index 94441fe2..c1be8bf8 100644 --- a/lib/src/grpc_api/dart/google/cloud/redis/v1/cloud_redis.pbgrpc.dart +++ b/lib/src/grpc_api/dart/google/cloud/redis/v1/cloud_redis.pbgrpc.dart @@ -35,6 +35,16 @@ class CloudRedisClient extends $grpc.Client { '/google.cloud.redis.v1.CloudRedis/UpdateInstance', (UpdateInstanceRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $1.Operation.fromBuffer(value)); + static final _$importInstance = + $grpc.ClientMethod( + '/google.cloud.redis.v1.CloudRedis/ImportInstance', + (ImportInstanceRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $1.Operation.fromBuffer(value)); + static final _$exportInstance = + $grpc.ClientMethod( + '/google.cloud.redis.v1.CloudRedis/ExportInstance', + (ExportInstanceRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $1.Operation.fromBuffer(value)); static final _$failoverInstance = $grpc.ClientMethod( '/google.cloud.redis.v1.CloudRedis/FailoverInstance', @@ -84,6 +94,24 @@ class CloudRedisClient extends $grpc.Client { return $grpc.ResponseFuture(call); } + $grpc.ResponseFuture<$1.Operation> importInstance( + ImportInstanceRequest request, + {$grpc.CallOptions options}) { + final call = $createCall( + _$importInstance, $async.Stream.fromIterable([request]), + options: options); + return $grpc.ResponseFuture(call); + } + + $grpc.ResponseFuture<$1.Operation> exportInstance( + ExportInstanceRequest request, + {$grpc.CallOptions options}) { + final call = $createCall( + _$exportInstance, $async.Stream.fromIterable([request]), + options: options); + return $grpc.ResponseFuture(call); + } + $grpc.ResponseFuture<$1.Operation> failoverInstance( FailoverInstanceRequest request, {$grpc.CallOptions options}) { @@ -137,6 +165,22 @@ abstract class CloudRedisServiceBase extends $grpc.Service { ($core.List<$core.int> value) => UpdateInstanceRequest.fromBuffer(value), ($1.Operation value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod( + 'ImportInstance', + importInstance_Pre, + false, + false, + ($core.List<$core.int> value) => + ImportInstanceRequest.fromBuffer(value), + ($1.Operation value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod( + 'ExportInstance', + exportInstance_Pre, + false, + false, + ($core.List<$core.int> value) => + ExportInstanceRequest.fromBuffer(value), + ($1.Operation value) => value.writeToBuffer())); $addMethod($grpc.ServiceMethod( 'FailoverInstance', failoverInstance_Pre, @@ -175,6 +219,16 @@ abstract class CloudRedisServiceBase extends $grpc.Service { return updateInstance(call, await request); } + $async.Future<$1.Operation> importInstance_Pre( + $grpc.ServiceCall call, $async.Future request) async { + return importInstance(call, await request); + } + + $async.Future<$1.Operation> exportInstance_Pre( + $grpc.ServiceCall call, $async.Future request) async { + return exportInstance(call, await request); + } + $async.Future<$1.Operation> failoverInstance_Pre( $grpc.ServiceCall call, $async.Future request) async { return failoverInstance(call, await request); @@ -193,6 +247,10 @@ abstract class CloudRedisServiceBase extends $grpc.Service { $grpc.ServiceCall call, CreateInstanceRequest request); $async.Future<$1.Operation> updateInstance( $grpc.ServiceCall call, UpdateInstanceRequest request); + $async.Future<$1.Operation> importInstance( + $grpc.ServiceCall call, ImportInstanceRequest request); + $async.Future<$1.Operation> exportInstance( + $grpc.ServiceCall call, ExportInstanceRequest request); $async.Future<$1.Operation> failoverInstance( $grpc.ServiceCall call, FailoverInstanceRequest request); $async.Future<$1.Operation> deleteInstance( diff --git a/lib/src/grpc_api/dart/google/cloud/redis/v1/cloud_redis.pbjson.dart b/lib/src/grpc_api/dart/google/cloud/redis/v1/cloud_redis.pbjson.dart index d69f4cfa..2424e481 100644 --- a/lib/src/grpc_api/dart/google/cloud/redis/v1/cloud_redis.pbjson.dart +++ b/lib/src/grpc_api/dart/google/cloud/redis/v1/cloud_redis.pbjson.dart @@ -77,6 +77,13 @@ const Instance$json = { '5': 9, '10': 'authorizedNetwork' }, + { + '1': 'persistence_iam_identity', + '3': 21, + '4': 1, + '5': 9, + '10': 'persistenceIamIdentity' + }, ], '3': [Instance_LabelsEntry$json, Instance_RedisConfigsEntry$json], '4': [Instance_State$json, Instance_Tier$json], @@ -110,6 +117,7 @@ const Instance_State$json = { {'1': 'DELETING', '2': 4}, {'1': 'REPAIRING', '2': 5}, {'1': 'MAINTENANCE', '2': 6}, + {'1': 'IMPORTING', '2': 8}, {'1': 'FAILING_OVER', '2': 9}, ], }; @@ -200,6 +208,86 @@ const DeleteInstanceRequest$json = { ], }; +const GcsSource$json = { + '1': 'GcsSource', + '2': [ + {'1': 'uri', '3': 1, '4': 1, '5': 9, '10': 'uri'}, + ], +}; + +const InputConfig$json = { + '1': 'InputConfig', + '2': [ + { + '1': 'gcs_source', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.cloud.redis.v1.GcsSource', + '9': 0, + '10': 'gcsSource' + }, + ], + '8': [ + {'1': 'source'}, + ], +}; + +const ImportInstanceRequest$json = { + '1': 'ImportInstanceRequest', + '2': [ + {'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'}, + { + '1': 'input_config', + '3': 3, + '4': 1, + '5': 11, + '6': '.google.cloud.redis.v1.InputConfig', + '10': 'inputConfig' + }, + ], +}; + +const GcsDestination$json = { + '1': 'GcsDestination', + '2': [ + {'1': 'uri', '3': 1, '4': 1, '5': 9, '10': 'uri'}, + ], +}; + +const OutputConfig$json = { + '1': 'OutputConfig', + '2': [ + { + '1': 'gcs_destination', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.cloud.redis.v1.GcsDestination', + '9': 0, + '10': 'gcsDestination' + }, + ], + '8': [ + {'1': 'destination'}, + ], +}; + +const ExportInstanceRequest$json = { + '1': 'ExportInstanceRequest', + '2': [ + {'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'}, + { + '1': 'output_config', + '3': 3, + '4': 1, + '5': 11, + '6': '.google.cloud.redis.v1.OutputConfig', + '10': 'outputConfig' + }, + ], +}; + const FailoverInstanceRequest$json = { '1': 'FailoverInstanceRequest', '2': [ diff --git a/lib/src/grpc_api/dart/google/cloud/redis/v1beta1/cloud_redis.pb.dart b/lib/src/grpc_api/dart/google/cloud/redis/v1beta1/cloud_redis.pb.dart index 00c1e0f0..e6719dd4 100644 --- a/lib/src/grpc_api/dart/google/cloud/redis/v1beta1/cloud_redis.pb.dart +++ b/lib/src/grpc_api/dart/google/cloud/redis/v1beta1/cloud_redis.pb.dart @@ -67,6 +67,7 @@ class Instance extends $pb.GeneratedMessage { Instance_Tier.values) ..a<$core.int>(18, 'memorySizeGb', $pb.PbFieldType.O3) ..aOS(20, 'authorizedNetwork') + ..aOS(21, 'persistenceIamIdentity') ..hasRequiredFields = false; Instance() : super(); @@ -209,6 +210,14 @@ class Instance extends $pb.GeneratedMessage { $core.bool hasAuthorizedNetwork() => $_has(16); void clearAuthorizedNetwork() => clearField(20); + + $core.String get persistenceIamIdentity => $_getS(17, ''); + set persistenceIamIdentity($core.String v) { + $_setString(17, v); + } + + $core.bool hasPersistenceIamIdentity() => $_has(17); + void clearPersistenceIamIdentity() => clearField(21); } class ListInstancesRequest extends $pb.GeneratedMessage { @@ -478,6 +487,253 @@ class DeleteInstanceRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +class GcsSource extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo('GcsSource', + package: const $pb.PackageName('google.cloud.redis.v1beta1')) + ..aOS(1, 'uri') + ..hasRequiredFields = false; + + GcsSource() : super(); + GcsSource.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromBuffer(i, r); + GcsSource.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromJson(i, r); + GcsSource clone() => GcsSource()..mergeFromMessage(this); + GcsSource copyWith(void Function(GcsSource) updates) => + super.copyWith((message) => updates(message as GcsSource)); + $pb.BuilderInfo get info_ => _i; + static GcsSource create() => GcsSource(); + GcsSource createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + static GcsSource getDefault() => _defaultInstance ??= create()..freeze(); + static GcsSource _defaultInstance; + + $core.String get uri => $_getS(0, ''); + set uri($core.String v) { + $_setString(0, v); + } + + $core.bool hasUri() => $_has(0); + void clearUri() => clearField(1); +} + +enum InputConfig_Source { gcsSource, notSet } + +class InputConfig extends $pb.GeneratedMessage { + static const $core.Map<$core.int, InputConfig_Source> + _InputConfig_SourceByTag = { + 1: InputConfig_Source.gcsSource, + 0: InputConfig_Source.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo('InputConfig', + package: const $pb.PackageName('google.cloud.redis.v1beta1')) + ..a(1, 'gcsSource', $pb.PbFieldType.OM, GcsSource.getDefault, + GcsSource.create) + ..oo(0, [1]) + ..hasRequiredFields = false; + + InputConfig() : super(); + InputConfig.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromBuffer(i, r); + InputConfig.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromJson(i, r); + InputConfig clone() => InputConfig()..mergeFromMessage(this); + InputConfig copyWith(void Function(InputConfig) updates) => + super.copyWith((message) => updates(message as InputConfig)); + $pb.BuilderInfo get info_ => _i; + static InputConfig create() => InputConfig(); + InputConfig createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + static InputConfig getDefault() => _defaultInstance ??= create()..freeze(); + static InputConfig _defaultInstance; + + InputConfig_Source whichSource() => _InputConfig_SourceByTag[$_whichOneof(0)]; + void clearSource() => clearField($_whichOneof(0)); + + GcsSource get gcsSource => $_getN(0); + set gcsSource(GcsSource v) { + setField(1, v); + } + + $core.bool hasGcsSource() => $_has(0); + void clearGcsSource() => clearField(1); +} + +class ImportInstanceRequest extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo('ImportInstanceRequest', + package: const $pb.PackageName('google.cloud.redis.v1beta1')) + ..aOS(1, 'name') + ..a(3, 'inputConfig', $pb.PbFieldType.OM, + InputConfig.getDefault, InputConfig.create) + ..hasRequiredFields = false; + + ImportInstanceRequest() : super(); + ImportInstanceRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromBuffer(i, r); + ImportInstanceRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromJson(i, r); + ImportInstanceRequest clone() => + ImportInstanceRequest()..mergeFromMessage(this); + ImportInstanceRequest copyWith( + void Function(ImportInstanceRequest) updates) => + super.copyWith((message) => updates(message as ImportInstanceRequest)); + $pb.BuilderInfo get info_ => _i; + static ImportInstanceRequest create() => ImportInstanceRequest(); + ImportInstanceRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + static ImportInstanceRequest getDefault() => + _defaultInstance ??= create()..freeze(); + static ImportInstanceRequest _defaultInstance; + + $core.String get name => $_getS(0, ''); + set name($core.String v) { + $_setString(0, v); + } + + $core.bool hasName() => $_has(0); + void clearName() => clearField(1); + + InputConfig get inputConfig => $_getN(1); + set inputConfig(InputConfig v) { + setField(3, v); + } + + $core.bool hasInputConfig() => $_has(1); + void clearInputConfig() => clearField(3); +} + +class GcsDestination extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo('GcsDestination', + package: const $pb.PackageName('google.cloud.redis.v1beta1')) + ..aOS(1, 'uri') + ..hasRequiredFields = false; + + GcsDestination() : super(); + GcsDestination.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromBuffer(i, r); + GcsDestination.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromJson(i, r); + GcsDestination clone() => GcsDestination()..mergeFromMessage(this); + GcsDestination copyWith(void Function(GcsDestination) updates) => + super.copyWith((message) => updates(message as GcsDestination)); + $pb.BuilderInfo get info_ => _i; + static GcsDestination create() => GcsDestination(); + GcsDestination createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + static GcsDestination getDefault() => _defaultInstance ??= create()..freeze(); + static GcsDestination _defaultInstance; + + $core.String get uri => $_getS(0, ''); + set uri($core.String v) { + $_setString(0, v); + } + + $core.bool hasUri() => $_has(0); + void clearUri() => clearField(1); +} + +enum OutputConfig_Destination { gcsDestination, notSet } + +class OutputConfig extends $pb.GeneratedMessage { + static const $core.Map<$core.int, OutputConfig_Destination> + _OutputConfig_DestinationByTag = { + 1: OutputConfig_Destination.gcsDestination, + 0: OutputConfig_Destination.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo('OutputConfig', + package: const $pb.PackageName('google.cloud.redis.v1beta1')) + ..a(1, 'gcsDestination', $pb.PbFieldType.OM, + GcsDestination.getDefault, GcsDestination.create) + ..oo(0, [1]) + ..hasRequiredFields = false; + + OutputConfig() : super(); + OutputConfig.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromBuffer(i, r); + OutputConfig.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromJson(i, r); + OutputConfig clone() => OutputConfig()..mergeFromMessage(this); + OutputConfig copyWith(void Function(OutputConfig) updates) => + super.copyWith((message) => updates(message as OutputConfig)); + $pb.BuilderInfo get info_ => _i; + static OutputConfig create() => OutputConfig(); + OutputConfig createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + static OutputConfig getDefault() => _defaultInstance ??= create()..freeze(); + static OutputConfig _defaultInstance; + + OutputConfig_Destination whichDestination() => + _OutputConfig_DestinationByTag[$_whichOneof(0)]; + void clearDestination() => clearField($_whichOneof(0)); + + GcsDestination get gcsDestination => $_getN(0); + set gcsDestination(GcsDestination v) { + setField(1, v); + } + + $core.bool hasGcsDestination() => $_has(0); + void clearGcsDestination() => clearField(1); +} + +class ExportInstanceRequest extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo('ExportInstanceRequest', + package: const $pb.PackageName('google.cloud.redis.v1beta1')) + ..aOS(1, 'name') + ..a(3, 'outputConfig', $pb.PbFieldType.OM, + OutputConfig.getDefault, OutputConfig.create) + ..hasRequiredFields = false; + + ExportInstanceRequest() : super(); + ExportInstanceRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromBuffer(i, r); + ExportInstanceRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromJson(i, r); + ExportInstanceRequest clone() => + ExportInstanceRequest()..mergeFromMessage(this); + ExportInstanceRequest copyWith( + void Function(ExportInstanceRequest) updates) => + super.copyWith((message) => updates(message as ExportInstanceRequest)); + $pb.BuilderInfo get info_ => _i; + static ExportInstanceRequest create() => ExportInstanceRequest(); + ExportInstanceRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + static ExportInstanceRequest getDefault() => + _defaultInstance ??= create()..freeze(); + static ExportInstanceRequest _defaultInstance; + + $core.String get name => $_getS(0, ''); + set name($core.String v) { + $_setString(0, v); + } + + $core.bool hasName() => $_has(0); + void clearName() => clearField(1); + + OutputConfig get outputConfig => $_getN(1); + set outputConfig(OutputConfig v) { + setField(3, v); + } + + $core.bool hasOutputConfig() => $_has(1); + void clearOutputConfig() => clearField(3); +} + class FailoverInstanceRequest extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo('FailoverInstanceRequest', package: const $pb.PackageName('google.cloud.redis.v1beta1')) diff --git a/lib/src/grpc_api/dart/google/cloud/redis/v1beta1/cloud_redis.pbgrpc.dart b/lib/src/grpc_api/dart/google/cloud/redis/v1beta1/cloud_redis.pbgrpc.dart index 9b275579..e7e7e4f4 100644 --- a/lib/src/grpc_api/dart/google/cloud/redis/v1beta1/cloud_redis.pbgrpc.dart +++ b/lib/src/grpc_api/dart/google/cloud/redis/v1beta1/cloud_redis.pbgrpc.dart @@ -35,6 +35,16 @@ class CloudRedisClient extends $grpc.Client { '/google.cloud.redis.v1beta1.CloudRedis/UpdateInstance', (UpdateInstanceRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $1.Operation.fromBuffer(value)); + static final _$importInstance = + $grpc.ClientMethod( + '/google.cloud.redis.v1beta1.CloudRedis/ImportInstance', + (ImportInstanceRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $1.Operation.fromBuffer(value)); + static final _$exportInstance = + $grpc.ClientMethod( + '/google.cloud.redis.v1beta1.CloudRedis/ExportInstance', + (ExportInstanceRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $1.Operation.fromBuffer(value)); static final _$failoverInstance = $grpc.ClientMethod( '/google.cloud.redis.v1beta1.CloudRedis/FailoverInstance', @@ -84,6 +94,24 @@ class CloudRedisClient extends $grpc.Client { return $grpc.ResponseFuture(call); } + $grpc.ResponseFuture<$1.Operation> importInstance( + ImportInstanceRequest request, + {$grpc.CallOptions options}) { + final call = $createCall( + _$importInstance, $async.Stream.fromIterable([request]), + options: options); + return $grpc.ResponseFuture(call); + } + + $grpc.ResponseFuture<$1.Operation> exportInstance( + ExportInstanceRequest request, + {$grpc.CallOptions options}) { + final call = $createCall( + _$exportInstance, $async.Stream.fromIterable([request]), + options: options); + return $grpc.ResponseFuture(call); + } + $grpc.ResponseFuture<$1.Operation> failoverInstance( FailoverInstanceRequest request, {$grpc.CallOptions options}) { @@ -137,6 +165,22 @@ abstract class CloudRedisServiceBase extends $grpc.Service { ($core.List<$core.int> value) => UpdateInstanceRequest.fromBuffer(value), ($1.Operation value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod( + 'ImportInstance', + importInstance_Pre, + false, + false, + ($core.List<$core.int> value) => + ImportInstanceRequest.fromBuffer(value), + ($1.Operation value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod( + 'ExportInstance', + exportInstance_Pre, + false, + false, + ($core.List<$core.int> value) => + ExportInstanceRequest.fromBuffer(value), + ($1.Operation value) => value.writeToBuffer())); $addMethod($grpc.ServiceMethod( 'FailoverInstance', failoverInstance_Pre, @@ -175,6 +219,16 @@ abstract class CloudRedisServiceBase extends $grpc.Service { return updateInstance(call, await request); } + $async.Future<$1.Operation> importInstance_Pre( + $grpc.ServiceCall call, $async.Future request) async { + return importInstance(call, await request); + } + + $async.Future<$1.Operation> exportInstance_Pre( + $grpc.ServiceCall call, $async.Future request) async { + return exportInstance(call, await request); + } + $async.Future<$1.Operation> failoverInstance_Pre( $grpc.ServiceCall call, $async.Future request) async { return failoverInstance(call, await request); @@ -193,6 +247,10 @@ abstract class CloudRedisServiceBase extends $grpc.Service { $grpc.ServiceCall call, CreateInstanceRequest request); $async.Future<$1.Operation> updateInstance( $grpc.ServiceCall call, UpdateInstanceRequest request); + $async.Future<$1.Operation> importInstance( + $grpc.ServiceCall call, ImportInstanceRequest request); + $async.Future<$1.Operation> exportInstance( + $grpc.ServiceCall call, ExportInstanceRequest request); $async.Future<$1.Operation> failoverInstance( $grpc.ServiceCall call, FailoverInstanceRequest request); $async.Future<$1.Operation> deleteInstance( diff --git a/lib/src/grpc_api/dart/google/cloud/redis/v1beta1/cloud_redis.pbjson.dart b/lib/src/grpc_api/dart/google/cloud/redis/v1beta1/cloud_redis.pbjson.dart index 435badae..8e7f25e0 100644 --- a/lib/src/grpc_api/dart/google/cloud/redis/v1beta1/cloud_redis.pbjson.dart +++ b/lib/src/grpc_api/dart/google/cloud/redis/v1beta1/cloud_redis.pbjson.dart @@ -77,6 +77,13 @@ const Instance$json = { '5': 9, '10': 'authorizedNetwork' }, + { + '1': 'persistence_iam_identity', + '3': 21, + '4': 1, + '5': 9, + '10': 'persistenceIamIdentity' + }, ], '3': [Instance_LabelsEntry$json, Instance_RedisConfigsEntry$json], '4': [Instance_State$json, Instance_Tier$json], @@ -201,6 +208,86 @@ const DeleteInstanceRequest$json = { ], }; +const GcsSource$json = { + '1': 'GcsSource', + '2': [ + {'1': 'uri', '3': 1, '4': 1, '5': 9, '10': 'uri'}, + ], +}; + +const InputConfig$json = { + '1': 'InputConfig', + '2': [ + { + '1': 'gcs_source', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.cloud.redis.v1beta1.GcsSource', + '9': 0, + '10': 'gcsSource' + }, + ], + '8': [ + {'1': 'source'}, + ], +}; + +const ImportInstanceRequest$json = { + '1': 'ImportInstanceRequest', + '2': [ + {'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'}, + { + '1': 'input_config', + '3': 3, + '4': 1, + '5': 11, + '6': '.google.cloud.redis.v1beta1.InputConfig', + '10': 'inputConfig' + }, + ], +}; + +const GcsDestination$json = { + '1': 'GcsDestination', + '2': [ + {'1': 'uri', '3': 1, '4': 1, '5': 9, '10': 'uri'}, + ], +}; + +const OutputConfig$json = { + '1': 'OutputConfig', + '2': [ + { + '1': 'gcs_destination', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.cloud.redis.v1beta1.GcsDestination', + '9': 0, + '10': 'gcsDestination' + }, + ], + '8': [ + {'1': 'destination'}, + ], +}; + +const ExportInstanceRequest$json = { + '1': 'ExportInstanceRequest', + '2': [ + {'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'}, + { + '1': 'output_config', + '3': 3, + '4': 1, + '5': 11, + '6': '.google.cloud.redis.v1beta1.OutputConfig', + '10': 'outputConfig' + }, + ], +}; + const FailoverInstanceRequest$json = { '1': 'FailoverInstanceRequest', '2': [ diff --git a/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/batch.pb.dart b/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/batch.pb.dart index 59576da4..c528a75e 100644 --- a/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/batch.pb.dart +++ b/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/batch.pb.dart @@ -6,3 +6,199 @@ import 'dart:core' as $core show bool, Deprecated, double, int, List, Map, override, String; + +import 'package:protobuf/protobuf.dart' as $pb; + +import '../../../protobuf/timestamp.pb.dart' as $0; +import 'job.pb.dart' as $1; +import '../../../rpc/status.pb.dart' as $2; + +import 'batch.pbenum.dart'; + +export 'batch.pbenum.dart'; + +class BatchOperationMetadata extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo('BatchOperationMetadata', + package: const $pb.PackageName('google.cloud.talent.v4beta1')) + ..e( + 1, + 'state', + $pb.PbFieldType.OE, + BatchOperationMetadata_State.STATE_UNSPECIFIED, + BatchOperationMetadata_State.valueOf, + BatchOperationMetadata_State.values) + ..aOS(2, 'stateDescription') + ..a<$core.int>(3, 'successCount', $pb.PbFieldType.O3) + ..a<$core.int>(4, 'failureCount', $pb.PbFieldType.O3) + ..a<$core.int>(5, 'totalCount', $pb.PbFieldType.O3) + ..a<$0.Timestamp>(6, 'createTime', $pb.PbFieldType.OM, + $0.Timestamp.getDefault, $0.Timestamp.create) + ..a<$0.Timestamp>(7, 'updateTime', $pb.PbFieldType.OM, + $0.Timestamp.getDefault, $0.Timestamp.create) + ..a<$0.Timestamp>(8, 'endTime', $pb.PbFieldType.OM, $0.Timestamp.getDefault, + $0.Timestamp.create) + ..hasRequiredFields = false; + + BatchOperationMetadata() : super(); + BatchOperationMetadata.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromBuffer(i, r); + BatchOperationMetadata.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromJson(i, r); + BatchOperationMetadata clone() => + BatchOperationMetadata()..mergeFromMessage(this); + BatchOperationMetadata copyWith( + void Function(BatchOperationMetadata) updates) => + super.copyWith((message) => updates(message as BatchOperationMetadata)); + $pb.BuilderInfo get info_ => _i; + static BatchOperationMetadata create() => BatchOperationMetadata(); + BatchOperationMetadata createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + static BatchOperationMetadata getDefault() => + _defaultInstance ??= create()..freeze(); + static BatchOperationMetadata _defaultInstance; + + BatchOperationMetadata_State get state => $_getN(0); + set state(BatchOperationMetadata_State v) { + setField(1, v); + } + + $core.bool hasState() => $_has(0); + void clearState() => clearField(1); + + $core.String get stateDescription => $_getS(1, ''); + set stateDescription($core.String v) { + $_setString(1, v); + } + + $core.bool hasStateDescription() => $_has(1); + void clearStateDescription() => clearField(2); + + $core.int get successCount => $_get(2, 0); + set successCount($core.int v) { + $_setSignedInt32(2, v); + } + + $core.bool hasSuccessCount() => $_has(2); + void clearSuccessCount() => clearField(3); + + $core.int get failureCount => $_get(3, 0); + set failureCount($core.int v) { + $_setSignedInt32(3, v); + } + + $core.bool hasFailureCount() => $_has(3); + void clearFailureCount() => clearField(4); + + $core.int get totalCount => $_get(4, 0); + set totalCount($core.int v) { + $_setSignedInt32(4, v); + } + + $core.bool hasTotalCount() => $_has(4); + void clearTotalCount() => clearField(5); + + $0.Timestamp get createTime => $_getN(5); + set createTime($0.Timestamp v) { + setField(6, v); + } + + $core.bool hasCreateTime() => $_has(5); + void clearCreateTime() => clearField(6); + + $0.Timestamp get updateTime => $_getN(6); + set updateTime($0.Timestamp v) { + setField(7, v); + } + + $core.bool hasUpdateTime() => $_has(6); + void clearUpdateTime() => clearField(7); + + $0.Timestamp get endTime => $_getN(7); + set endTime($0.Timestamp v) { + setField(8, v); + } + + $core.bool hasEndTime() => $_has(7); + void clearEndTime() => clearField(8); +} + +class JobOperationResult_JobResult extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + 'JobOperationResult.JobResult', + package: const $pb.PackageName('google.cloud.talent.v4beta1')) + ..a<$1.Job>(1, 'job', $pb.PbFieldType.OM, $1.Job.getDefault, $1.Job.create) + ..a<$2.Status>( + 2, 'status', $pb.PbFieldType.OM, $2.Status.getDefault, $2.Status.create) + ..hasRequiredFields = false; + + JobOperationResult_JobResult() : super(); + JobOperationResult_JobResult.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromBuffer(i, r); + JobOperationResult_JobResult.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromJson(i, r); + JobOperationResult_JobResult clone() => + JobOperationResult_JobResult()..mergeFromMessage(this); + JobOperationResult_JobResult copyWith( + void Function(JobOperationResult_JobResult) updates) => + super.copyWith( + (message) => updates(message as JobOperationResult_JobResult)); + $pb.BuilderInfo get info_ => _i; + static JobOperationResult_JobResult create() => + JobOperationResult_JobResult(); + JobOperationResult_JobResult createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + static JobOperationResult_JobResult getDefault() => + _defaultInstance ??= create()..freeze(); + static JobOperationResult_JobResult _defaultInstance; + + $1.Job get job => $_getN(0); + set job($1.Job v) { + setField(1, v); + } + + $core.bool hasJob() => $_has(0); + void clearJob() => clearField(1); + + $2.Status get status => $_getN(1); + set status($2.Status v) { + setField(2, v); + } + + $core.bool hasStatus() => $_has(1); + void clearStatus() => clearField(2); +} + +class JobOperationResult extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo('JobOperationResult', + package: const $pb.PackageName('google.cloud.talent.v4beta1')) + ..pc(1, 'jobResults', $pb.PbFieldType.PM, + JobOperationResult_JobResult.create) + ..hasRequiredFields = false; + + JobOperationResult() : super(); + JobOperationResult.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromBuffer(i, r); + JobOperationResult.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromJson(i, r); + JobOperationResult clone() => JobOperationResult()..mergeFromMessage(this); + JobOperationResult copyWith(void Function(JobOperationResult) updates) => + super.copyWith((message) => updates(message as JobOperationResult)); + $pb.BuilderInfo get info_ => _i; + static JobOperationResult create() => JobOperationResult(); + JobOperationResult createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + static JobOperationResult getDefault() => + _defaultInstance ??= create()..freeze(); + static JobOperationResult _defaultInstance; + + $core.List get jobResults => $_getList(0); +} diff --git a/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/batch.pbenum.dart b/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/batch.pbenum.dart index 60b636d2..a211aefd 100644 --- a/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/batch.pbenum.dart +++ b/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/batch.pbenum.dart @@ -3,3 +3,43 @@ // source: google/cloud/talent/v4beta1/batch.proto /// // ignore_for_file: camel_case_types,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name + +// ignore_for_file: UNDEFINED_SHOWN_NAME,UNUSED_SHOWN_NAME +import 'dart:core' as $core show int, dynamic, String, List, Map; +import 'package:protobuf/protobuf.dart' as $pb; + +class BatchOperationMetadata_State extends $pb.ProtobufEnum { + static const BatchOperationMetadata_State STATE_UNSPECIFIED = + BatchOperationMetadata_State._(0, 'STATE_UNSPECIFIED'); + static const BatchOperationMetadata_State INITIALIZING = + BatchOperationMetadata_State._(1, 'INITIALIZING'); + static const BatchOperationMetadata_State PROCESSING = + BatchOperationMetadata_State._(2, 'PROCESSING'); + static const BatchOperationMetadata_State SUCCEEDED = + BatchOperationMetadata_State._(3, 'SUCCEEDED'); + static const BatchOperationMetadata_State FAILED = + BatchOperationMetadata_State._(4, 'FAILED'); + static const BatchOperationMetadata_State CANCELLING = + BatchOperationMetadata_State._(5, 'CANCELLING'); + static const BatchOperationMetadata_State CANCELLED = + BatchOperationMetadata_State._(6, 'CANCELLED'); + + static const $core.List values = + [ + STATE_UNSPECIFIED, + INITIALIZING, + PROCESSING, + SUCCEEDED, + FAILED, + CANCELLING, + CANCELLED, + ]; + + static final $core.Map<$core.int, BatchOperationMetadata_State> _byValue = + $pb.ProtobufEnum.initByValue(values); + static BatchOperationMetadata_State valueOf($core.int value) => + _byValue[value]; + + const BatchOperationMetadata_State._($core.int v, $core.String n) + : super(v, n); +} diff --git a/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/batch.pbjson.dart b/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/batch.pbjson.dart index 60b636d2..1c74f028 100644 --- a/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/batch.pbjson.dart +++ b/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/batch.pbjson.dart @@ -3,3 +3,102 @@ // source: google/cloud/talent/v4beta1/batch.proto /// // ignore_for_file: camel_case_types,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name + +const BatchOperationMetadata$json = { + '1': 'BatchOperationMetadata', + '2': [ + { + '1': 'state', + '3': 1, + '4': 1, + '5': 14, + '6': '.google.cloud.talent.v4beta1.BatchOperationMetadata.State', + '10': 'state' + }, + { + '1': 'state_description', + '3': 2, + '4': 1, + '5': 9, + '10': 'stateDescription' + }, + {'1': 'success_count', '3': 3, '4': 1, '5': 5, '10': 'successCount'}, + {'1': 'failure_count', '3': 4, '4': 1, '5': 5, '10': 'failureCount'}, + {'1': 'total_count', '3': 5, '4': 1, '5': 5, '10': 'totalCount'}, + { + '1': 'create_time', + '3': 6, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '10': 'createTime' + }, + { + '1': 'update_time', + '3': 7, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '10': 'updateTime' + }, + { + '1': 'end_time', + '3': 8, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '10': 'endTime' + }, + ], + '4': [BatchOperationMetadata_State$json], +}; + +const BatchOperationMetadata_State$json = { + '1': 'State', + '2': [ + {'1': 'STATE_UNSPECIFIED', '2': 0}, + {'1': 'INITIALIZING', '2': 1}, + {'1': 'PROCESSING', '2': 2}, + {'1': 'SUCCEEDED', '2': 3}, + {'1': 'FAILED', '2': 4}, + {'1': 'CANCELLING', '2': 5}, + {'1': 'CANCELLED', '2': 6}, + ], +}; + +const JobOperationResult$json = { + '1': 'JobOperationResult', + '2': [ + { + '1': 'job_results', + '3': 1, + '4': 3, + '5': 11, + '6': '.google.cloud.talent.v4beta1.JobOperationResult.JobResult', + '10': 'jobResults' + }, + ], + '3': [JobOperationResult_JobResult$json], +}; + +const JobOperationResult_JobResult$json = { + '1': 'JobResult', + '2': [ + { + '1': 'job', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.cloud.talent.v4beta1.Job', + '10': 'job' + }, + { + '1': 'status', + '3': 2, + '4': 1, + '5': 11, + '6': '.google.rpc.Status', + '10': 'status' + }, + ], +}; diff --git a/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/common.pbenum.dart b/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/common.pbenum.dart index 02a00c1d..79dfccb5 100644 --- a/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/common.pbenum.dart +++ b/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/common.pbenum.dart @@ -388,6 +388,8 @@ class CommuteMethod extends $pb.ProtobufEnum { class SkillProficiencyLevel extends $pb.ProtobufEnum { static const SkillProficiencyLevel SKILL_PROFICIENCY_LEVEL_UNSPECIFIED = SkillProficiencyLevel._(0, 'SKILL_PROFICIENCY_LEVEL_UNSPECIFIED'); + static const SkillProficiencyLevel UNSKILLED = + SkillProficiencyLevel._(6, 'UNSKILLED'); static const SkillProficiencyLevel FUNDAMENTAL_AWARENESS = SkillProficiencyLevel._(1, 'FUNDAMENTAL_AWARENESS'); static const SkillProficiencyLevel NOVICE = @@ -402,6 +404,7 @@ class SkillProficiencyLevel extends $pb.ProtobufEnum { static const $core.List values = [ SKILL_PROFICIENCY_LEVEL_UNSPECIFIED, + UNSKILLED, FUNDAMENTAL_AWARENESS, NOVICE, INTERMEDIATE, diff --git a/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/common.pbjson.dart b/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/common.pbjson.dart index 90bd8868..9ee3150f 100644 --- a/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/common.pbjson.dart +++ b/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/common.pbjson.dart @@ -171,6 +171,7 @@ const SkillProficiencyLevel$json = { '1': 'SkillProficiencyLevel', '2': [ {'1': 'SKILL_PROFICIENCY_LEVEL_UNSPECIFIED', '2': 0}, + {'1': 'UNSKILLED', '2': 6}, {'1': 'FUNDAMENTAL_AWARENESS', '2': 1}, {'1': 'NOVICE', '2': 2}, {'1': 'INTERMEDIATE', '2': 3}, diff --git a/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/event.pb.dart b/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/event.pb.dart index e4b3ec4a..7bb5b108 100644 --- a/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/event.pb.dart +++ b/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/event.pb.dart @@ -118,6 +118,7 @@ class JobEvent extends $pb.GeneratedMessage { JobEvent_JobEventType.valueOf, JobEvent_JobEventType.values) ..pPS(2, 'jobs') + ..aOS(3, 'profile') ..hasRequiredFields = false; JobEvent() : super(); @@ -146,6 +147,14 @@ class JobEvent extends $pb.GeneratedMessage { void clearType() => clearField(1); $core.List<$core.String> get jobs => $_getList(1); + + $core.String get profile => $_getS(2, ''); + set profile($core.String v) { + $_setString(2, v); + } + + $core.bool hasProfile() => $_has(2); + void clearProfile() => clearField(3); } class ProfileEvent extends $pb.GeneratedMessage { diff --git a/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/event.pbenum.dart b/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/event.pbenum.dart index 02a61e5d..f0043d41 100644 --- a/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/event.pbenum.dart +++ b/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/event.pbenum.dart @@ -40,8 +40,6 @@ class JobEvent_JobEventType extends $pb.ProtobufEnum { JobEvent_JobEventType._(14, 'SENT_CV'); static const JobEvent_JobEventType INTERVIEW_GRANTED = JobEvent_JobEventType._(15, 'INTERVIEW_GRANTED'); - static const JobEvent_JobEventType NOT_INTERESTED = - JobEvent_JobEventType._(16, 'NOT_INTERESTED'); static const $core.List values = [ @@ -61,7 +59,6 @@ class JobEvent_JobEventType extends $pb.ProtobufEnum { HIRED, SENT_CV, INTERVIEW_GRANTED, - NOT_INTERESTED, ]; static final $core.Map<$core.int, JobEvent_JobEventType> _byValue = diff --git a/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/event.pbjson.dart b/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/event.pbjson.dart index c900c0f8..eb565a65 100644 --- a/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/event.pbjson.dart +++ b/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/event.pbjson.dart @@ -54,6 +54,7 @@ const JobEvent$json = { '10': 'type' }, {'1': 'jobs', '3': 2, '4': 3, '5': 9, '10': 'jobs'}, + {'1': 'profile', '3': 3, '4': 1, '5': 9, '10': 'profile'}, ], '4': [JobEvent_JobEventType$json], }; @@ -77,7 +78,6 @@ const JobEvent_JobEventType$json = { {'1': 'HIRED', '2': 13}, {'1': 'SENT_CV', '2': 14}, {'1': 'INTERVIEW_GRANTED', '2': 15}, - {'1': 'NOT_INTERESTED', '2': 16}, ], }; diff --git a/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/job_service.pb.dart b/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/job_service.pb.dart index 4eff15d0..69d94df0 100644 --- a/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/job_service.pb.dart +++ b/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/job_service.pb.dart @@ -10,11 +10,11 @@ import 'dart:core' as $core import 'package:protobuf/protobuf.dart' as $pb; import 'job.pb.dart' as $1; -import '../../../protobuf/field_mask.pb.dart' as $2; -import 'common.pb.dart' as $3; -import 'filters.pb.dart' as $4; -import 'histogram.pb.dart' as $5; -import '../../../protobuf/duration.pb.dart' as $6; +import '../../../protobuf/field_mask.pb.dart' as $3; +import 'common.pb.dart' as $4; +import 'filters.pb.dart' as $5; +import 'histogram.pb.dart' as $6; +import '../../../protobuf/duration.pb.dart' as $7; import 'job_service.pbenum.dart'; @@ -100,8 +100,8 @@ class UpdateJobRequest extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo('UpdateJobRequest', package: const $pb.PackageName('google.cloud.talent.v4beta1')) ..a<$1.Job>(1, 'job', $pb.PbFieldType.OM, $1.Job.getDefault, $1.Job.create) - ..a<$2.FieldMask>(2, 'updateMask', $pb.PbFieldType.OM, - $2.FieldMask.getDefault, $2.FieldMask.create) + ..a<$3.FieldMask>(2, 'updateMask', $pb.PbFieldType.OM, + $3.FieldMask.getDefault, $3.FieldMask.create) ..hasRequiredFields = false; UpdateJobRequest() : super(); @@ -131,8 +131,8 @@ class UpdateJobRequest extends $pb.GeneratedMessage { $core.bool hasJob() => $_has(0); void clearJob() => clearField(1); - $2.FieldMask get updateMask => $_getN(1); - set updateMask($2.FieldMask v) { + $3.FieldMask get updateMask => $_getN(1); + set updateMask($3.FieldMask v) { setField(2, v); } @@ -295,8 +295,8 @@ class ListJobsResponse extends $pb.GeneratedMessage { package: const $pb.PackageName('google.cloud.talent.v4beta1')) ..pc<$1.Job>(1, 'jobs', $pb.PbFieldType.PM, $1.Job.create) ..aOS(2, 'nextPageToken') - ..a<$3.ResponseMetadata>(3, 'metadata', $pb.PbFieldType.OM, - $3.ResponseMetadata.getDefault, $3.ResponseMetadata.create) + ..a<$4.ResponseMetadata>(3, 'metadata', $pb.PbFieldType.OM, + $4.ResponseMetadata.getDefault, $4.ResponseMetadata.create) ..hasRequiredFields = false; ListJobsResponse() : super(); @@ -328,8 +328,8 @@ class ListJobsResponse extends $pb.GeneratedMessage { $core.bool hasNextPageToken() => $_has(1); void clearNextPageToken() => clearField(2); - $3.ResponseMetadata get metadata => $_getN(2); - set metadata($3.ResponseMetadata v) { + $4.ResponseMetadata get metadata => $_getN(2); + set metadata($4.ResponseMetadata v) { setField(3, v); } @@ -404,14 +404,14 @@ class SearchJobsRequest extends $pb.GeneratedMessage { SearchJobsRequest_SearchMode.SEARCH_MODE_UNSPECIFIED, SearchJobsRequest_SearchMode.valueOf, SearchJobsRequest_SearchMode.values) - ..a<$3.RequestMetadata>(3, 'requestMetadata', $pb.PbFieldType.OM, - $3.RequestMetadata.getDefault, $3.RequestMetadata.create) - ..a<$4.JobQuery>(4, 'jobQuery', $pb.PbFieldType.OM, $4.JobQuery.getDefault, - $4.JobQuery.create) + ..a<$4.RequestMetadata>(3, 'requestMetadata', $pb.PbFieldType.OM, + $4.RequestMetadata.getDefault, $4.RequestMetadata.create) + ..a<$5.JobQuery>(4, 'jobQuery', $pb.PbFieldType.OM, $5.JobQuery.getDefault, + $5.JobQuery.create) ..aOB(5, 'enableBroadening') ..aOB(6, 'requirePreciseResultSize') - ..pc<$5.HistogramQuery>( - 7, 'histogramQueries', $pb.PbFieldType.PM, $5.HistogramQuery.create) + ..pc<$6.HistogramQuery>( + 7, 'histogramQueries', $pb.PbFieldType.PM, $6.HistogramQuery.create) ..e(8, 'jobView', $pb.PbFieldType.OE, JobView.JOB_VIEW_UNSPECIFIED, JobView.valueOf, JobView.values) ..a<$core.int>(9, 'offset', $pb.PbFieldType.O3) @@ -470,16 +470,16 @@ class SearchJobsRequest extends $pb.GeneratedMessage { $core.bool hasSearchMode() => $_has(1); void clearSearchMode() => clearField(2); - $3.RequestMetadata get requestMetadata => $_getN(2); - set requestMetadata($3.RequestMetadata v) { + $4.RequestMetadata get requestMetadata => $_getN(2); + set requestMetadata($4.RequestMetadata v) { setField(3, v); } $core.bool hasRequestMetadata() => $_has(2); void clearRequestMetadata() => clearField(3); - $4.JobQuery get jobQuery => $_getN(3); - set jobQuery($4.JobQuery v) { + $5.JobQuery get jobQuery => $_getN(3); + set jobQuery($5.JobQuery v) { setField(4, v); } @@ -502,7 +502,7 @@ class SearchJobsRequest extends $pb.GeneratedMessage { $core.bool hasRequirePreciseResultSize() => $_has(5); void clearRequirePreciseResultSize() => clearField(6); - $core.List<$5.HistogramQuery> get histogramQueries => $_getList(6); + $core.List<$6.HistogramQuery> get histogramQueries => $_getList(6); JobView get jobView => $_getN(7); set jobView(JobView v) { @@ -653,10 +653,10 @@ class SearchJobsResponse_CommuteInfo extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo( 'SearchJobsResponse.CommuteInfo', package: const $pb.PackageName('google.cloud.talent.v4beta1')) - ..a<$3.Location>(1, 'jobLocation', $pb.PbFieldType.OM, - $3.Location.getDefault, $3.Location.create) - ..a<$6.Duration>(2, 'travelDuration', $pb.PbFieldType.OM, - $6.Duration.getDefault, $6.Duration.create) + ..a<$4.Location>(1, 'jobLocation', $pb.PbFieldType.OM, + $4.Location.getDefault, $4.Location.create) + ..a<$7.Duration>(2, 'travelDuration', $pb.PbFieldType.OM, + $7.Duration.getDefault, $7.Duration.create) ..hasRequiredFields = false; SearchJobsResponse_CommuteInfo() : super(); @@ -682,16 +682,16 @@ class SearchJobsResponse_CommuteInfo extends $pb.GeneratedMessage { _defaultInstance ??= create()..freeze(); static SearchJobsResponse_CommuteInfo _defaultInstance; - $3.Location get jobLocation => $_getN(0); - set jobLocation($3.Location v) { + $4.Location get jobLocation => $_getN(0); + set jobLocation($4.Location v) { setField(1, v); } $core.bool hasJobLocation() => $_has(0); void clearJobLocation() => clearField(1); - $6.Duration get travelDuration => $_getN(1); - set travelDuration($6.Duration v) { + $7.Duration get travelDuration => $_getN(1); + set travelDuration($7.Duration v) { setField(2, v); } @@ -704,18 +704,18 @@ class SearchJobsResponse extends $pb.GeneratedMessage { package: const $pb.PackageName('google.cloud.talent.v4beta1')) ..pc(1, 'matchingJobs', $pb.PbFieldType.PM, SearchJobsResponse_MatchingJob.create) - ..pc<$5.HistogramQueryResult>(2, 'histogramQueryResults', - $pb.PbFieldType.PM, $5.HistogramQueryResult.create) + ..pc<$6.HistogramQueryResult>(2, 'histogramQueryResults', + $pb.PbFieldType.PM, $6.HistogramQueryResult.create) ..aOS(3, 'nextPageToken') - ..pc<$3.Location>( - 4, 'locationFilters', $pb.PbFieldType.PM, $3.Location.create) + ..pc<$4.Location>( + 4, 'locationFilters', $pb.PbFieldType.PM, $4.Location.create) ..a<$core.int>(5, 'estimatedTotalSize', $pb.PbFieldType.O3) ..a<$core.int>(6, 'totalSize', $pb.PbFieldType.O3) - ..a<$3.ResponseMetadata>(7, 'metadata', $pb.PbFieldType.OM, - $3.ResponseMetadata.getDefault, $3.ResponseMetadata.create) + ..a<$4.ResponseMetadata>(7, 'metadata', $pb.PbFieldType.OM, + $4.ResponseMetadata.getDefault, $4.ResponseMetadata.create) ..a<$core.int>(8, 'broadenedQueryJobsCount', $pb.PbFieldType.O3) - ..a<$3.SpellingCorrection>(9, 'spellCorrection', $pb.PbFieldType.OM, - $3.SpellingCorrection.getDefault, $3.SpellingCorrection.create) + ..a<$4.SpellingCorrection>(9, 'spellCorrection', $pb.PbFieldType.OM, + $4.SpellingCorrection.getDefault, $4.SpellingCorrection.create) ..hasRequiredFields = false; SearchJobsResponse() : super(); @@ -739,7 +739,7 @@ class SearchJobsResponse extends $pb.GeneratedMessage { $core.List get matchingJobs => $_getList(0); - $core.List<$5.HistogramQueryResult> get histogramQueryResults => $_getList(1); + $core.List<$6.HistogramQueryResult> get histogramQueryResults => $_getList(1); $core.String get nextPageToken => $_getS(2, ''); set nextPageToken($core.String v) { @@ -749,7 +749,7 @@ class SearchJobsResponse extends $pb.GeneratedMessage { $core.bool hasNextPageToken() => $_has(2); void clearNextPageToken() => clearField(3); - $core.List<$3.Location> get locationFilters => $_getList(3); + $core.List<$4.Location> get locationFilters => $_getList(3); $core.int get estimatedTotalSize => $_get(4, 0); set estimatedTotalSize($core.int v) { @@ -767,8 +767,8 @@ class SearchJobsResponse extends $pb.GeneratedMessage { $core.bool hasTotalSize() => $_has(5); void clearTotalSize() => clearField(6); - $3.ResponseMetadata get metadata => $_getN(6); - set metadata($3.ResponseMetadata v) { + $4.ResponseMetadata get metadata => $_getN(6); + set metadata($4.ResponseMetadata v) { setField(7, v); } @@ -783,11 +783,99 @@ class SearchJobsResponse extends $pb.GeneratedMessage { $core.bool hasBroadenedQueryJobsCount() => $_has(7); void clearBroadenedQueryJobsCount() => clearField(8); - $3.SpellingCorrection get spellCorrection => $_getN(8); - set spellCorrection($3.SpellingCorrection v) { + $4.SpellingCorrection get spellCorrection => $_getN(8); + set spellCorrection($4.SpellingCorrection v) { setField(9, v); } $core.bool hasSpellCorrection() => $_has(8); void clearSpellCorrection() => clearField(9); } + +class BatchCreateJobsRequest extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo('BatchCreateJobsRequest', + package: const $pb.PackageName('google.cloud.talent.v4beta1')) + ..aOS(1, 'parent') + ..pc<$1.Job>(2, 'jobs', $pb.PbFieldType.PM, $1.Job.create) + ..hasRequiredFields = false; + + BatchCreateJobsRequest() : super(); + BatchCreateJobsRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromBuffer(i, r); + BatchCreateJobsRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromJson(i, r); + BatchCreateJobsRequest clone() => + BatchCreateJobsRequest()..mergeFromMessage(this); + BatchCreateJobsRequest copyWith( + void Function(BatchCreateJobsRequest) updates) => + super.copyWith((message) => updates(message as BatchCreateJobsRequest)); + $pb.BuilderInfo get info_ => _i; + static BatchCreateJobsRequest create() => BatchCreateJobsRequest(); + BatchCreateJobsRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + static BatchCreateJobsRequest getDefault() => + _defaultInstance ??= create()..freeze(); + static BatchCreateJobsRequest _defaultInstance; + + $core.String get parent => $_getS(0, ''); + set parent($core.String v) { + $_setString(0, v); + } + + $core.bool hasParent() => $_has(0); + void clearParent() => clearField(1); + + $core.List<$1.Job> get jobs => $_getList(1); +} + +class BatchUpdateJobsRequest extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo('BatchUpdateJobsRequest', + package: const $pb.PackageName('google.cloud.talent.v4beta1')) + ..aOS(1, 'parent') + ..pc<$1.Job>(2, 'jobs', $pb.PbFieldType.PM, $1.Job.create) + ..a<$3.FieldMask>(3, 'updateMask', $pb.PbFieldType.OM, + $3.FieldMask.getDefault, $3.FieldMask.create) + ..hasRequiredFields = false; + + BatchUpdateJobsRequest() : super(); + BatchUpdateJobsRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromBuffer(i, r); + BatchUpdateJobsRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromJson(i, r); + BatchUpdateJobsRequest clone() => + BatchUpdateJobsRequest()..mergeFromMessage(this); + BatchUpdateJobsRequest copyWith( + void Function(BatchUpdateJobsRequest) updates) => + super.copyWith((message) => updates(message as BatchUpdateJobsRequest)); + $pb.BuilderInfo get info_ => _i; + static BatchUpdateJobsRequest create() => BatchUpdateJobsRequest(); + BatchUpdateJobsRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + static BatchUpdateJobsRequest getDefault() => + _defaultInstance ??= create()..freeze(); + static BatchUpdateJobsRequest _defaultInstance; + + $core.String get parent => $_getS(0, ''); + set parent($core.String v) { + $_setString(0, v); + } + + $core.bool hasParent() => $_has(0); + void clearParent() => clearField(1); + + $core.List<$1.Job> get jobs => $_getList(1); + + $3.FieldMask get updateMask => $_getN(2); + set updateMask($3.FieldMask v) { + setField(3, v); + } + + $core.bool hasUpdateMask() => $_has(2); + void clearUpdateMask() => clearField(3); +} diff --git a/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/job_service.pbgrpc.dart b/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/job_service.pbgrpc.dart index 29beaa5b..1549239a 100644 --- a/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/job_service.pbgrpc.dart +++ b/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/job_service.pbgrpc.dart @@ -13,6 +13,7 @@ import 'dart:core' as $core show int, String, List; import 'job_service.pb.dart'; import 'job.pb.dart' as $1; import '../../../protobuf/empty.pb.dart' as $0; +import '../../../longrunning/operations.pb.dart' as $2; export 'job_service.pb.dart'; class JobServiceClient extends $grpc.Client { @@ -54,6 +55,16 @@ class JobServiceClient extends $grpc.Client { (SearchJobsRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => SearchJobsResponse.fromBuffer(value)); + static final _$batchCreateJobs = + $grpc.ClientMethod( + '/google.cloud.talent.v4beta1.JobService/BatchCreateJobs', + (BatchCreateJobsRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $2.Operation.fromBuffer(value)); + static final _$batchUpdateJobs = + $grpc.ClientMethod( + '/google.cloud.talent.v4beta1.JobService/BatchUpdateJobs', + (BatchUpdateJobsRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $2.Operation.fromBuffer(value)); JobServiceClient($grpc.ClientChannel channel, {$grpc.CallOptions options}) : super(channel, options: options); @@ -117,6 +128,24 @@ class JobServiceClient extends $grpc.Client { options: options); return $grpc.ResponseFuture(call); } + + $grpc.ResponseFuture<$2.Operation> batchCreateJobs( + BatchCreateJobsRequest request, + {$grpc.CallOptions options}) { + final call = $createCall( + _$batchCreateJobs, $async.Stream.fromIterable([request]), + options: options); + return $grpc.ResponseFuture(call); + } + + $grpc.ResponseFuture<$2.Operation> batchUpdateJobs( + BatchUpdateJobsRequest request, + {$grpc.CallOptions options}) { + final call = $createCall( + _$batchUpdateJobs, $async.Stream.fromIterable([request]), + options: options); + return $grpc.ResponseFuture(call); + } } abstract class JobServiceBase extends $grpc.Service { @@ -180,6 +209,22 @@ abstract class JobServiceBase extends $grpc.Service { false, ($core.List<$core.int> value) => SearchJobsRequest.fromBuffer(value), (SearchJobsResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod( + 'BatchCreateJobs', + batchCreateJobs_Pre, + false, + false, + ($core.List<$core.int> value) => + BatchCreateJobsRequest.fromBuffer(value), + ($2.Operation value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod( + 'BatchUpdateJobs', + batchUpdateJobs_Pre, + false, + false, + ($core.List<$core.int> value) => + BatchUpdateJobsRequest.fromBuffer(value), + ($2.Operation value) => value.writeToBuffer())); } $async.Future<$1.Job> createJob_Pre( @@ -222,6 +267,16 @@ abstract class JobServiceBase extends $grpc.Service { return searchJobsForAlert(call, await request); } + $async.Future<$2.Operation> batchCreateJobs_Pre( + $grpc.ServiceCall call, $async.Future request) async { + return batchCreateJobs(call, await request); + } + + $async.Future<$2.Operation> batchUpdateJobs_Pre( + $grpc.ServiceCall call, $async.Future request) async { + return batchUpdateJobs(call, await request); + } + $async.Future<$1.Job> createJob( $grpc.ServiceCall call, CreateJobRequest request); $async.Future<$1.Job> getJob($grpc.ServiceCall call, GetJobRequest request); @@ -237,4 +292,8 @@ abstract class JobServiceBase extends $grpc.Service { $grpc.ServiceCall call, SearchJobsRequest request); $async.Future searchJobsForAlert( $grpc.ServiceCall call, SearchJobsRequest request); + $async.Future<$2.Operation> batchCreateJobs( + $grpc.ServiceCall call, BatchCreateJobsRequest request); + $async.Future<$2.Operation> batchUpdateJobs( + $grpc.ServiceCall call, BatchUpdateJobsRequest request); } diff --git a/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/job_service.pbjson.dart b/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/job_service.pbjson.dart index 3183a30c..fc2274af 100644 --- a/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/job_service.pbjson.dart +++ b/lib/src/grpc_api/dart/google/cloud/talent/v4beta1/job_service.pbjson.dart @@ -381,3 +381,41 @@ const SearchJobsResponse_CommuteInfo$json = { }, ], }; + +const BatchCreateJobsRequest$json = { + '1': 'BatchCreateJobsRequest', + '2': [ + {'1': 'parent', '3': 1, '4': 1, '5': 9, '10': 'parent'}, + { + '1': 'jobs', + '3': 2, + '4': 3, + '5': 11, + '6': '.google.cloud.talent.v4beta1.Job', + '10': 'jobs' + }, + ], +}; + +const BatchUpdateJobsRequest$json = { + '1': 'BatchUpdateJobsRequest', + '2': [ + {'1': 'parent', '3': 1, '4': 1, '5': 9, '10': 'parent'}, + { + '1': 'jobs', + '3': 2, + '4': 3, + '5': 11, + '6': '.google.cloud.talent.v4beta1.Job', + '10': 'jobs' + }, + { + '1': 'update_mask', + '3': 3, + '4': 1, + '5': 11, + '6': '.google.protobuf.FieldMask', + '10': 'updateMask' + }, + ], +}; diff --git a/lib/src/grpc_api/dart/google/cloud/videointelligence/v1/video_intelligence.pb.dart b/lib/src/grpc_api/dart/google/cloud/videointelligence/v1/video_intelligence.pb.dart index da56a234..99a26064 100644 --- a/lib/src/grpc_api/dart/google/cloud/videointelligence/v1/video_intelligence.pb.dart +++ b/lib/src/grpc_api/dart/google/cloud/videointelligence/v1/video_intelligence.pb.dart @@ -122,6 +122,8 @@ class VideoContext extends $pb.GeneratedMessage { SpeechTranscriptionConfig.create) ..a(8, 'textDetectionConfig', $pb.PbFieldType.OM, TextDetectionConfig.getDefault, TextDetectionConfig.create) + ..a(13, 'objectTrackingConfig', $pb.PbFieldType.OM, + ObjectTrackingConfig.getDefault, ObjectTrackingConfig.create) ..hasRequiredFields = false; VideoContext() : super(); @@ -192,6 +194,14 @@ class VideoContext extends $pb.GeneratedMessage { $core.bool hasTextDetectionConfig() => $_has(6); void clearTextDetectionConfig() => clearField(8); + + ObjectTrackingConfig get objectTrackingConfig => $_getN(7); + set objectTrackingConfig(ObjectTrackingConfig v) { + setField(13, v); + } + + $core.bool hasObjectTrackingConfig() => $_has(7); + void clearObjectTrackingConfig() => clearField(13); } class LabelDetectionConfig extends $pb.GeneratedMessage { @@ -206,6 +216,8 @@ class LabelDetectionConfig extends $pb.GeneratedMessage { LabelDetectionMode.values) ..aOB(2, 'stationaryCamera') ..aOS(3, 'model') + ..a<$core.double>(4, 'frameConfidenceThreshold', $pb.PbFieldType.OF) + ..a<$core.double>(5, 'videoConfidenceThreshold', $pb.PbFieldType.OF) ..hasRequiredFields = false; LabelDetectionConfig() : super(); @@ -251,6 +263,22 @@ class LabelDetectionConfig extends $pb.GeneratedMessage { $core.bool hasModel() => $_has(2); void clearModel() => clearField(3); + + $core.double get frameConfidenceThreshold => $_getN(3); + set frameConfidenceThreshold($core.double v) { + $_setFloat(3, v); + } + + $core.bool hasFrameConfidenceThreshold() => $_has(3); + void clearFrameConfidenceThreshold() => clearField(4); + + $core.double get videoConfidenceThreshold => $_getN(4); + set videoConfidenceThreshold($core.double v) { + $_setFloat(4, v); + } + + $core.bool hasVideoConfidenceThreshold() => $_has(4); + void clearVideoConfidenceThreshold() => clearField(5); } class ShotChangeDetectionConfig extends $pb.GeneratedMessage { @@ -372,10 +400,46 @@ class FaceDetectionConfig extends $pb.GeneratedMessage { void clearIncludeBoundingBoxes() => clearField(2); } +class ObjectTrackingConfig extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo('ObjectTrackingConfig', + package: const $pb.PackageName('google.cloud.videointelligence.v1')) + ..aOS(1, 'model') + ..hasRequiredFields = false; + + ObjectTrackingConfig() : super(); + ObjectTrackingConfig.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromBuffer(i, r); + ObjectTrackingConfig.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromJson(i, r); + ObjectTrackingConfig clone() => + ObjectTrackingConfig()..mergeFromMessage(this); + ObjectTrackingConfig copyWith(void Function(ObjectTrackingConfig) updates) => + super.copyWith((message) => updates(message as ObjectTrackingConfig)); + $pb.BuilderInfo get info_ => _i; + static ObjectTrackingConfig create() => ObjectTrackingConfig(); + ObjectTrackingConfig createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + static ObjectTrackingConfig getDefault() => + _defaultInstance ??= create()..freeze(); + static ObjectTrackingConfig _defaultInstance; + + $core.String get model => $_getS(0, ''); + set model($core.String v) { + $_setString(0, v); + } + + $core.bool hasModel() => $_has(0); + void clearModel() => clearField(1); +} + class TextDetectionConfig extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo('TextDetectionConfig', package: const $pb.PackageName('google.cloud.videointelligence.v1')) ..pPS(1, 'languageHints') + ..aOS(2, 'model') ..hasRequiredFields = false; TextDetectionConfig() : super(); @@ -398,6 +462,14 @@ class TextDetectionConfig extends $pb.GeneratedMessage { static TextDetectionConfig _defaultInstance; $core.List<$core.String> get languageHints => $_getList(0); + + $core.String get model => $_getS(1, ''); + set model($core.String v) { + $_setString(1, v); + } + + $core.bool hasModel() => $_has(1); + void clearModel() => clearField(2); } class VideoSegment extends $pb.GeneratedMessage { diff --git a/lib/src/grpc_api/dart/google/cloud/videointelligence/v1/video_intelligence.pbjson.dart b/lib/src/grpc_api/dart/google/cloud/videointelligence/v1/video_intelligence.pbjson.dart index 5be41f31..0b6119db 100644 --- a/lib/src/grpc_api/dart/google/cloud/videointelligence/v1/video_intelligence.pbjson.dart +++ b/lib/src/grpc_api/dart/google/cloud/videointelligence/v1/video_intelligence.pbjson.dart @@ -125,6 +125,14 @@ const VideoContext$json = { '6': '.google.cloud.videointelligence.v1.TextDetectionConfig', '10': 'textDetectionConfig' }, + { + '1': 'object_tracking_config', + '3': 13, + '4': 1, + '5': 11, + '6': '.google.cloud.videointelligence.v1.ObjectTrackingConfig', + '10': 'objectTrackingConfig' + }, ], }; @@ -147,6 +155,20 @@ const LabelDetectionConfig$json = { '10': 'stationaryCamera' }, {'1': 'model', '3': 3, '4': 1, '5': 9, '10': 'model'}, + { + '1': 'frame_confidence_threshold', + '3': 4, + '4': 1, + '5': 2, + '10': 'frameConfidenceThreshold' + }, + { + '1': 'video_confidence_threshold', + '3': 5, + '4': 1, + '5': 2, + '10': 'videoConfidenceThreshold' + }, ], }; @@ -178,10 +200,18 @@ const FaceDetectionConfig$json = { ], }; +const ObjectTrackingConfig$json = { + '1': 'ObjectTrackingConfig', + '2': [ + {'1': 'model', '3': 1, '4': 1, '5': 9, '10': 'model'}, + ], +}; + const TextDetectionConfig$json = { '1': 'TextDetectionConfig', '2': [ {'1': 'language_hints', '3': 1, '4': 3, '5': 9, '10': 'languageHints'}, + {'1': 'model', '3': 2, '4': 1, '5': 9, '10': 'model'}, ], }; diff --git a/lib/src/grpc_api/dart/google/cloud/videointelligence/v1p3beta1/video_intelligence.pb.dart b/lib/src/grpc_api/dart/google/cloud/videointelligence/v1p3beta1/video_intelligence.pb.dart index 156fe7ec..ceb0352d 100644 --- a/lib/src/grpc_api/dart/google/cloud/videointelligence/v1p3beta1/video_intelligence.pb.dart +++ b/lib/src/grpc_api/dart/google/cloud/videointelligence/v1p3beta1/video_intelligence.pb.dart @@ -114,8 +114,16 @@ class VideoContext extends $pb.GeneratedMessage { $pb.PbFieldType.OM, ExplicitContentDetectionConfig.getDefault, ExplicitContentDetectionConfig.create) + ..a( + 6, + 'speechTranscriptionConfig', + $pb.PbFieldType.OM, + SpeechTranscriptionConfig.getDefault, + SpeechTranscriptionConfig.create) ..a(8, 'textDetectionConfig', $pb.PbFieldType.OM, TextDetectionConfig.getDefault, TextDetectionConfig.create) + ..a(13, 'objectTrackingConfig', $pb.PbFieldType.OM, + ObjectTrackingConfig.getDefault, ObjectTrackingConfig.create) ..hasRequiredFields = false; VideoContext() : super(); @@ -163,13 +171,29 @@ class VideoContext extends $pb.GeneratedMessage { $core.bool hasExplicitContentDetectionConfig() => $_has(3); void clearExplicitContentDetectionConfig() => clearField(4); - TextDetectionConfig get textDetectionConfig => $_getN(4); + SpeechTranscriptionConfig get speechTranscriptionConfig => $_getN(4); + set speechTranscriptionConfig(SpeechTranscriptionConfig v) { + setField(6, v); + } + + $core.bool hasSpeechTranscriptionConfig() => $_has(4); + void clearSpeechTranscriptionConfig() => clearField(6); + + TextDetectionConfig get textDetectionConfig => $_getN(5); set textDetectionConfig(TextDetectionConfig v) { setField(8, v); } - $core.bool hasTextDetectionConfig() => $_has(4); + $core.bool hasTextDetectionConfig() => $_has(5); void clearTextDetectionConfig() => clearField(8); + + ObjectTrackingConfig get objectTrackingConfig => $_getN(6); + set objectTrackingConfig(ObjectTrackingConfig v) { + setField(13, v); + } + + $core.bool hasObjectTrackingConfig() => $_has(6); + void clearObjectTrackingConfig() => clearField(13); } class LabelDetectionConfig extends $pb.GeneratedMessage { @@ -185,6 +209,8 @@ class LabelDetectionConfig extends $pb.GeneratedMessage { LabelDetectionMode.values) ..aOB(2, 'stationaryCamera') ..aOS(3, 'model') + ..a<$core.double>(4, 'frameConfidenceThreshold', $pb.PbFieldType.OF) + ..a<$core.double>(5, 'videoConfidenceThreshold', $pb.PbFieldType.OF) ..hasRequiredFields = false; LabelDetectionConfig() : super(); @@ -230,6 +256,22 @@ class LabelDetectionConfig extends $pb.GeneratedMessage { $core.bool hasModel() => $_has(2); void clearModel() => clearField(3); + + $core.double get frameConfidenceThreshold => $_getN(3); + set frameConfidenceThreshold($core.double v) { + $_setFloat(3, v); + } + + $core.bool hasFrameConfidenceThreshold() => $_has(3); + void clearFrameConfidenceThreshold() => clearField(4); + + $core.double get videoConfidenceThreshold => $_getN(4); + set videoConfidenceThreshold($core.double v) { + $_setFloat(4, v); + } + + $core.bool hasVideoConfidenceThreshold() => $_has(4); + void clearVideoConfidenceThreshold() => clearField(5); } class ShotChangeDetectionConfig extends $pb.GeneratedMessage { @@ -270,6 +312,42 @@ class ShotChangeDetectionConfig extends $pb.GeneratedMessage { void clearModel() => clearField(1); } +class ObjectTrackingConfig extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo('ObjectTrackingConfig', + package: + const $pb.PackageName('google.cloud.videointelligence.v1p3beta1')) + ..aOS(1, 'model') + ..hasRequiredFields = false; + + ObjectTrackingConfig() : super(); + ObjectTrackingConfig.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromBuffer(i, r); + ObjectTrackingConfig.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromJson(i, r); + ObjectTrackingConfig clone() => + ObjectTrackingConfig()..mergeFromMessage(this); + ObjectTrackingConfig copyWith(void Function(ObjectTrackingConfig) updates) => + super.copyWith((message) => updates(message as ObjectTrackingConfig)); + $pb.BuilderInfo get info_ => _i; + static ObjectTrackingConfig create() => ObjectTrackingConfig(); + ObjectTrackingConfig createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + static ObjectTrackingConfig getDefault() => + _defaultInstance ??= create()..freeze(); + static ObjectTrackingConfig _defaultInstance; + + $core.String get model => $_getS(0, ''); + set model($core.String v) { + $_setString(0, v); + } + + $core.bool hasModel() => $_has(0); + void clearModel() => clearField(1); +} + class ExplicitContentDetectionConfig extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo( 'ExplicitContentDetectionConfig', @@ -315,6 +393,7 @@ class TextDetectionConfig extends $pb.GeneratedMessage { package: const $pb.PackageName('google.cloud.videointelligence.v1p3beta1')) ..pPS(1, 'languageHints') + ..aOS(2, 'model') ..hasRequiredFields = false; TextDetectionConfig() : super(); @@ -337,6 +416,14 @@ class TextDetectionConfig extends $pb.GeneratedMessage { static TextDetectionConfig _defaultInstance; $core.List<$core.String> get languageHints => $_getList(0); + + $core.String get model => $_getS(1, ''); + set model($core.String v) { + $_setString(1, v); + } + + $core.bool hasModel() => $_has(1); + void clearModel() => clearField(2); } class VideoSegment extends $pb.GeneratedMessage { @@ -716,6 +803,160 @@ class NormalizedBoundingBox extends $pb.GeneratedMessage { void clearBottom() => clearField(4); } +class TimestampedObject extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo('TimestampedObject', + package: + const $pb.PackageName('google.cloud.videointelligence.v1p3beta1')) + ..a(1, 'normalizedBoundingBox', $pb.PbFieldType.OM, + NormalizedBoundingBox.getDefault, NormalizedBoundingBox.create) + ..a<$2.Duration>(2, 'timeOffset', $pb.PbFieldType.OM, + $2.Duration.getDefault, $2.Duration.create) + ..pc( + 3, 'attributes', $pb.PbFieldType.PM, DetectedAttribute.create) + ..hasRequiredFields = false; + + TimestampedObject() : super(); + TimestampedObject.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromBuffer(i, r); + TimestampedObject.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromJson(i, r); + TimestampedObject clone() => TimestampedObject()..mergeFromMessage(this); + TimestampedObject copyWith(void Function(TimestampedObject) updates) => + super.copyWith((message) => updates(message as TimestampedObject)); + $pb.BuilderInfo get info_ => _i; + static TimestampedObject create() => TimestampedObject(); + TimestampedObject createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + static TimestampedObject getDefault() => + _defaultInstance ??= create()..freeze(); + static TimestampedObject _defaultInstance; + + NormalizedBoundingBox get normalizedBoundingBox => $_getN(0); + set normalizedBoundingBox(NormalizedBoundingBox v) { + setField(1, v); + } + + $core.bool hasNormalizedBoundingBox() => $_has(0); + void clearNormalizedBoundingBox() => clearField(1); + + $2.Duration get timeOffset => $_getN(1); + set timeOffset($2.Duration v) { + setField(2, v); + } + + $core.bool hasTimeOffset() => $_has(1); + void clearTimeOffset() => clearField(2); + + $core.List get attributes => $_getList(2); +} + +class Track extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo('Track', + package: + const $pb.PackageName('google.cloud.videointelligence.v1p3beta1')) + ..a(1, 'segment', $pb.PbFieldType.OM, VideoSegment.getDefault, + VideoSegment.create) + ..pc( + 2, 'timestampedObjects', $pb.PbFieldType.PM, TimestampedObject.create) + ..pc( + 3, 'attributes', $pb.PbFieldType.PM, DetectedAttribute.create) + ..a<$core.double>(4, 'confidence', $pb.PbFieldType.OF) + ..hasRequiredFields = false; + + Track() : super(); + Track.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromBuffer(i, r); + Track.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromJson(i, r); + Track clone() => Track()..mergeFromMessage(this); + Track copyWith(void Function(Track) updates) => + super.copyWith((message) => updates(message as Track)); + $pb.BuilderInfo get info_ => _i; + static Track create() => Track(); + Track createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + static Track getDefault() => _defaultInstance ??= create()..freeze(); + static Track _defaultInstance; + + VideoSegment get segment => $_getN(0); + set segment(VideoSegment v) { + setField(1, v); + } + + $core.bool hasSegment() => $_has(0); + void clearSegment() => clearField(1); + + $core.List get timestampedObjects => $_getList(1); + + $core.List get attributes => $_getList(2); + + $core.double get confidence => $_getN(3); + set confidence($core.double v) { + $_setFloat(3, v); + } + + $core.bool hasConfidence() => $_has(3); + void clearConfidence() => clearField(4); +} + +class DetectedAttribute extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo('DetectedAttribute', + package: + const $pb.PackageName('google.cloud.videointelligence.v1p3beta1')) + ..aOS(1, 'name') + ..a<$core.double>(2, 'confidence', $pb.PbFieldType.OF) + ..aOS(3, 'value') + ..hasRequiredFields = false; + + DetectedAttribute() : super(); + DetectedAttribute.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromBuffer(i, r); + DetectedAttribute.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromJson(i, r); + DetectedAttribute clone() => DetectedAttribute()..mergeFromMessage(this); + DetectedAttribute copyWith(void Function(DetectedAttribute) updates) => + super.copyWith((message) => updates(message as DetectedAttribute)); + $pb.BuilderInfo get info_ => _i; + static DetectedAttribute create() => DetectedAttribute(); + DetectedAttribute createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + static DetectedAttribute getDefault() => + _defaultInstance ??= create()..freeze(); + static DetectedAttribute _defaultInstance; + + $core.String get name => $_getS(0, ''); + set name($core.String v) { + $_setString(0, v); + } + + $core.bool hasName() => $_has(0); + void clearName() => clearField(1); + + $core.double get confidence => $_getN(1); + set confidence($core.double v) { + $_setFloat(1, v); + } + + $core.bool hasConfidence() => $_has(1); + void clearConfidence() => clearField(2); + + $core.String get value => $_getS(2, ''); + set value($core.String v) { + $_setString(2, v); + } + + $core.bool hasValue() => $_has(2); + void clearValue() => clearField(3); +} + class VideoAnnotationResults extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo('VideoAnnotationResults', package: @@ -733,10 +974,14 @@ class VideoAnnotationResults extends $pb.GeneratedMessage { ExplicitContentAnnotation.getDefault, ExplicitContentAnnotation.create) ..a<$3.Status>( 9, 'error', $pb.PbFieldType.OM, $3.Status.getDefault, $3.Status.create) + ..pc(11, 'speechTranscriptions', $pb.PbFieldType.PM, + SpeechTranscription.create) ..pc( 12, 'textAnnotations', $pb.PbFieldType.PM, TextAnnotation.create) ..pc(14, 'objectAnnotations', $pb.PbFieldType.PM, ObjectTrackingAnnotation.create) + ..pc(19, 'logoRecognitionAnnotations', + $pb.PbFieldType.PM, LogoRecognitionAnnotation.create) ..hasRequiredFields = false; VideoAnnotationResults() : super(); @@ -792,9 +1037,14 @@ class VideoAnnotationResults extends $pb.GeneratedMessage { $core.bool hasError() => $_has(6); void clearError() => clearField(9); - $core.List get textAnnotations => $_getList(7); + $core.List get speechTranscriptions => $_getList(7); + + $core.List get textAnnotations => $_getList(8); - $core.List get objectAnnotations => $_getList(8); + $core.List get objectAnnotations => $_getList(9); + + $core.List get logoRecognitionAnnotations => + $_getList(10); } class AnnotateVideoResponse extends $pb.GeneratedMessage { @@ -927,6 +1177,295 @@ class AnnotateVideoProgress extends $pb.GeneratedMessage { $core.List get annotationProgress => $_getList(0); } +class SpeechTranscriptionConfig extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo('SpeechTranscriptionConfig', + package: + const $pb.PackageName('google.cloud.videointelligence.v1p3beta1')) + ..aOS(1, 'languageCode') + ..a<$core.int>(2, 'maxAlternatives', $pb.PbFieldType.O3) + ..aOB(3, 'filterProfanity') + ..pc( + 4, 'speechContexts', $pb.PbFieldType.PM, SpeechContext.create) + ..aOB(5, 'enableAutomaticPunctuation') + ..p<$core.int>(6, 'audioTracks', $pb.PbFieldType.P3) + ..aOB(7, 'enableSpeakerDiarization') + ..a<$core.int>(8, 'diarizationSpeakerCount', $pb.PbFieldType.O3) + ..aOB(9, 'enableWordConfidence') + ..hasRequiredFields = false; + + SpeechTranscriptionConfig() : super(); + SpeechTranscriptionConfig.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromBuffer(i, r); + SpeechTranscriptionConfig.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromJson(i, r); + SpeechTranscriptionConfig clone() => + SpeechTranscriptionConfig()..mergeFromMessage(this); + SpeechTranscriptionConfig copyWith( + void Function(SpeechTranscriptionConfig) updates) => + super + .copyWith((message) => updates(message as SpeechTranscriptionConfig)); + $pb.BuilderInfo get info_ => _i; + static SpeechTranscriptionConfig create() => SpeechTranscriptionConfig(); + SpeechTranscriptionConfig createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + static SpeechTranscriptionConfig getDefault() => + _defaultInstance ??= create()..freeze(); + static SpeechTranscriptionConfig _defaultInstance; + + $core.String get languageCode => $_getS(0, ''); + set languageCode($core.String v) { + $_setString(0, v); + } + + $core.bool hasLanguageCode() => $_has(0); + void clearLanguageCode() => clearField(1); + + $core.int get maxAlternatives => $_get(1, 0); + set maxAlternatives($core.int v) { + $_setSignedInt32(1, v); + } + + $core.bool hasMaxAlternatives() => $_has(1); + void clearMaxAlternatives() => clearField(2); + + $core.bool get filterProfanity => $_get(2, false); + set filterProfanity($core.bool v) { + $_setBool(2, v); + } + + $core.bool hasFilterProfanity() => $_has(2); + void clearFilterProfanity() => clearField(3); + + $core.List get speechContexts => $_getList(3); + + $core.bool get enableAutomaticPunctuation => $_get(4, false); + set enableAutomaticPunctuation($core.bool v) { + $_setBool(4, v); + } + + $core.bool hasEnableAutomaticPunctuation() => $_has(4); + void clearEnableAutomaticPunctuation() => clearField(5); + + $core.List<$core.int> get audioTracks => $_getList(5); + + $core.bool get enableSpeakerDiarization => $_get(6, false); + set enableSpeakerDiarization($core.bool v) { + $_setBool(6, v); + } + + $core.bool hasEnableSpeakerDiarization() => $_has(6); + void clearEnableSpeakerDiarization() => clearField(7); + + $core.int get diarizationSpeakerCount => $_get(7, 0); + set diarizationSpeakerCount($core.int v) { + $_setSignedInt32(7, v); + } + + $core.bool hasDiarizationSpeakerCount() => $_has(7); + void clearDiarizationSpeakerCount() => clearField(8); + + $core.bool get enableWordConfidence => $_get(8, false); + set enableWordConfidence($core.bool v) { + $_setBool(8, v); + } + + $core.bool hasEnableWordConfidence() => $_has(8); + void clearEnableWordConfidence() => clearField(9); +} + +class SpeechContext extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo('SpeechContext', + package: + const $pb.PackageName('google.cloud.videointelligence.v1p3beta1')) + ..pPS(1, 'phrases') + ..hasRequiredFields = false; + + SpeechContext() : super(); + SpeechContext.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromBuffer(i, r); + SpeechContext.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromJson(i, r); + SpeechContext clone() => SpeechContext()..mergeFromMessage(this); + SpeechContext copyWith(void Function(SpeechContext) updates) => + super.copyWith((message) => updates(message as SpeechContext)); + $pb.BuilderInfo get info_ => _i; + static SpeechContext create() => SpeechContext(); + SpeechContext createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + static SpeechContext getDefault() => _defaultInstance ??= create()..freeze(); + static SpeechContext _defaultInstance; + + $core.List<$core.String> get phrases => $_getList(0); +} + +class SpeechTranscription extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo('SpeechTranscription', + package: + const $pb.PackageName('google.cloud.videointelligence.v1p3beta1')) + ..pc(1, 'alternatives', $pb.PbFieldType.PM, + SpeechRecognitionAlternative.create) + ..aOS(2, 'languageCode') + ..hasRequiredFields = false; + + SpeechTranscription() : super(); + SpeechTranscription.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromBuffer(i, r); + SpeechTranscription.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromJson(i, r); + SpeechTranscription clone() => SpeechTranscription()..mergeFromMessage(this); + SpeechTranscription copyWith(void Function(SpeechTranscription) updates) => + super.copyWith((message) => updates(message as SpeechTranscription)); + $pb.BuilderInfo get info_ => _i; + static SpeechTranscription create() => SpeechTranscription(); + SpeechTranscription createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + static SpeechTranscription getDefault() => + _defaultInstance ??= create()..freeze(); + static SpeechTranscription _defaultInstance; + + $core.List get alternatives => $_getList(0); + + $core.String get languageCode => $_getS(1, ''); + set languageCode($core.String v) { + $_setString(1, v); + } + + $core.bool hasLanguageCode() => $_has(1); + void clearLanguageCode() => clearField(2); +} + +class SpeechRecognitionAlternative extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + 'SpeechRecognitionAlternative', + package: + const $pb.PackageName('google.cloud.videointelligence.v1p3beta1')) + ..aOS(1, 'transcript') + ..a<$core.double>(2, 'confidence', $pb.PbFieldType.OF) + ..pc(3, 'words', $pb.PbFieldType.PM, WordInfo.create) + ..hasRequiredFields = false; + + SpeechRecognitionAlternative() : super(); + SpeechRecognitionAlternative.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromBuffer(i, r); + SpeechRecognitionAlternative.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromJson(i, r); + SpeechRecognitionAlternative clone() => + SpeechRecognitionAlternative()..mergeFromMessage(this); + SpeechRecognitionAlternative copyWith( + void Function(SpeechRecognitionAlternative) updates) => + super.copyWith( + (message) => updates(message as SpeechRecognitionAlternative)); + $pb.BuilderInfo get info_ => _i; + static SpeechRecognitionAlternative create() => + SpeechRecognitionAlternative(); + SpeechRecognitionAlternative createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + static SpeechRecognitionAlternative getDefault() => + _defaultInstance ??= create()..freeze(); + static SpeechRecognitionAlternative _defaultInstance; + + $core.String get transcript => $_getS(0, ''); + set transcript($core.String v) { + $_setString(0, v); + } + + $core.bool hasTranscript() => $_has(0); + void clearTranscript() => clearField(1); + + $core.double get confidence => $_getN(1); + set confidence($core.double v) { + $_setFloat(1, v); + } + + $core.bool hasConfidence() => $_has(1); + void clearConfidence() => clearField(2); + + $core.List get words => $_getList(2); +} + +class WordInfo extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo('WordInfo', + package: + const $pb.PackageName('google.cloud.videointelligence.v1p3beta1')) + ..a<$2.Duration>(1, 'startTime', $pb.PbFieldType.OM, $2.Duration.getDefault, + $2.Duration.create) + ..a<$2.Duration>(2, 'endTime', $pb.PbFieldType.OM, $2.Duration.getDefault, + $2.Duration.create) + ..aOS(3, 'word') + ..a<$core.double>(4, 'confidence', $pb.PbFieldType.OF) + ..a<$core.int>(5, 'speakerTag', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + + WordInfo() : super(); + WordInfo.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromBuffer(i, r); + WordInfo.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromJson(i, r); + WordInfo clone() => WordInfo()..mergeFromMessage(this); + WordInfo copyWith(void Function(WordInfo) updates) => + super.copyWith((message) => updates(message as WordInfo)); + $pb.BuilderInfo get info_ => _i; + static WordInfo create() => WordInfo(); + WordInfo createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + static WordInfo getDefault() => _defaultInstance ??= create()..freeze(); + static WordInfo _defaultInstance; + + $2.Duration get startTime => $_getN(0); + set startTime($2.Duration v) { + setField(1, v); + } + + $core.bool hasStartTime() => $_has(0); + void clearStartTime() => clearField(1); + + $2.Duration get endTime => $_getN(1); + set endTime($2.Duration v) { + setField(2, v); + } + + $core.bool hasEndTime() => $_has(1); + void clearEndTime() => clearField(2); + + $core.String get word => $_getS(2, ''); + set word($core.String v) { + $_setString(2, v); + } + + $core.bool hasWord() => $_has(2); + void clearWord() => clearField(3); + + $core.double get confidence => $_getN(3); + set confidence($core.double v) { + $_setFloat(3, v); + } + + $core.bool hasConfidence() => $_has(3); + void clearConfidence() => clearField(4); + + $core.int get speakerTag => $_get(4, 0); + set speakerTag($core.int v) { + $_setSignedInt32(4, v); + } + + $core.bool hasSpeakerTag() => $_has(4); + void clearSpeakerTag() => clearField(5); +} + class NormalizedVertex extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo('NormalizedVertex', package: @@ -1259,6 +1798,51 @@ class ObjectTrackingAnnotation extends $pb.GeneratedMessage { void clearTrackId() => clearField(5); } +class LogoRecognitionAnnotation extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo('LogoRecognitionAnnotation', + package: + const $pb.PackageName('google.cloud.videointelligence.v1p3beta1')) + ..a( + 1, 'entity', $pb.PbFieldType.OM, Entity.getDefault, Entity.create) + ..pc(2, 'tracks', $pb.PbFieldType.PM, Track.create) + ..pc(3, 'segments', $pb.PbFieldType.PM, VideoSegment.create) + ..hasRequiredFields = false; + + LogoRecognitionAnnotation() : super(); + LogoRecognitionAnnotation.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromBuffer(i, r); + LogoRecognitionAnnotation.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromJson(i, r); + LogoRecognitionAnnotation clone() => + LogoRecognitionAnnotation()..mergeFromMessage(this); + LogoRecognitionAnnotation copyWith( + void Function(LogoRecognitionAnnotation) updates) => + super + .copyWith((message) => updates(message as LogoRecognitionAnnotation)); + $pb.BuilderInfo get info_ => _i; + static LogoRecognitionAnnotation create() => LogoRecognitionAnnotation(); + LogoRecognitionAnnotation createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + static LogoRecognitionAnnotation getDefault() => + _defaultInstance ??= create()..freeze(); + static LogoRecognitionAnnotation _defaultInstance; + + Entity get entity => $_getN(0); + set entity(Entity v) { + setField(1, v); + } + + $core.bool hasEntity() => $_has(0); + void clearEntity() => clearField(1); + + $core.List get tracks => $_getList(1); + + $core.List get segments => $_getList(2); +} + enum StreamingAnnotateVideoRequest_StreamingRequest { videoConfig, inputContent, diff --git a/lib/src/grpc_api/dart/google/cloud/videointelligence/v1p3beta1/video_intelligence.pbenum.dart b/lib/src/grpc_api/dart/google/cloud/videointelligence/v1p3beta1/video_intelligence.pbenum.dart index c48ff261..4ae3956c 100644 --- a/lib/src/grpc_api/dart/google/cloud/videointelligence/v1p3beta1/video_intelligence.pbenum.dart +++ b/lib/src/grpc_api/dart/google/cloud/videointelligence/v1p3beta1/video_intelligence.pbenum.dart @@ -16,16 +16,21 @@ class Feature extends $pb.ProtobufEnum { Feature._(2, 'SHOT_CHANGE_DETECTION'); static const Feature EXPLICIT_CONTENT_DETECTION = Feature._(3, 'EXPLICIT_CONTENT_DETECTION'); + static const Feature SPEECH_TRANSCRIPTION = + Feature._(6, 'SPEECH_TRANSCRIPTION'); static const Feature TEXT_DETECTION = Feature._(7, 'TEXT_DETECTION'); static const Feature OBJECT_TRACKING = Feature._(9, 'OBJECT_TRACKING'); + static const Feature LOGO_RECOGNITION = Feature._(12, 'LOGO_RECOGNITION'); static const $core.List values = [ FEATURE_UNSPECIFIED, LABEL_DETECTION, SHOT_CHANGE_DETECTION, EXPLICIT_CONTENT_DETECTION, + SPEECH_TRANSCRIPTION, TEXT_DETECTION, OBJECT_TRACKING, + LOGO_RECOGNITION, ]; static final $core.Map<$core.int, Feature> _byValue = diff --git a/lib/src/grpc_api/dart/google/cloud/videointelligence/v1p3beta1/video_intelligence.pbjson.dart b/lib/src/grpc_api/dart/google/cloud/videointelligence/v1p3beta1/video_intelligence.pbjson.dart index 6a4dfdd6..f9af3b75 100644 --- a/lib/src/grpc_api/dart/google/cloud/videointelligence/v1p3beta1/video_intelligence.pbjson.dart +++ b/lib/src/grpc_api/dart/google/cloud/videointelligence/v1p3beta1/video_intelligence.pbjson.dart @@ -11,8 +11,10 @@ const Feature$json = { {'1': 'LABEL_DETECTION', '2': 1}, {'1': 'SHOT_CHANGE_DETECTION', '2': 2}, {'1': 'EXPLICIT_CONTENT_DETECTION', '2': 3}, + {'1': 'SPEECH_TRANSCRIPTION', '2': 6}, {'1': 'TEXT_DETECTION', '2': 7}, {'1': 'OBJECT_TRACKING', '2': 9}, + {'1': 'LOGO_RECOGNITION', '2': 12}, ], }; @@ -112,6 +114,15 @@ const VideoContext$json = { '.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig', '10': 'explicitContentDetectionConfig' }, + { + '1': 'speech_transcription_config', + '3': 6, + '4': 1, + '5': 11, + '6': + '.google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig', + '10': 'speechTranscriptionConfig' + }, { '1': 'text_detection_config', '3': 8, @@ -120,6 +131,14 @@ const VideoContext$json = { '6': '.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig', '10': 'textDetectionConfig' }, + { + '1': 'object_tracking_config', + '3': 13, + '4': 1, + '5': 11, + '6': '.google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig', + '10': 'objectTrackingConfig' + }, ], }; @@ -142,6 +161,20 @@ const LabelDetectionConfig$json = { '10': 'stationaryCamera' }, {'1': 'model', '3': 3, '4': 1, '5': 9, '10': 'model'}, + { + '1': 'frame_confidence_threshold', + '3': 4, + '4': 1, + '5': 2, + '10': 'frameConfidenceThreshold' + }, + { + '1': 'video_confidence_threshold', + '3': 5, + '4': 1, + '5': 2, + '10': 'videoConfidenceThreshold' + }, ], }; @@ -152,6 +185,13 @@ const ShotChangeDetectionConfig$json = { ], }; +const ObjectTrackingConfig$json = { + '1': 'ObjectTrackingConfig', + '2': [ + {'1': 'model', '3': 1, '4': 1, '5': 9, '10': 'model'}, + ], +}; + const ExplicitContentDetectionConfig$json = { '1': 'ExplicitContentDetectionConfig', '2': [ @@ -163,6 +203,7 @@ const TextDetectionConfig$json = { '1': 'TextDetectionConfig', '2': [ {'1': 'language_hints', '3': 1, '4': 3, '5': 9, '10': 'languageHints'}, + {'1': 'model', '3': 2, '4': 1, '5': 9, '10': 'model'}, ], }; @@ -311,6 +352,76 @@ const NormalizedBoundingBox$json = { ], }; +const TimestampedObject$json = { + '1': 'TimestampedObject', + '2': [ + { + '1': 'normalized_bounding_box', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox', + '10': 'normalizedBoundingBox' + }, + { + '1': 'time_offset', + '3': 2, + '4': 1, + '5': 11, + '6': '.google.protobuf.Duration', + '10': 'timeOffset' + }, + { + '1': 'attributes', + '3': 3, + '4': 3, + '5': 11, + '6': '.google.cloud.videointelligence.v1p3beta1.DetectedAttribute', + '10': 'attributes' + }, + ], +}; + +const Track$json = { + '1': 'Track', + '2': [ + { + '1': 'segment', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.cloud.videointelligence.v1p3beta1.VideoSegment', + '10': 'segment' + }, + { + '1': 'timestamped_objects', + '3': 2, + '4': 3, + '5': 11, + '6': '.google.cloud.videointelligence.v1p3beta1.TimestampedObject', + '10': 'timestampedObjects' + }, + { + '1': 'attributes', + '3': 3, + '4': 3, + '5': 11, + '6': '.google.cloud.videointelligence.v1p3beta1.DetectedAttribute', + '10': 'attributes' + }, + {'1': 'confidence', '3': 4, '4': 1, '5': 2, '10': 'confidence'}, + ], +}; + +const DetectedAttribute$json = { + '1': 'DetectedAttribute', + '2': [ + {'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'}, + {'1': 'confidence', '3': 2, '4': 1, '5': 2, '10': 'confidence'}, + {'1': 'value', '3': 3, '4': 1, '5': 9, '10': 'value'}, + ], +}; + const VideoAnnotationResults$json = { '1': 'VideoAnnotationResults', '2': [ @@ -356,6 +467,14 @@ const VideoAnnotationResults$json = { '.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation', '10': 'explicitAnnotation' }, + { + '1': 'speech_transcriptions', + '3': 11, + '4': 3, + '5': 11, + '6': '.google.cloud.videointelligence.v1p3beta1.SpeechTranscription', + '10': 'speechTranscriptions' + }, { '1': 'text_annotations', '3': 12, @@ -372,6 +491,15 @@ const VideoAnnotationResults$json = { '6': '.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation', '10': 'objectAnnotations' }, + { + '1': 'logo_recognition_annotations', + '3': 19, + '4': 3, + '5': 11, + '6': + '.google.cloud.videointelligence.v1p3beta1.LogoRecognitionAnnotation', + '10': 'logoRecognitionAnnotations' + }, { '1': 'error', '3': 9, @@ -435,6 +563,116 @@ const AnnotateVideoProgress$json = { ], }; +const SpeechTranscriptionConfig$json = { + '1': 'SpeechTranscriptionConfig', + '2': [ + {'1': 'language_code', '3': 1, '4': 1, '5': 9, '10': 'languageCode'}, + {'1': 'max_alternatives', '3': 2, '4': 1, '5': 5, '10': 'maxAlternatives'}, + {'1': 'filter_profanity', '3': 3, '4': 1, '5': 8, '10': 'filterProfanity'}, + { + '1': 'speech_contexts', + '3': 4, + '4': 3, + '5': 11, + '6': '.google.cloud.videointelligence.v1p3beta1.SpeechContext', + '10': 'speechContexts' + }, + { + '1': 'enable_automatic_punctuation', + '3': 5, + '4': 1, + '5': 8, + '10': 'enableAutomaticPunctuation' + }, + {'1': 'audio_tracks', '3': 6, '4': 3, '5': 5, '10': 'audioTracks'}, + { + '1': 'enable_speaker_diarization', + '3': 7, + '4': 1, + '5': 8, + '10': 'enableSpeakerDiarization' + }, + { + '1': 'diarization_speaker_count', + '3': 8, + '4': 1, + '5': 5, + '10': 'diarizationSpeakerCount' + }, + { + '1': 'enable_word_confidence', + '3': 9, + '4': 1, + '5': 8, + '10': 'enableWordConfidence' + }, + ], +}; + +const SpeechContext$json = { + '1': 'SpeechContext', + '2': [ + {'1': 'phrases', '3': 1, '4': 3, '5': 9, '10': 'phrases'}, + ], +}; + +const SpeechTranscription$json = { + '1': 'SpeechTranscription', + '2': [ + { + '1': 'alternatives', + '3': 1, + '4': 3, + '5': 11, + '6': + '.google.cloud.videointelligence.v1p3beta1.SpeechRecognitionAlternative', + '10': 'alternatives' + }, + {'1': 'language_code', '3': 2, '4': 1, '5': 9, '10': 'languageCode'}, + ], +}; + +const SpeechRecognitionAlternative$json = { + '1': 'SpeechRecognitionAlternative', + '2': [ + {'1': 'transcript', '3': 1, '4': 1, '5': 9, '10': 'transcript'}, + {'1': 'confidence', '3': 2, '4': 1, '5': 2, '10': 'confidence'}, + { + '1': 'words', + '3': 3, + '4': 3, + '5': 11, + '6': '.google.cloud.videointelligence.v1p3beta1.WordInfo', + '10': 'words' + }, + ], +}; + +const WordInfo$json = { + '1': 'WordInfo', + '2': [ + { + '1': 'start_time', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.protobuf.Duration', + '10': 'startTime' + }, + { + '1': 'end_time', + '3': 2, + '4': 1, + '5': 11, + '6': '.google.protobuf.Duration', + '10': 'endTime' + }, + {'1': 'word', '3': 3, '4': 1, '5': 9, '10': 'word'}, + {'1': 'confidence', '3': 4, '4': 1, '5': 2, '10': 'confidence'}, + {'1': 'speaker_tag', '3': 5, '4': 1, '5': 5, '10': 'speakerTag'}, + ], +}; + const NormalizedVertex$json = { '1': 'NormalizedVertex', '2': [ @@ -575,6 +813,36 @@ const ObjectTrackingAnnotation$json = { ], }; +const LogoRecognitionAnnotation$json = { + '1': 'LogoRecognitionAnnotation', + '2': [ + { + '1': 'entity', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.cloud.videointelligence.v1p3beta1.Entity', + '10': 'entity' + }, + { + '1': 'tracks', + '3': 2, + '4': 3, + '5': 11, + '6': '.google.cloud.videointelligence.v1p3beta1.Track', + '10': 'tracks' + }, + { + '1': 'segments', + '3': 3, + '4': 3, + '5': 11, + '6': '.google.cloud.videointelligence.v1p3beta1.VideoSegment', + '10': 'segments' + }, + ], +}; + const StreamingAnnotateVideoRequest$json = { '1': 'StreamingAnnotateVideoRequest', '2': [ diff --git a/lib/src/grpc_api/dart/google/home/graph/v1/device.pb.dart b/lib/src/grpc_api/dart/google/home/graph/v1/device.pb.dart index b15a7611..3d5e8282 100644 --- a/lib/src/grpc_api/dart/google/home/graph/v1/device.pb.dart +++ b/lib/src/grpc_api/dart/google/home/graph/v1/device.pb.dart @@ -27,6 +27,8 @@ class Device extends $pb.GeneratedMessage { ..a<$0.Struct>(9, 'attributes', $pb.PbFieldType.OM, $0.Struct.getDefault, $0.Struct.create) ..aOS(10, 'customData') + ..pc( + 11, 'otherDeviceIds', $pb.PbFieldType.PM, AgentOtherDeviceId.create) ..hasRequiredFields = false; Device() : super(); @@ -119,6 +121,8 @@ class Device extends $pb.GeneratedMessage { $core.bool hasCustomData() => $_has(9); void clearCustomData() => clearField(10); + + $core.List get otherDeviceIds => $_getList(10); } class DeviceNames extends $pb.GeneratedMessage { @@ -217,3 +221,46 @@ class DeviceInfo extends $pb.GeneratedMessage { $core.bool hasSwVersion() => $_has(3); void clearSwVersion() => clearField(4); } + +class AgentOtherDeviceId extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo('AgentOtherDeviceId', + package: const $pb.PackageName('google.home.graph.v1')) + ..aOS(1, 'agentId') + ..aOS(2, 'deviceId') + ..hasRequiredFields = false; + + AgentOtherDeviceId() : super(); + AgentOtherDeviceId.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromBuffer(i, r); + AgentOtherDeviceId.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromJson(i, r); + AgentOtherDeviceId clone() => AgentOtherDeviceId()..mergeFromMessage(this); + AgentOtherDeviceId copyWith(void Function(AgentOtherDeviceId) updates) => + super.copyWith((message) => updates(message as AgentOtherDeviceId)); + $pb.BuilderInfo get info_ => _i; + static AgentOtherDeviceId create() => AgentOtherDeviceId(); + AgentOtherDeviceId createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + static AgentOtherDeviceId getDefault() => + _defaultInstance ??= create()..freeze(); + static AgentOtherDeviceId _defaultInstance; + + $core.String get agentId => $_getS(0, ''); + set agentId($core.String v) { + $_setString(0, v); + } + + $core.bool hasAgentId() => $_has(0); + void clearAgentId() => clearField(1); + + $core.String get deviceId => $_getS(1, ''); + set deviceId($core.String v) { + $_setString(1, v); + } + + $core.bool hasDeviceId() => $_has(1); + void clearDeviceId() => clearField(2); +} diff --git a/lib/src/grpc_api/dart/google/home/graph/v1/device.pbjson.dart b/lib/src/grpc_api/dart/google/home/graph/v1/device.pbjson.dart index ad89c1ff..2ba2653d 100644 --- a/lib/src/grpc_api/dart/google/home/graph/v1/device.pbjson.dart +++ b/lib/src/grpc_api/dart/google/home/graph/v1/device.pbjson.dart @@ -38,6 +38,14 @@ const Device$json = { '10': 'attributes' }, {'1': 'custom_data', '3': 10, '4': 1, '5': 9, '10': 'customData'}, + { + '1': 'other_device_ids', + '3': 11, + '4': 3, + '5': 11, + '6': '.google.home.graph.v1.AgentOtherDeviceId', + '10': 'otherDeviceIds' + }, ], }; @@ -59,3 +67,11 @@ const DeviceInfo$json = { {'1': 'sw_version', '3': 4, '4': 1, '5': 9, '10': 'swVersion'}, ], }; + +const AgentOtherDeviceId$json = { + '1': 'AgentOtherDeviceId', + '2': [ + {'1': 'agent_id', '3': 1, '4': 1, '5': 9, '10': 'agentId'}, + {'1': 'device_id', '3': 2, '4': 1, '5': 9, '10': 'deviceId'}, + ], +}; diff --git a/lib/src/grpc_api/dart/google/privacy/dlp/v2/dlp.pb.dart b/lib/src/grpc_api/dart/google/privacy/dlp/v2/dlp.pb.dart index 585cce99..217f6a6b 100644 --- a/lib/src/grpc_api/dart/google/privacy/dlp/v2/dlp.pb.dart +++ b/lib/src/grpc_api/dart/google/privacy/dlp/v2/dlp.pb.dart @@ -8285,6 +8285,44 @@ class LargeCustomDictionaryConfig extends $pb.GeneratedMessage { void clearBigQueryField() => clearField(3); } +class LargeCustomDictionaryStats extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + 'LargeCustomDictionaryStats', + package: const $pb.PackageName('google.privacy.dlp.v2')) + ..aInt64(1, 'approxNumPhrases') + ..hasRequiredFields = false; + + LargeCustomDictionaryStats() : super(); + LargeCustomDictionaryStats.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromBuffer(i, r); + LargeCustomDictionaryStats.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromJson(i, r); + LargeCustomDictionaryStats clone() => + LargeCustomDictionaryStats()..mergeFromMessage(this); + LargeCustomDictionaryStats copyWith( + void Function(LargeCustomDictionaryStats) updates) => + super.copyWith( + (message) => updates(message as LargeCustomDictionaryStats)); + $pb.BuilderInfo get info_ => _i; + static LargeCustomDictionaryStats create() => LargeCustomDictionaryStats(); + LargeCustomDictionaryStats createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + static LargeCustomDictionaryStats getDefault() => + _defaultInstance ??= create()..freeze(); + static LargeCustomDictionaryStats _defaultInstance; + + Int64 get approxNumPhrases => $_getI64(0); + set approxNumPhrases(Int64 v) { + $_setInt64(0, v); + } + + $core.bool hasApproxNumPhrases() => $_has(0); + void clearApproxNumPhrases() => clearField(1); +} + enum StoredInfoTypeConfig_Type { largeCustomDictionary, notSet } class StoredInfoTypeConfig extends $pb.GeneratedMessage { @@ -8355,6 +8393,57 @@ class StoredInfoTypeConfig extends $pb.GeneratedMessage { void clearLargeCustomDictionary() => clearField(3); } +enum StoredInfoTypeStats_Type { largeCustomDictionary, notSet } + +class StoredInfoTypeStats extends $pb.GeneratedMessage { + static const $core.Map<$core.int, StoredInfoTypeStats_Type> + _StoredInfoTypeStats_TypeByTag = { + 1: StoredInfoTypeStats_Type.largeCustomDictionary, + 0: StoredInfoTypeStats_Type.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo('StoredInfoTypeStats', + package: const $pb.PackageName('google.privacy.dlp.v2')) + ..a( + 1, + 'largeCustomDictionary', + $pb.PbFieldType.OM, + LargeCustomDictionaryStats.getDefault, + LargeCustomDictionaryStats.create) + ..oo(0, [1]) + ..hasRequiredFields = false; + + StoredInfoTypeStats() : super(); + StoredInfoTypeStats.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromBuffer(i, r); + StoredInfoTypeStats.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) + : super.fromJson(i, r); + StoredInfoTypeStats clone() => StoredInfoTypeStats()..mergeFromMessage(this); + StoredInfoTypeStats copyWith(void Function(StoredInfoTypeStats) updates) => + super.copyWith((message) => updates(message as StoredInfoTypeStats)); + $pb.BuilderInfo get info_ => _i; + static StoredInfoTypeStats create() => StoredInfoTypeStats(); + StoredInfoTypeStats createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + static StoredInfoTypeStats getDefault() => + _defaultInstance ??= create()..freeze(); + static StoredInfoTypeStats _defaultInstance; + + StoredInfoTypeStats_Type whichType() => + _StoredInfoTypeStats_TypeByTag[$_whichOneof(0)]; + void clearType() => clearField($_whichOneof(0)); + + LargeCustomDictionaryStats get largeCustomDictionary => $_getN(0); + set largeCustomDictionary(LargeCustomDictionaryStats v) { + setField(1, v); + } + + $core.bool hasLargeCustomDictionary() => $_has(0); + void clearLargeCustomDictionary() => clearField(1); +} + class StoredInfoTypeVersion extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo('StoredInfoTypeVersion', package: const $pb.PackageName('google.privacy.dlp.v2')) @@ -8370,6 +8459,8 @@ class StoredInfoTypeVersion extends $pb.GeneratedMessage { StoredInfoTypeState.valueOf, StoredInfoTypeState.values) ..pc(4, 'errors', $pb.PbFieldType.PM, Error.create) + ..a(5, 'stats', $pb.PbFieldType.OM, + StoredInfoTypeStats.getDefault, StoredInfoTypeStats.create) ..hasRequiredFields = false; StoredInfoTypeVersion() : super(); @@ -8418,6 +8509,14 @@ class StoredInfoTypeVersion extends $pb.GeneratedMessage { void clearState() => clearField(3); $core.List get errors => $_getList(3); + + StoredInfoTypeStats get stats => $_getN(4); + set stats(StoredInfoTypeStats v) { + setField(5, v); + } + + $core.bool hasStats() => $_has(4); + void clearStats() => clearField(5); } class StoredInfoType extends $pb.GeneratedMessage { diff --git a/lib/src/grpc_api/dart/google/privacy/dlp/v2/dlp.pbjson.dart b/lib/src/grpc_api/dart/google/privacy/dlp/v2/dlp.pbjson.dart index ea8463f9..3a5ba773 100644 --- a/lib/src/grpc_api/dart/google/privacy/dlp/v2/dlp.pbjson.dart +++ b/lib/src/grpc_api/dart/google/privacy/dlp/v2/dlp.pbjson.dart @@ -3657,6 +3657,19 @@ const LargeCustomDictionaryConfig$json = { ], }; +const LargeCustomDictionaryStats$json = { + '1': 'LargeCustomDictionaryStats', + '2': [ + { + '1': 'approx_num_phrases', + '3': 1, + '4': 1, + '5': 3, + '10': 'approxNumPhrases' + }, + ], +}; + const StoredInfoTypeConfig$json = { '1': 'StoredInfoTypeConfig', '2': [ @@ -3677,6 +3690,24 @@ const StoredInfoTypeConfig$json = { ], }; +const StoredInfoTypeStats$json = { + '1': 'StoredInfoTypeStats', + '2': [ + { + '1': 'large_custom_dictionary', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.privacy.dlp.v2.LargeCustomDictionaryStats', + '9': 0, + '10': 'largeCustomDictionary' + }, + ], + '8': [ + {'1': 'type'}, + ], +}; + const StoredInfoTypeVersion$json = { '1': 'StoredInfoTypeVersion', '2': [ @@ -3712,6 +3743,14 @@ const StoredInfoTypeVersion$json = { '6': '.google.privacy.dlp.v2.Error', '10': 'errors' }, + { + '1': 'stats', + '3': 5, + '4': 1, + '5': 11, + '6': '.google.privacy.dlp.v2.StoredInfoTypeStats', + '10': 'stats' + }, ], }; diff --git a/lib/src/grpc_api/fetch_protos_and_generate_dart.sh b/lib/src/grpc_api/fetch_protos_and_generate_dart.sh index 068fff39..8b6f4028 100755 --- a/lib/src/grpc_api/fetch_protos_and_generate_dart.sh +++ b/lib/src/grpc_api/fetch_protos_and_generate_dart.sh @@ -49,3 +49,5 @@ done run rm -rf $PROTOBUF_DIR run rm -rf $GOOGLEAPIS_DIR + +dartfmt --fix -w $DIR diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/ad_asset.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/ad_asset.proto index 7e43ff9c..0b919064 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/ad_asset.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/ad_asset.proto @@ -18,8 +18,8 @@ syntax = "proto3"; package google.ads.googleads.v1.common; import "google/ads/googleads/v1/enums/served_asset_field_type.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Common"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/common;common"; @@ -41,7 +41,8 @@ message AdTextAsset { // within this field. Multiple assets can be pinned to the same field. An // asset that is unpinned or pinned to a different field will not serve in a // field where some other asset has been pinned. - google.ads.googleads.v1.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType pinned_field = 2; + google.ads.googleads.v1.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType + pinned_field = 2; } // An image asset used inside an ad. diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/ad_type_infos.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/ad_type_infos.proto index ee30f62a..2bf23d5c 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/ad_type_infos.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/ad_type_infos.proto @@ -23,8 +23,8 @@ import "google/ads/googleads/v1/enums/display_ad_format_setting.proto"; import "google/ads/googleads/v1/enums/display_upload_product_type.proto"; import "google/ads/googleads/v1/enums/legacy_app_install_ad_app_store.proto"; import "google/ads/googleads/v1/enums/mime_type.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Common"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/common;common"; @@ -116,7 +116,8 @@ message CallOnlyAdInfo { // The call conversion behavior of this call only ad. It can use its own call // conversion setting, inherit the account level setting, or be disabled. - google.ads.googleads.v1.enums.CallConversionReportingStateEnum.CallConversionReportingState conversion_reporting_state = 10; + google.ads.googleads.v1.enums.CallConversionReportingStateEnum + .CallConversionReportingState conversion_reporting_state = 10; } // An expanded dynamic search ad. @@ -126,19 +127,13 @@ message ExpandedDynamicSearchAdInfo { } // A hotel ad. -message HotelAdInfo { - -} +message HotelAdInfo {} // A Smart Shopping ad. -message ShoppingSmartAdInfo { - -} +message ShoppingSmartAdInfo {} // A standard Shopping ad. -message ShoppingProductAdInfo { - -} +message ShoppingProductAdInfo {} // A Shopping Comparison Listing ad. message ShoppingComparisonListingAdInfo { @@ -279,15 +274,11 @@ message ImageAdInfo { // Representation of video bumper in-stream ad format (very short in-stream // non-skippable video ad). -message VideoBumperInStreamAdInfo { - -} +message VideoBumperInStreamAdInfo {} // Representation of video non-skippable in-stream ad format (15 second // in-stream non-skippable video ad). -message VideoNonSkippableInStreamAdInfo { - -} +message VideoNonSkippableInStreamAdInfo {} // Representation of video TrueView in-stream ad format (ad shown during video // playback, often at beginning, which displays a skip button a few seconds into @@ -413,7 +404,8 @@ message LegacyResponsiveDisplayAdInfo { google.protobuf.StringValue square_marketing_image = 12; // Specifies which format the ad will be served in. Default is ALL_FORMATS. - google.ads.googleads.v1.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting format_setting = 13; + google.ads.googleads.v1.enums.DisplayAdFormatSettingEnum + .DisplayAdFormatSetting format_setting = 13; // Prefix before price. E.g. 'as low as'. google.protobuf.StringValue price_prefix = 14; @@ -473,7 +465,8 @@ message LegacyAppInstallAdInfo { google.protobuf.StringValue app_id = 1; // The app store the mobile app is available in. - google.ads.googleads.v1.enums.LegacyAppInstallAdAppStoreEnum.LegacyAppInstallAdAppStore app_store = 2; + google.ads.googleads.v1.enums.LegacyAppInstallAdAppStoreEnum + .LegacyAppInstallAdAppStore app_store = 2; // The headline of the ad. google.protobuf.StringValue headline = 3; @@ -554,7 +547,8 @@ message ResponsiveDisplayAdInfo { google.protobuf.StringValue promo_text = 15; // Specifies which format the ad will be served in. Default is ALL_FORMATS. - google.ads.googleads.v1.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting format_setting = 16; + google.ads.googleads.v1.enums.DisplayAdFormatSettingEnum + .DisplayAdFormatSetting format_setting = 16; } // A generic type of display ad. The exact ad format is controlled by the @@ -562,7 +556,8 @@ message ResponsiveDisplayAdInfo { // need to be included with the ad. message DisplayUploadAdInfo { // The product type of this ad. See comments on the enum for details. - google.ads.googleads.v1.enums.DisplayUploadProductTypeEnum.DisplayUploadProductType display_upload_product_type = 1; + google.ads.googleads.v1.enums.DisplayUploadProductTypeEnum + .DisplayUploadProductType display_upload_product_type = 1; // The asset data that makes up the ad. oneof media_asset { diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/asset_types.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/asset_types.proto index 30acaae2..7127dfbe 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/asset_types.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/asset_types.proto @@ -18,8 +18,8 @@ syntax = "proto3"; package google.ads.googleads.v1.common; import "google/ads/googleads/v1/enums/mime_type.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Common"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/common;common"; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/bidding.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/bidding.proto index a971119f..d6b9f18f 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/bidding.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/bidding.proto @@ -19,8 +19,8 @@ package google.ads.googleads.v1.common; import "google/ads/googleads/v1/enums/page_one_promoted_strategy_goal.proto"; import "google/ads/googleads/v1/enums/target_impression_share_location.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Common"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/common;common"; @@ -46,9 +46,7 @@ message Commission { // An automated bidding strategy that raises bids for clicks // that seem more likely to lead to a conversion and lowers // them for clicks where they seem less likely. -message EnhancedCpc { - -} +message EnhancedCpc {} // Manual click-based bidding where user pays per click. message ManualCpc { @@ -57,20 +55,14 @@ message ManualCpc { } // Manual impression-based bidding where user pays per thousand impressions. -message ManualCpm { - -} +message ManualCpm {} // View based bidding where user pays per video view. -message ManualCpv { - -} +message ManualCpv {} // An automated bidding strategy that sets bids to help get the most conversions // for your campaign while spending your budget. -message MaximizeConversions { - -} +message MaximizeConversions {} // An automated bidding strategy which tries to maximize conversion value // given a daily budget. @@ -88,7 +80,8 @@ message MaximizeConversionValue { message PageOnePromoted { // The strategy goal of where impressions are desired to be shown on // search result pages. - google.ads.googleads.v1.enums.PageOnePromotedStrategyGoalEnum.PageOnePromotedStrategyGoal strategy_goal = 1; + google.ads.googleads.v1.enums.PageOnePromotedStrategyGoalEnum + .PageOnePromotedStrategyGoal strategy_goal = 1; // Maximum bid limit that can be set by the bid strategy. // The limit applies to all keywords managed by the strategy. @@ -133,9 +126,7 @@ message TargetCpa { // Target CPM (cost per thousand impressions) is an automated bidding strategy // that sets bids to optimize performance given the target CPM you set. -message TargetCpm { - -} +message TargetCpm {} // An automated bidding strategy that sets bids so that a certain percentage of // search ads are shown at the top of the first page (or other targeted @@ -143,7 +134,8 @@ message TargetCpm { // Next Id = 4 message TargetImpressionShare { // The targeted location on the search results page. - google.ads.googleads.v1.enums.TargetImpressionShareLocationEnum.TargetImpressionShareLocation location = 1; + google.ads.googleads.v1.enums.TargetImpressionShareLocationEnum + .TargetImpressionShareLocation location = 1; // The desired fraction of ads to be shown in the targeted location in micros. // E.g. 1% equals 10,000. diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/click_location.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/click_location.proto index 94eb3272..39076fd5 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/click_location.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/click_location.proto @@ -17,8 +17,8 @@ syntax = "proto3"; package google.ads.googleads.v1.common; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Common"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/common;common"; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/criteria.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/criteria.proto index 14181c77..1ae53f31 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/criteria.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/criteria.proto @@ -41,8 +41,8 @@ import "google/ads/googleads/v1/enums/product_type_level.proto"; import "google/ads/googleads/v1/enums/proximity_radius_units.proto"; import "google/ads/googleads/v1/enums/webpage_condition_operand.proto"; import "google/ads/googleads/v1/enums/webpage_condition_operator.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Common"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/common;common"; @@ -61,7 +61,8 @@ message KeywordInfo { google.protobuf.StringValue text = 1; // The match type of the keyword. - google.ads.googleads.v1.enums.KeywordMatchTypeEnum.KeywordMatchType match_type = 2; + google.ads.googleads.v1.enums.KeywordMatchTypeEnum.KeywordMatchType + match_type = 2; } // A placement criterion. This can be used to modify bids for sites when @@ -116,7 +117,8 @@ message DeviceInfo { // A preferred content criterion. message PreferredContentInfo { // Type of the preferred content. - google.ads.googleads.v1.enums.PreferredContentTypeEnum.PreferredContentType type = 2; + google.ads.googleads.v1.enums.PreferredContentTypeEnum.PreferredContentType + type = 2; } // A listing group criterion. @@ -229,7 +231,8 @@ message ListingCustomAttributeInfo { google.protobuf.StringValue value = 1; // Indicates the index of the custom attribute. - google.ads.googleads.v1.enums.ListingCustomAttributeIndexEnum.ListingCustomAttributeIndex index = 2; + google.ads.googleads.v1.enums.ListingCustomAttributeIndexEnum + .ListingCustomAttributeIndex index = 2; } // Bidding category of a product offer. @@ -245,7 +248,8 @@ message ProductBiddingCategoryInfo { google.protobuf.StringValue country_code = 2; // Level of the product bidding category. - google.ads.googleads.v1.enums.ProductBiddingCategoryLevelEnum.ProductBiddingCategoryLevel level = 3; + google.ads.googleads.v1.enums.ProductBiddingCategoryLevelEnum + .ProductBiddingCategoryLevel level = 3; } // Locality of a product offer. @@ -257,13 +261,15 @@ message ProductChannelInfo { // Availability of a product offer. message ProductChannelExclusivityInfo { // Value of the availability. - google.ads.googleads.v1.enums.ProductChannelExclusivityEnum.ProductChannelExclusivity channel_exclusivity = 1; + google.ads.googleads.v1.enums.ProductChannelExclusivityEnum + .ProductChannelExclusivity channel_exclusivity = 1; } // Condition of a product offer. message ProductConditionInfo { // Value of the condition. - google.ads.googleads.v1.enums.ProductConditionEnum.ProductCondition condition = 1; + google.ads.googleads.v1.enums.ProductConditionEnum.ProductCondition + condition = 1; } // Item id of a product offer. @@ -282,14 +288,13 @@ message ProductTypeInfo { } // Unknown listing dimension. -message UnknownListingDimensionInfo { - -} +message UnknownListingDimensionInfo {} // Criterion for hotel date selection (default dates vs. user selected). message HotelDateSelectionTypeInfo { // Type of the hotel date selection - google.ads.googleads.v1.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType type = 1; + google.ads.googleads.v1.enums.HotelDateSelectionTypeEnum + .HotelDateSelectionType type = 1; } // Criterion for number of days prior to the stay the booking is being made. @@ -384,7 +389,8 @@ message IncomeRangeInfo { // A parental status criterion. message ParentalStatusInfo { // Type of the parental status. - google.ads.googleads.v1.enums.ParentalStatusTypeEnum.ParentalStatusType type = 1; + google.ads.googleads.v1.enums.ParentalStatusTypeEnum.ParentalStatusType type = + 1; } // A YouTube Video criterion. @@ -422,7 +428,8 @@ message ProximityInfo { google.protobuf.DoubleValue radius = 2; // The unit of measurement of the radius. Default is KILOMETERS. - google.ads.googleads.v1.enums.ProximityRadiusUnitsEnum.ProximityRadiusUnits radius_units = 3; + google.ads.googleads.v1.enums.ProximityRadiusUnitsEnum.ProximityRadiusUnits + radius_units = 3; // Full address. AddressInfo address = 4; @@ -533,10 +540,13 @@ message WebpageInfo { // Logical expression for targeting webpages of an advertiser's website. message WebpageConditionInfo { // Operand of webpage targeting condition. - google.ads.googleads.v1.enums.WebpageConditionOperandEnum.WebpageConditionOperand operand = 1; + google.ads.googleads.v1.enums.WebpageConditionOperandEnum + .WebpageConditionOperand operand = 1; // Operator of webpage targeting condition. - google.ads.googleads.v1.enums.WebpageConditionOperatorEnum.WebpageConditionOperator operator = 2; + google.ads.googleads.v1.enums.WebpageConditionOperatorEnum + .WebpageConditionOperator + operator = 2; // Argument of webpage targeting condition. google.protobuf.StringValue argument = 3; @@ -551,7 +561,8 @@ message OperatingSystemVersionInfo { // An app payment model criterion. message AppPaymentModelInfo { // Type of the app payment model. - google.ads.googleads.v1.enums.AppPaymentModelTypeEnum.AppPaymentModelType type = 1; + google.ads.googleads.v1.enums.AppPaymentModelTypeEnum.AppPaymentModelType + type = 1; } // A mobile device criterion. @@ -590,5 +601,6 @@ message LocationGroupInfo { // Unit of the radius, miles and meters supported currently. // This is required and must be set in CREATE operations. - google.ads.googleads.v1.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits radius_units = 4; + google.ads.googleads.v1.enums.LocationGroupRadiusUnitsEnum + .LocationGroupRadiusUnits radius_units = 4; } diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/criterion_category_availability.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/criterion_category_availability.proto index 01d353da..1b87d016 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/criterion_category_availability.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/criterion_category_availability.proto @@ -21,8 +21,8 @@ import "google/ads/googleads/v1/enums/advertising_channel_sub_type.proto"; import "google/ads/googleads/v1/enums/advertising_channel_type.proto"; import "google/ads/googleads/v1/enums/criterion_category_channel_availability_mode.proto"; import "google/ads/googleads/v1/enums/criterion_category_locale_availability_mode.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Common"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/common;common"; @@ -53,13 +53,16 @@ message CriterionCategoryChannelAvailability { // CHANNEL_TYPE_AND_SUBTYPES (advertising_channel_type, // advertising_channel_sub_type, and include_default_channel_sub_type will all // be set). - google.ads.googleads.v1.enums.CriterionCategoryChannelAvailabilityModeEnum.CriterionCategoryChannelAvailabilityMode availability_mode = 1; + google.ads.googleads.v1.enums.CriterionCategoryChannelAvailabilityModeEnum + .CriterionCategoryChannelAvailabilityMode availability_mode = 1; // Channel type the category is available to. - google.ads.googleads.v1.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 2; + google.ads.googleads.v1.enums.AdvertisingChannelTypeEnum + .AdvertisingChannelType advertising_channel_type = 2; // Channel subtypes under the channel type the category is available to. - repeated google.ads.googleads.v1.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 3; + repeated google.ads.googleads.v1.enums.AdvertisingChannelSubTypeEnum + .AdvertisingChannelSubType advertising_channel_sub_type = 3; // Whether default channel sub type is included. For example, // advertising_channel_type being DISPLAY and include_default_channel_sub_type @@ -74,7 +77,8 @@ message CriterionCategoryLocaleAvailability { // language will be empty), COUNTRY (only country will be set), LANGUAGE (only // language wil be set), COUNTRY_AND_LANGUAGE (both country and language will // be set). - google.ads.googleads.v1.enums.CriterionCategoryLocaleAvailabilityModeEnum.CriterionCategoryLocaleAvailabilityMode availability_mode = 1; + google.ads.googleads.v1.enums.CriterionCategoryLocaleAvailabilityModeEnum + .CriterionCategoryLocaleAvailabilityMode availability_mode = 1; // Code of the country. google.protobuf.StringValue country_code = 2; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/custom_parameter.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/custom_parameter.proto index a8b93261..4fc8d0e6 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/custom_parameter.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/custom_parameter.proto @@ -17,8 +17,8 @@ syntax = "proto3"; package google.ads.googleads.v1.common; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Common"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/common;common"; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/dates.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/dates.proto index 3cccdfc5..ecc33db4 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/dates.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/dates.proto @@ -17,8 +17,8 @@ syntax = "proto3"; package google.ads.googleads.v1.common; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Common"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/common;common"; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/explorer_auto_optimizer_setting.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/explorer_auto_optimizer_setting.proto index 9b935ed1..a8fcd1bf 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/explorer_auto_optimizer_setting.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/explorer_auto_optimizer_setting.proto @@ -17,8 +17,8 @@ syntax = "proto3"; package google.ads.googleads.v1.common; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Common"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/common;common"; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/extensions.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/extensions.proto index 2212b1a7..becf0343 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/extensions.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/extensions.proto @@ -26,8 +26,8 @@ import "google/ads/googleads/v1/enums/price_extension_price_unit.proto"; import "google/ads/googleads/v1/enums/price_extension_type.proto"; import "google/ads/googleads/v1/enums/promotion_extension_discount_modifier.proto"; import "google/ads/googleads/v1/enums/promotion_extension_occasion.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Common"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/common;common"; @@ -100,7 +100,8 @@ message CallFeedItem { // Enum value that indicates whether this call extension uses its own call // conversion setting (or just have call conversion disabled), or following // the account level setting. - google.ads.googleads.v1.enums.CallConversionReportingStateEnum.CallConversionReportingState call_conversion_reporting_state = 6; + google.ads.googleads.v1.enums.CallConversionReportingStateEnum + .CallConversionReportingState call_conversion_reporting_state = 6; } // Represents a callout extension. @@ -195,10 +196,12 @@ message TextMessageFeedItem { // Represents a Price extension. message PriceFeedItem { // Price extension type of this extension. - google.ads.googleads.v1.enums.PriceExtensionTypeEnum.PriceExtensionType type = 1; + google.ads.googleads.v1.enums.PriceExtensionTypeEnum.PriceExtensionType type = + 1; // Price qualifier for all offers of this price extension. - google.ads.googleads.v1.enums.PriceExtensionPriceQualifierEnum.PriceExtensionPriceQualifier price_qualifier = 2; + google.ads.googleads.v1.enums.PriceExtensionPriceQualifierEnum + .PriceExtensionPriceQualifier price_qualifier = 2; // Tracking URL template for all offers of this price extension. google.protobuf.StringValue tracking_url_template = 3; @@ -226,7 +229,8 @@ message PriceOffer { Money price = 3; // Price unit for this offer. - google.ads.googleads.v1.enums.PriceExtensionPriceUnitEnum.PriceExtensionPriceUnit unit = 4; + google.ads.googleads.v1.enums.PriceExtensionPriceUnitEnum + .PriceExtensionPriceUnit unit = 4; // A list of possible final URLs after all cross domain redirects. repeated google.protobuf.StringValue final_urls = 5; @@ -242,7 +246,8 @@ message PromotionFeedItem { google.protobuf.StringValue promotion_target = 1; // Enum that modifies the qualification of the discount. - google.ads.googleads.v1.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier discount_modifier = 2; + google.ads.googleads.v1.enums.PromotionExtensionDiscountModifierEnum + .PromotionExtensionDiscountModifier discount_modifier = 2; // Start date of when the promotion is eligible to be redeemed. google.protobuf.StringValue promotion_start_date = 7; @@ -253,7 +258,8 @@ message PromotionFeedItem { // The occasion the promotion was intended for. // If an occasion is set, the redemption window will need to fall within // the date range associated with the occasion. - google.ads.googleads.v1.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion occasion = 9; + google.ads.googleads.v1.enums.PromotionExtensionOccasionEnum + .PromotionExtensionOccasion occasion = 9; // A list of possible final URLs after all cross domain redirects. // This field is required. diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/feed_common.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/feed_common.proto index e889a606..8b67f2b3 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/feed_common.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/feed_common.proto @@ -17,8 +17,8 @@ syntax = "proto3"; package google.ads.googleads.v1.common; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Common"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/common;common"; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/final_app_url.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/final_app_url.proto index 4ab9c05c..9c6375a5 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/final_app_url.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/final_app_url.proto @@ -18,8 +18,8 @@ syntax = "proto3"; package google.ads.googleads.v1.common; import "google/ads/googleads/v1/enums/app_url_operating_system_type.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Common"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/common;common"; @@ -35,7 +35,8 @@ option ruby_package = "Google::Ads::GoogleAds::V1::Common"; // A URL for deep linking into an app for the given operating system. message FinalAppUrl { // The operating system targeted by this URL. Required. - google.ads.googleads.v1.enums.AppUrlOperatingSystemTypeEnum.AppUrlOperatingSystemType os_type = 1; + google.ads.googleads.v1.enums.AppUrlOperatingSystemTypeEnum + .AppUrlOperatingSystemType os_type = 1; // The app deep link URL. Deep links specify a location in an app that // corresponds to the content you'd like to show, and should be of the form diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/frequency_cap.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/frequency_cap.proto index 66b762c5..4d877e9f 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/frequency_cap.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/frequency_cap.proto @@ -20,8 +20,8 @@ package google.ads.googleads.v1.common; import "google/ads/googleads/v1/enums/frequency_cap_event_type.proto"; import "google/ads/googleads/v1/enums/frequency_cap_level.proto"; import "google/ads/googleads/v1/enums/frequency_cap_time_unit.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Common"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/common;common"; @@ -50,13 +50,16 @@ message FrequencyCapEntry { message FrequencyCapKey { // The level on which the cap is to be applied (e.g. ad group ad, ad group). // The cap is applied to all the entities of this level. - google.ads.googleads.v1.enums.FrequencyCapLevelEnum.FrequencyCapLevel level = 1; + google.ads.googleads.v1.enums.FrequencyCapLevelEnum.FrequencyCapLevel level = + 1; // The type of event that the cap applies to (e.g. impression). - google.ads.googleads.v1.enums.FrequencyCapEventTypeEnum.FrequencyCapEventType event_type = 3; + google.ads.googleads.v1.enums.FrequencyCapEventTypeEnum.FrequencyCapEventType + event_type = 3; // Unit of time the cap is defined at (e.g. day, week). - google.ads.googleads.v1.enums.FrequencyCapTimeUnitEnum.FrequencyCapTimeUnit time_unit = 2; + google.ads.googleads.v1.enums.FrequencyCapTimeUnitEnum.FrequencyCapTimeUnit + time_unit = 2; // Number of time units the cap lasts. google.protobuf.Int32Value time_length = 4; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/keyword_plan_common.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/keyword_plan_common.proto index 6c0f6bff..15e98999 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/keyword_plan_common.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/keyword_plan_common.proto @@ -18,8 +18,8 @@ syntax = "proto3"; package google.ads.googleads.v1.common; import "google/ads/googleads/v1/enums/keyword_plan_competition_level.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Common"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/common;common"; @@ -38,5 +38,6 @@ message KeywordPlanHistoricalMetrics { google.protobuf.Int64Value avg_monthly_searches = 1; // The competition level for the query. - google.ads.googleads.v1.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel competition = 2; + google.ads.googleads.v1.enums.KeywordPlanCompetitionLevelEnum + .KeywordPlanCompetitionLevel competition = 2; } diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/matching_function.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/matching_function.proto index f7289875..c79d5e0a 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/matching_function.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/matching_function.proto @@ -19,8 +19,8 @@ package google.ads.googleads.v1.common; import "google/ads/googleads/v1/enums/matching_function_context_type.proto"; import "google/ads/googleads/v1/enums/matching_function_operator.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Common"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/common;common"; @@ -57,7 +57,9 @@ message MatchingFunction { google.protobuf.StringValue function_string = 1; // Operator for a function. - google.ads.googleads.v1.enums.MatchingFunctionOperatorEnum.MatchingFunctionOperator operator = 4; + google.ads.googleads.v1.enums.MatchingFunctionOperatorEnum + .MatchingFunctionOperator + operator = 4; // The operands on the left hand side of the equation. This is also the // operand to be used for single operand expressions such as NOT. @@ -107,7 +109,8 @@ message Operand { // An operand in a function referring to a value in the request context. message RequestContextOperand { // Type of value to be referred in the request context. - google.ads.googleads.v1.enums.MatchingFunctionContextTypeEnum.MatchingFunctionContextType context_type = 1; + google.ads.googleads.v1.enums.MatchingFunctionContextTypeEnum + .MatchingFunctionContextType context_type = 1; } // Different operands that can be used in a matching function. Required. diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/metrics.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/metrics.proto index 84820fcc..139e77a4 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/metrics.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/metrics.proto @@ -19,8 +19,8 @@ package google.ads.googleads.v1.common; import "google/ads/googleads/v1/enums/interaction_event_type.proto"; import "google/ads/googleads/v1/enums/quality_score_bucket.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Common"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/common;common"; @@ -94,7 +94,8 @@ message Metrics { // The value of all conversions from interactions divided by the total number // of interactions. - google.protobuf.DoubleValue all_conversions_from_interactions_value_per_interaction = 67; + google.protobuf.DoubleValue + all_conversions_from_interactions_value_per_interaction = 67; // The number of times people clicked a link to view a store's menu after // clicking an ad. @@ -231,7 +232,8 @@ message Metrics { // The value of conversions from interactions divided by the number of ad // interactions. This only includes conversion actions which // include_in_conversions_metric attribute is set to true. - google.protobuf.DoubleValue conversions_from_interactions_value_per_interaction = 72; + google.protobuf.DoubleValue + conversions_from_interactions_value_per_interaction = 72; // The number of conversions. This only includes conversion actions which // include_in_conversions_metric attribute is set to true. @@ -252,7 +254,8 @@ message Metrics { // The cost of ad interactions divided by current model attributed // conversions. This only includes conversion actions which // include_in_conversions_metric attribute is set to true. - google.protobuf.DoubleValue cost_per_current_model_attributed_conversion = 106; + google.protobuf.DoubleValue cost_per_current_model_attributed_conversion = + 106; // Conversions from when a customer clicks on a Google Ads ad on one device, // then converts on a different device or browser. @@ -272,12 +275,15 @@ message Metrics { // number of ad interactions (such as clicks for text ads or views for video // ads). This only includes conversion actions which // include_in_conversions_metric attribute is set to true. - google.protobuf.DoubleValue current_model_attributed_conversions_from_interactions_rate = 102; + google.protobuf.DoubleValue + current_model_attributed_conversions_from_interactions_rate = 102; // The value of current model attributed conversions from interactions divided // by the number of ad interactions. This only includes conversion actions // which include_in_conversions_metric attribute is set to true. - google.protobuf.DoubleValue current_model_attributed_conversions_from_interactions_value_per_interaction = 103; + google.protobuf.DoubleValue + current_model_attributed_conversions_from_interactions_value_per_interaction = + 103; // The total value of current model attributed conversions. This only includes // conversion actions which include_in_conversions_metric attribute is set to @@ -287,7 +293,8 @@ message Metrics { // The value of current model attributed conversions divided by the cost of ad // interactions. This only includes conversion actions which // include_in_conversions_metric attribute is set to true. - google.protobuf.DoubleValue current_model_attributed_conversions_value_per_cost = 105; + google.protobuf.DoubleValue + current_model_attributed_conversions_value_per_cost = 105; // How often people engage with your ad after it's shown to them. This is the // number of ad expansions divided by the number of times your ad is shown. @@ -302,16 +309,19 @@ message Metrics { google.protobuf.DoubleValue hotel_average_lead_value_micros = 75; // The creative historical quality score. - google.ads.googleads.v1.enums.QualityScoreBucketEnum.QualityScoreBucket historical_creative_quality_score = 80; + google.ads.googleads.v1.enums.QualityScoreBucketEnum.QualityScoreBucket + historical_creative_quality_score = 80; // The quality of historical landing page experience. - google.ads.googleads.v1.enums.QualityScoreBucketEnum.QualityScoreBucket historical_landing_page_quality_score = 81; + google.ads.googleads.v1.enums.QualityScoreBucketEnum.QualityScoreBucket + historical_landing_page_quality_score = 81; // The historical quality score. google.protobuf.Int64Value historical_quality_score = 82; // The historical search predicted click through rate (CTR). - google.ads.googleads.v1.enums.QualityScoreBucketEnum.QualityScoreBucket historical_search_predicted_ctr = 83; + google.ads.googleads.v1.enums.QualityScoreBucketEnum.QualityScoreBucket + historical_search_predicted_ctr = 83; // The number of times the ad was forwarded to someone else as a message. google.protobuf.Int64Value gmail_forwards = 85; @@ -347,7 +357,8 @@ message Metrics { google.protobuf.Int64Value interactions = 39; // The types of payable and free interactions. - repeated google.ads.googleads.v1.enums.InteractionEventTypeEnum.InteractionEventType interaction_event_types = 100; + repeated google.ads.googleads.v1.enums.InteractionEventTypeEnum + .InteractionEventType interaction_event_types = 100; // The percentage of clicks filtered out of your total number of clicks // (filtered + non-filtered clicks) during the reporting period. @@ -415,7 +426,8 @@ message Metrics { // organic search results due to a low budget. Note: Search // budget lost absolute top impression share is reported in the range of 0 to // 0.9. Any value above 0.9 is reported as 0.9001. - google.protobuf.DoubleValue search_budget_lost_absolute_top_impression_share = 88; + google.protobuf.DoubleValue search_budget_lost_absolute_top_impression_share = + 88; // The estimated percent of times that your ad was eligible to show on the // Search Network but didn't because your budget was too low. Note: Search @@ -453,7 +465,8 @@ message Metrics { // organic search results due to poor Ad Rank. // Note: Search rank lost absolute top impression share is reported in the // range of 0 to 0.9. Any value above 0.9 is reported as 0.9001. - google.protobuf.DoubleValue search_rank_lost_absolute_top_impression_share = 90; + google.protobuf.DoubleValue search_rank_lost_absolute_top_impression_share = + 90; // The estimated percentage of impressions on the Search Network // that your ads didn't receive due to poor Ad Rank. @@ -484,7 +497,8 @@ message Metrics { // The percentage of ad clicks to Accelerated Mobile Pages (AMP) landing pages // that reach a valid AMP page. - google.protobuf.DoubleValue valid_accelerated_mobile_pages_clicks_percentage = 108; + google.protobuf.DoubleValue valid_accelerated_mobile_pages_clicks_percentage = + 108; // The value of all conversions divided by the number of all conversions. google.protobuf.DoubleValue value_per_all_conversions = 52; @@ -497,7 +511,8 @@ message Metrics { // The value of current model attributed conversions divided by the number of // the conversions. This only includes conversion actions which // include_in_conversions_metric attribute is set to true. - google.protobuf.DoubleValue value_per_current_model_attributed_conversion = 94; + google.protobuf.DoubleValue value_per_current_model_attributed_conversion = + 94; // Percentage of impressions where the viewer watched all of your video. google.protobuf.DoubleValue video_quartile_100_rate = 54; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/policy.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/policy.proto index a835d36e..5fbbb299 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/policy.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/policy.proto @@ -20,8 +20,8 @@ package google.ads.googleads.v1.common; import "google/ads/googleads/v1/enums/policy_topic_entry_type.proto"; import "google/ads/googleads/v1/enums/policy_topic_evidence_destination_mismatch_url_type.proto"; import "google/ads/googleads/v1/enums/policy_topic_evidence_destination_not_working_device.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Common"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/common;common"; @@ -90,7 +90,8 @@ message PolicyTopicEntry { google.protobuf.StringValue topic = 1; // Describes the negative or positive effect this policy will have on serving. - google.ads.googleads.v1.enums.PolicyTopicEntryTypeEnum.PolicyTopicEntryType type = 2; + google.ads.googleads.v1.enums.PolicyTopicEntryTypeEnum.PolicyTopicEntryType + type = 2; // Additional information that explains policy finding // (e.g. the brand name for a trademark finding). @@ -128,7 +129,9 @@ message PolicyTopicEvidence { // Evidence of mismatches between the URLs of a resource. message DestinationMismatch { // The set of URLs that did not match each other. - repeated google.ads.googleads.v1.enums.PolicyTopicEvidenceDestinationMismatchUrlTypeEnum.PolicyTopicEvidenceDestinationMismatchUrlType url_types = 1; + repeated google.ads.googleads.v1.enums + .PolicyTopicEvidenceDestinationMismatchUrlTypeEnum + .PolicyTopicEvidenceDestinationMismatchUrlType url_types = 1; } // Evidence details when the destination is returning an HTTP error @@ -138,7 +141,9 @@ message PolicyTopicEvidence { google.protobuf.StringValue expanded_url = 3; // The type of device that failed to load the URL. - google.ads.googleads.v1.enums.PolicyTopicEvidenceDestinationNotWorkingDeviceEnum.PolicyTopicEvidenceDestinationNotWorkingDevice device = 4; + google.ads.googleads.v1.enums + .PolicyTopicEvidenceDestinationNotWorkingDeviceEnum + .PolicyTopicEvidenceDestinationNotWorkingDevice device = 4; // The time the URL was last checked. // The format is "YYYY-MM-DD HH:MM:SS". @@ -187,9 +192,7 @@ message PolicyTopicConstraint { // Indicates that a policy topic was constrained due to disapproval of the // website for reseller purposes. - message ResellerConstraint { - - } + message ResellerConstraint {} // Indicates that a resource's ability to serve in a particular country is // constrained. diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/real_time_bidding_setting.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/real_time_bidding_setting.proto index 9174d3ca..58118f0c 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/real_time_bidding_setting.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/real_time_bidding_setting.proto @@ -17,8 +17,8 @@ syntax = "proto3"; package google.ads.googleads.v1.common; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Common"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/common;common"; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/segments.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/segments.proto index 307799a8..2b07813d 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/segments.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/segments.proto @@ -37,8 +37,8 @@ import "google/ads/googleads/v1/enums/product_condition.proto"; import "google/ads/googleads/v1/enums/search_engine_results_page_type.proto"; import "google/ads/googleads/v1/enums/search_term_match_type.proto"; import "google/ads/googleads/v1/enums/slot.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Common"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/common;common"; @@ -54,7 +54,8 @@ option ruby_package = "Google::Ads::GoogleAds::V1::Common"; // Segment only fields. message Segments { // Ad network type. - google.ads.googleads.v1.enums.AdNetworkTypeEnum.AdNetworkType ad_network_type = 3; + google.ads.googleads.v1.enums.AdNetworkTypeEnum.AdNetworkType + ad_network_type = 3; // Click type. google.ads.googleads.v1.enums.ClickTypeEnum.ClickType click_type = 26; @@ -63,7 +64,8 @@ message Segments { google.protobuf.StringValue conversion_action = 52; // Conversion action category. - google.ads.googleads.v1.enums.ConversionActionCategoryEnum.ConversionActionCategory conversion_action_category = 53; + google.ads.googleads.v1.enums.ConversionActionCategoryEnum + .ConversionActionCategory conversion_action_category = 53; // Conversion action name. google.protobuf.StringValue conversion_action_name = 54; @@ -76,15 +78,18 @@ message Segments { google.protobuf.BoolValue conversion_adjustment = 27; // Conversion attribution event type. - google.ads.googleads.v1.enums.ConversionAttributionEventTypeEnum.ConversionAttributionEventType conversion_attribution_event_type = 2; + google.ads.googleads.v1.enums.ConversionAttributionEventTypeEnum + .ConversionAttributionEventType conversion_attribution_event_type = 2; // An enum value representing the number of days between the impression and // the conversion. - google.ads.googleads.v1.enums.ConversionLagBucketEnum.ConversionLagBucket conversion_lag_bucket = 50; + google.ads.googleads.v1.enums.ConversionLagBucketEnum.ConversionLagBucket + conversion_lag_bucket = 50; // An enum value representing the number of days between the impression and // the conversion or between the impression and adjustments to the conversion. - google.ads.googleads.v1.enums.ConversionOrAdjustmentLagBucketEnum.ConversionOrAdjustmentLagBucket conversion_or_adjustment_lag_bucket = 51; + google.ads.googleads.v1.enums.ConversionOrAdjustmentLagBucketEnum + .ConversionOrAdjustmentLagBucket conversion_or_adjustment_lag_bucket = 51; // Date to which metrics apply. // yyyy-MM-dd format, e.g., 2018-04-17. @@ -97,7 +102,8 @@ message Segments { google.ads.googleads.v1.enums.DeviceEnum.Device device = 1; // External conversion source. - google.ads.googleads.v1.enums.ExternalConversionSourceEnum.ExternalConversionSource external_conversion_source = 55; + google.ads.googleads.v1.enums.ExternalConversionSourceEnum + .ExternalConversionSource external_conversion_source = 55; // Resource name of the geo target constant that represents an airport. google.protobuf.StringValue geo_target_airport = 65; @@ -140,7 +146,8 @@ message Segments { google.protobuf.StringValue hotel_check_in_date = 8; // Hotel check-in day of week. - google.ads.googleads.v1.enums.DayOfWeekEnum.DayOfWeek hotel_check_in_day_of_week = 9; + google.ads.googleads.v1.enums.DayOfWeekEnum.DayOfWeek + hotel_check_in_day_of_week = 9; // Hotel city. google.protobuf.StringValue hotel_city = 10; @@ -152,7 +159,8 @@ message Segments { google.protobuf.StringValue hotel_country = 12; // Hotel date selection type. - google.ads.googleads.v1.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType hotel_date_selection_type = 13; + google.ads.googleads.v1.enums.HotelDateSelectionTypeEnum + .HotelDateSelectionType hotel_date_selection_type = 13; // Hotel length of stay. google.protobuf.Int32Value hotel_length_of_stay = 14; @@ -161,7 +169,8 @@ message Segments { google.protobuf.StringValue hotel_rate_rule_id = 73; // Hotel rate type. - google.ads.googleads.v1.enums.HotelRateTypeEnum.HotelRateType hotel_rate_type = 74; + google.ads.googleads.v1.enums.HotelRateTypeEnum.HotelRateType + hotel_rate_type = 74; // Hotel state. google.protobuf.StringValue hotel_state = 15; @@ -188,7 +197,8 @@ message Segments { google.protobuf.StringValue partner_hotel_id = 19; // Placeholder type. This is only used with feed item metrics. - google.ads.googleads.v1.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type = 20; + google.ads.googleads.v1.enums.PlaceholderTypeEnum.PlaceholderType + placeholder_type = 20; // Aggregator ID of the product. google.protobuf.UInt64Value product_aggregator_id = 28; @@ -212,13 +222,16 @@ message Segments { google.protobuf.StringValue product_brand = 29; // Channel of the product. - google.ads.googleads.v1.enums.ProductChannelEnum.ProductChannel product_channel = 30; + google.ads.googleads.v1.enums.ProductChannelEnum.ProductChannel + product_channel = 30; // Channel exclusivity of the product. - google.ads.googleads.v1.enums.ProductChannelExclusivityEnum.ProductChannelExclusivity product_channel_exclusivity = 31; + google.ads.googleads.v1.enums.ProductChannelExclusivityEnum + .ProductChannelExclusivity product_channel_exclusivity = 31; // Condition of the product. - google.ads.googleads.v1.enums.ProductConditionEnum.ProductCondition product_condition = 32; + google.ads.googleads.v1.enums.ProductConditionEnum.ProductCondition + product_condition = 32; // Resource name of the geo target constant for the country of sale of the // product. @@ -275,10 +288,12 @@ message Segments { google.protobuf.StringValue quarter = 21; // Type of the search engine results page. - google.ads.googleads.v1.enums.SearchEngineResultsPageTypeEnum.SearchEngineResultsPageType search_engine_results_page_type = 70; + google.ads.googleads.v1.enums.SearchEngineResultsPageTypeEnum + .SearchEngineResultsPageType search_engine_results_page_type = 70; // Match type of the keyword that triggered the ad, including variants. - google.ads.googleads.v1.enums.SearchTermMatchTypeEnum.SearchTermMatchType search_term_match_type = 22; + google.ads.googleads.v1.enums.SearchTermMatchTypeEnum.SearchTermMatchType + search_term_match_type = 22; // Position of the ad. google.ads.googleads.v1.enums.SlotEnum.Slot slot = 23; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/simulation.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/simulation.proto index a83fa780..b56c5863 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/simulation.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/simulation.proto @@ -17,8 +17,8 @@ syntax = "proto3"; package google.ads.googleads.v1.common; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Common"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/common;common"; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/tag_snippet.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/tag_snippet.proto index 32915787..4d791206 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/tag_snippet.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/tag_snippet.proto @@ -19,8 +19,8 @@ package google.ads.googleads.v1.common; import "google/ads/googleads/v1/enums/tracking_code_page_format.proto"; import "google/ads/googleads/v1/enums/tracking_code_type.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Common"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/common;common"; @@ -40,7 +40,8 @@ message TagSnippet { // The format of the web page where the tracking tag and snippet will be // installed, e.g. HTML. - google.ads.googleads.v1.enums.TrackingCodePageFormatEnum.TrackingCodePageFormat page_format = 2; + google.ads.googleads.v1.enums.TrackingCodePageFormatEnum + .TrackingCodePageFormat page_format = 2; // The site tag that adds visitors to your basic remarketing lists and sets // new cookies on your domain. diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/targeting_setting.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/targeting_setting.proto index 6ecf914b..fd794ec5 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/targeting_setting.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/targeting_setting.proto @@ -18,8 +18,8 @@ syntax = "proto3"; package google.ads.googleads.v1.common; import "google/ads/googleads/v1/enums/targeting_dimension.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Common"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/common;common"; @@ -44,7 +44,8 @@ message TargetingSetting { // The list of per-targeting-dimension targeting settings. message TargetRestriction { // The targeting dimension that these settings apply to. - google.ads.googleads.v1.enums.TargetingDimensionEnum.TargetingDimension targeting_dimension = 1; + google.ads.googleads.v1.enums.TargetingDimensionEnum.TargetingDimension + targeting_dimension = 1; // Indicates whether to restrict your ads to show only for the criteria you // have selected for this targeting_dimension, or to target all values for diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/text_label.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/text_label.proto index 6eb3e64f..f5cd3f7b 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/text_label.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/text_label.proto @@ -17,8 +17,8 @@ syntax = "proto3"; package google.ads.googleads.v1.common; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Common"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/common;common"; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/url_collection.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/url_collection.proto index 77904bba..622fdc3b 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/url_collection.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/url_collection.proto @@ -17,8 +17,8 @@ syntax = "proto3"; package google.ads.googleads.v1.common; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Common"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/common;common"; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/user_lists.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/user_lists.proto index f3dc0fa0..96e6d70f 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/common/user_lists.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/common/user_lists.proto @@ -26,8 +26,8 @@ import "google/ads/googleads/v1/enums/user_list_number_rule_item_operator.proto" import "google/ads/googleads/v1/enums/user_list_prepopulation_status.proto"; import "google/ads/googleads/v1/enums/user_list_rule_type.proto"; import "google/ads/googleads/v1/enums/user_list_string_rule_item_operator.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Common"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/common;common"; @@ -64,11 +64,13 @@ message CrmBasedUserListInfo { // Matching key type of the list. // Mixed data types are not allowed on the same list. // This field is required for an ADD operation. - google.ads.googleads.v1.enums.CustomerMatchUploadKeyTypeEnum.CustomerMatchUploadKeyType upload_key_type = 2; + google.ads.googleads.v1.enums.CustomerMatchUploadKeyTypeEnum + .CustomerMatchUploadKeyType upload_key_type = 2; // Data source of the list. Default value is FIRST_PARTY. // Only whitelisted customers can create third-party sourced CRM lists. - google.ads.googleads.v1.enums.UserListCrmDataSourceTypeEnum.UserListCrmDataSourceType data_source_type = 3; + google.ads.googleads.v1.enums.UserListCrmDataSourceTypeEnum + .UserListCrmDataSourceType data_source_type = 3; } // A client defined rule based on custom parameters sent by web sites or @@ -82,7 +84,8 @@ message UserListRuleInfo { // // Currently AND of ORs (conjunctive normal form) is only supported for // ExpressionRuleUserList. - google.ads.googleads.v1.enums.UserListRuleTypeEnum.UserListRuleType rule_type = 1; + google.ads.googleads.v1.enums.UserListRuleTypeEnum.UserListRuleType + rule_type = 1; // List of rule item groups that defines this rule. // Rule item groups are grouped together based on rule_type. @@ -125,7 +128,9 @@ message UserListDateRuleItemInfo { // Date comparison operator. // This field is required and must be populated when creating new date // rule item. - google.ads.googleads.v1.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator operator = 1; + google.ads.googleads.v1.enums.UserListDateRuleItemOperatorEnum + .UserListDateRuleItemOperator + operator = 1; // String representing date value to be compared with the rule variable. // Supported date format is YYYY-MM-DD. @@ -143,7 +148,9 @@ message UserListNumberRuleItemInfo { // Number comparison operator. // This field is required and must be populated when creating a new number // rule item. - google.ads.googleads.v1.enums.UserListNumberRuleItemOperatorEnum.UserListNumberRuleItemOperator operator = 1; + google.ads.googleads.v1.enums.UserListNumberRuleItemOperatorEnum + .UserListNumberRuleItemOperator + operator = 1; // Number value to be compared with the variable. // This field is required and must be populated when creating a new number @@ -156,7 +163,9 @@ message UserListStringRuleItemInfo { // String comparison operator. // This field is required and must be populated when creating a new string // rule item. - google.ads.googleads.v1.enums.UserListStringRuleItemOperatorEnum.UserListStringRuleItemOperator operator = 1; + google.ads.googleads.v1.enums.UserListStringRuleItemOperatorEnum + .UserListStringRuleItemOperator + operator = 1; // The right hand side of the string rule item. For URLs or referrer URLs, // the value can not contain illegal URL chars such as newlines, quotes, @@ -182,7 +191,8 @@ message CombinedRuleUserListInfo { // Operator to connect the two operands. // // Required for creating a combined rule user list. - google.ads.googleads.v1.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator rule_operator = 3; + google.ads.googleads.v1.enums.UserListCombinedRuleOperatorEnum + .UserListCombinedRuleOperator rule_operator = 3; } // Visitors of a page during specific dates. @@ -226,7 +236,8 @@ message RuleBasedUserListInfo { // list's membership duration and the date when the remarketing tag is added. // The status will be updated to FINISHED once request is processed, or FAILED // if the request fails. - google.ads.googleads.v1.enums.UserListPrepopulationStatusEnum.UserListPrepopulationStatus prepopulation_status = 1; + google.ads.googleads.v1.enums.UserListPrepopulationStatusEnum + .UserListPrepopulationStatus prepopulation_status = 1; // Subtypes of rule based user lists. oneof rule_based_user_list { @@ -262,7 +273,9 @@ message LogicalUserListInfo { // list of user lists as operands. message UserListLogicalRuleInfo { // The logical operator of the rule. - google.ads.googleads.v1.enums.UserListLogicalRuleOperatorEnum.UserListLogicalRuleOperator operator = 1; + google.ads.googleads.v1.enums.UserListLogicalRuleOperatorEnum + .UserListLogicalRuleOperator + operator = 1; // The list of operands of the rule. repeated LogicalUserListOperandInfo rule_operands = 2; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/account_budget.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/account_budget.proto index a6a94319..55125e2d 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/account_budget.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/account_budget.proto @@ -21,8 +21,8 @@ import "google/ads/googleads/v1/enums/account_budget_proposal_type.proto"; import "google/ads/googleads/v1/enums/account_budget_status.proto"; import "google/ads/googleads/v1/enums/spending_limit_type.proto"; import "google/ads/googleads/v1/enums/time_type.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -64,7 +64,8 @@ message AccountBudget { // The type of this proposal, e.g. END to end the budget associated // with this proposal. - google.ads.googleads.v1.enums.AccountBudgetProposalTypeEnum.AccountBudgetProposalType proposal_type = 2; + google.ads.googleads.v1.enums.AccountBudgetProposalTypeEnum + .AccountBudgetProposalType proposal_type = 2; // The name to assign to the account-level budget. google.protobuf.StringValue name = 3; @@ -99,7 +100,8 @@ message AccountBudget { google.protobuf.Int64Value spending_limit_micros = 7; // The spending limit as a well-defined type, e.g. INFINITE. - google.ads.googleads.v1.enums.SpendingLimitTypeEnum.SpendingLimitType spending_limit_type = 8; + google.ads.googleads.v1.enums.SpendingLimitTypeEnum.SpendingLimitType + spending_limit_type = 8; } } @@ -119,7 +121,8 @@ message AccountBudget { google.protobuf.StringValue billing_setup = 3; // The status of this account-level budget. - google.ads.googleads.v1.enums.AccountBudgetStatusEnum.AccountBudgetStatus status = 4; + google.ads.googleads.v1.enums.AccountBudgetStatusEnum.AccountBudgetStatus + status = 4; // The name of the account-level budget. google.protobuf.StringValue name = 5; @@ -163,7 +166,8 @@ message AccountBudget { google.protobuf.StringValue proposed_end_date_time = 8; // The proposed end time as a well-defined type, e.g. FOREVER. - google.ads.googleads.v1.enums.TimeTypeEnum.TimeType proposed_end_time_type = 9; + google.ads.googleads.v1.enums.TimeTypeEnum.TimeType proposed_end_time_type = + 9; } // The approved end time of the account-level budget. @@ -175,7 +179,8 @@ message AccountBudget { google.protobuf.StringValue approved_end_date_time = 10; // The approved end time as a well-defined type, e.g. FOREVER. - google.ads.googleads.v1.enums.TimeTypeEnum.TimeType approved_end_time_type = 11; + google.ads.googleads.v1.enums.TimeTypeEnum.TimeType approved_end_time_type = + 11; } // The proposed spending limit. @@ -185,7 +190,8 @@ message AccountBudget { google.protobuf.Int64Value proposed_spending_limit_micros = 12; // The proposed spending limit as a well-defined type, e.g. INFINITE. - google.ads.googleads.v1.enums.SpendingLimitTypeEnum.SpendingLimitType proposed_spending_limit_type = 13; + google.ads.googleads.v1.enums.SpendingLimitTypeEnum.SpendingLimitType + proposed_spending_limit_type = 13; } // The approved spending limit. @@ -202,7 +208,8 @@ message AccountBudget { // The approved spending limit as a well-defined type, e.g. INFINITE. This // will only be populated if the approved spending limit is INFINITE. - google.ads.googleads.v1.enums.SpendingLimitTypeEnum.SpendingLimitType approved_spending_limit_type = 15; + google.ads.googleads.v1.enums.SpendingLimitTypeEnum.SpendingLimitType + approved_spending_limit_type = 15; } // The spending limit after adjustments have been applied. Adjustments are @@ -228,6 +235,7 @@ message AccountBudget { // This will only be populated if the adjusted spending limit is INFINITE, // which is guaranteed to be true if the approved spending limit is // INFINITE. - google.ads.googleads.v1.enums.SpendingLimitTypeEnum.SpendingLimitType adjusted_spending_limit_type = 17; + google.ads.googleads.v1.enums.SpendingLimitTypeEnum.SpendingLimitType + adjusted_spending_limit_type = 17; } } diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/account_budget_proposal.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/account_budget_proposal.proto index 237bc0e9..00a9f426 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/account_budget_proposal.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/account_budget_proposal.proto @@ -21,8 +21,8 @@ import "google/ads/googleads/v1/enums/account_budget_proposal_status.proto"; import "google/ads/googleads/v1/enums/account_budget_proposal_type.proto"; import "google/ads/googleads/v1/enums/spending_limit_type.proto"; import "google/ads/googleads/v1/enums/time_type.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -64,11 +64,13 @@ message AccountBudgetProposal { // The type of this proposal, e.g. END to end the budget associated with this // proposal. - google.ads.googleads.v1.enums.AccountBudgetProposalTypeEnum.AccountBudgetProposalType proposal_type = 4; + google.ads.googleads.v1.enums.AccountBudgetProposalTypeEnum + .AccountBudgetProposalType proposal_type = 4; // The status of this proposal. // When a new proposal is created, the status defaults to PENDING. - google.ads.googleads.v1.enums.AccountBudgetProposalStatusEnum.AccountBudgetProposalStatus status = 15; + google.ads.googleads.v1.enums.AccountBudgetProposalStatusEnum + .AccountBudgetProposalStatus status = 15; // The name to assign to the account-level budget. google.protobuf.StringValue proposed_name = 5; @@ -97,7 +99,8 @@ message AccountBudgetProposal { google.protobuf.StringValue proposed_start_date_time = 18; // The proposed start date time as a well-defined type, e.g. NOW. - google.ads.googleads.v1.enums.TimeTypeEnum.TimeType proposed_start_time_type = 7; + google.ads.googleads.v1.enums.TimeTypeEnum.TimeType + proposed_start_time_type = 7; } // The proposed end date time of the account-level budget, which cannot be in @@ -107,7 +110,8 @@ message AccountBudgetProposal { google.protobuf.StringValue proposed_end_date_time = 19; // The proposed end date time as a well-defined type, e.g. FOREVER. - google.ads.googleads.v1.enums.TimeTypeEnum.TimeType proposed_end_time_type = 9; + google.ads.googleads.v1.enums.TimeTypeEnum.TimeType proposed_end_time_type = + 9; } // The approved end date time of the account-level budget. @@ -116,7 +120,8 @@ message AccountBudgetProposal { google.protobuf.StringValue approved_end_date_time = 21; // The approved end date time as a well-defined type, e.g. FOREVER. - google.ads.googleads.v1.enums.TimeTypeEnum.TimeType approved_end_time_type = 22; + google.ads.googleads.v1.enums.TimeTypeEnum.TimeType approved_end_time_type = + 22; } // The proposed spending limit. @@ -126,7 +131,8 @@ message AccountBudgetProposal { google.protobuf.Int64Value proposed_spending_limit_micros = 10; // The proposed spending limit as a well-defined type, e.g. INFINITE. - google.ads.googleads.v1.enums.SpendingLimitTypeEnum.SpendingLimitType proposed_spending_limit_type = 11; + google.ads.googleads.v1.enums.SpendingLimitTypeEnum.SpendingLimitType + proposed_spending_limit_type = 11; } // The approved spending limit. @@ -136,6 +142,7 @@ message AccountBudgetProposal { google.protobuf.Int64Value approved_spending_limit_micros = 23; // The approved spending limit as a well-defined type, e.g. INFINITE. - google.ads.googleads.v1.enums.SpendingLimitTypeEnum.SpendingLimitType approved_spending_limit_type = 24; + google.ads.googleads.v1.enums.SpendingLimitTypeEnum.SpendingLimitType + approved_spending_limit_type = 24; } } diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad.proto index 832b06e1..d89cd11e 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad.proto @@ -24,8 +24,8 @@ import "google/ads/googleads/v1/common/url_collection.proto"; import "google/ads/googleads/v1/enums/ad_type.proto"; import "google/ads/googleads/v1/enums/device.proto"; import "google/ads/googleads/v1/enums/system_managed_entity_source.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -60,7 +60,8 @@ message Ad { // The list of mappings that can be used to substitute custom parameter tags // in a `tracking_url_template`, `final_urls`, or `mobile_final_urls`. - repeated google.ads.googleads.v1.common.CustomParameter url_custom_parameters = 10; + repeated google.ads.googleads.v1.common.CustomParameter + url_custom_parameters = 10; // The URL that appears in the ad description for some ad formats. google.protobuf.StringValue display_url = 4; @@ -92,7 +93,8 @@ message Ad { // If this ad is system managed, then this field will indicate the source. // This field is read-only. - google.ads.googleads.v1.enums.SystemManagedResourceSourceEnum.SystemManagedResourceSource system_managed_resource_source = 27; + google.ads.googleads.v1.enums.SystemManagedResourceSourceEnum + .SystemManagedResourceSource system_managed_resource_source = 27; // Details pertinent to the ad type. Exactly one value must be set. oneof ad_data { @@ -110,7 +112,8 @@ message Ad { // auto-generated at serving time according to domain name specific // information provided by `dynamic_search_ads_setting` linked at the // campaign level. - google.ads.googleads.v1.common.ExpandedDynamicSearchAdInfo expanded_dynamic_search_ad = 14; + google.ads.googleads.v1.common.ExpandedDynamicSearchAdInfo + expanded_dynamic_search_ad = 14; // Details pertaining to a hotel ad. google.ads.googleads.v1.common.HotelAdInfo hotel_ad = 15; @@ -119,7 +122,8 @@ message Ad { google.ads.googleads.v1.common.ShoppingSmartAdInfo shopping_smart_ad = 17; // Details pertaining to a Shopping product ad. - google.ads.googleads.v1.common.ShoppingProductAdInfo shopping_product_ad = 18; + google.ads.googleads.v1.common.ShoppingProductAdInfo shopping_product_ad = + 18; // Details pertaining to a Gmail ad. google.ads.googleads.v1.common.GmailAdInfo gmail_ad = 21; @@ -131,19 +135,23 @@ message Ad { google.ads.googleads.v1.common.VideoAdInfo video_ad = 24; // Details pertaining to a responsive search ad. - google.ads.googleads.v1.common.ResponsiveSearchAdInfo responsive_search_ad = 25; + google.ads.googleads.v1.common.ResponsiveSearchAdInfo responsive_search_ad = + 25; // Details pertaining to a legacy responsive display ad. - google.ads.googleads.v1.common.LegacyResponsiveDisplayAdInfo legacy_responsive_display_ad = 28; + google.ads.googleads.v1.common.LegacyResponsiveDisplayAdInfo + legacy_responsive_display_ad = 28; // Details pertaining to an app ad. google.ads.googleads.v1.common.AppAdInfo app_ad = 29; // Details pertaining to a legacy app install ad. - google.ads.googleads.v1.common.LegacyAppInstallAdInfo legacy_app_install_ad = 30; + google.ads.googleads.v1.common.LegacyAppInstallAdInfo + legacy_app_install_ad = 30; // Details pertaining to a responsive display ad. - google.ads.googleads.v1.common.ResponsiveDisplayAdInfo responsive_display_ad = 31; + google.ads.googleads.v1.common.ResponsiveDisplayAdInfo + responsive_display_ad = 31; // Details pertaining to a display upload ad. google.ads.googleads.v1.common.DisplayUploadAdInfo display_upload_ad = 33; @@ -152,6 +160,7 @@ message Ad { google.ads.googleads.v1.common.AppEngagementAdInfo app_engagement_ad = 34; // Details pertaining to a Shopping Comparison Listing ad. - google.ads.googleads.v1.common.ShoppingComparisonListingAdInfo shopping_comparison_listing_ad = 36; + google.ads.googleads.v1.common.ShoppingComparisonListingAdInfo + shopping_comparison_listing_ad = 36; } } diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group.proto index 8841c18d..c4ad34b3 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group.proto @@ -25,8 +25,8 @@ import "google/ads/googleads/v1/enums/ad_group_status.proto"; import "google/ads/googleads/v1/enums/ad_group_type.proto"; import "google/ads/googleads/v1/enums/bidding_source.proto"; import "google/ads/googleads/v1/enums/targeting_dimension.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -68,7 +68,8 @@ message AdGroup { google.ads.googleads.v1.enums.AdGroupTypeEnum.AdGroupType type = 12; // The ad rotation mode of the ad group. - google.ads.googleads.v1.enums.AdGroupAdRotationModeEnum.AdGroupAdRotationMode ad_rotation_mode = 22; + google.ads.googleads.v1.enums.AdGroupAdRotationModeEnum.AdGroupAdRotationMode + ad_rotation_mode = 22; // For draft or experiment ad groups, this field is the resource name of the // base ad group from which this ad group was created. If a draft or @@ -84,7 +85,8 @@ message AdGroup { // The list of mappings used to substitute custom parameter tags in a // `tracking_url_template`, `final_urls`, or `mobile_final_urls`. - repeated google.ads.googleads.v1.common.CustomParameter url_custom_parameters = 6; + repeated google.ads.googleads.v1.common.CustomParameter + url_custom_parameters = 6; // The campaign to which the ad group belongs. google.protobuf.StringValue campaign = 10; @@ -117,12 +119,14 @@ message AdGroup { google.protobuf.Int64Value percent_cpc_bid_micros = 20; // Settings for the Display Campaign Optimizer, initially termed "Explorer". - google.ads.googleads.v1.common.ExplorerAutoOptimizerSetting explorer_auto_optimizer_setting = 21; + google.ads.googleads.v1.common.ExplorerAutoOptimizerSetting + explorer_auto_optimizer_setting = 21; // Allows advertisers to specify a targeting dimension on which to place // absolute bids. This is only applicable for campaigns that target only the // display network and not search. - google.ads.googleads.v1.enums.TargetingDimensionEnum.TargetingDimension display_custom_bid_dimension = 23; + google.ads.googleads.v1.enums.TargetingDimensionEnum.TargetingDimension + display_custom_bid_dimension = 23; // URL template for appending params to Final URL. google.protobuf.StringValue final_url_suffix = 24; @@ -136,7 +140,8 @@ message AdGroup { // Source of the effective target CPA. // This field is read-only. - google.ads.googleads.v1.enums.BiddingSourceEnum.BiddingSource effective_target_cpa_source = 29; + google.ads.googleads.v1.enums.BiddingSourceEnum.BiddingSource + effective_target_cpa_source = 29; // The effective target ROAS (return-on-ad-spend). // This field is read-only. @@ -144,5 +149,6 @@ message AdGroup { // Source of the effective target ROAS. // This field is read-only. - google.ads.googleads.v1.enums.BiddingSourceEnum.BiddingSource effective_target_roas_source = 32; + google.ads.googleads.v1.enums.BiddingSourceEnum.BiddingSource + effective_target_roas_source = 32; } diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_ad.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_ad.proto index d08ac83e..67b7886f 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_ad.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_ad.proto @@ -23,8 +23,8 @@ import "google/ads/googleads/v1/enums/ad_strength.proto"; import "google/ads/googleads/v1/enums/policy_approval_status.proto"; import "google/ads/googleads/v1/enums/policy_review_status.proto"; import "google/ads/googleads/v1/resources/ad.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -64,12 +64,15 @@ message AdGroupAd { // Contains policy information for an ad. message AdGroupAdPolicySummary { // The list of policy findings for this ad. - repeated google.ads.googleads.v1.common.PolicyTopicEntry policy_topic_entries = 1; + repeated google.ads.googleads.v1.common.PolicyTopicEntry + policy_topic_entries = 1; // Where in the review process this ad is. - google.ads.googleads.v1.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 2; + google.ads.googleads.v1.enums.PolicyReviewStatusEnum.PolicyReviewStatus + review_status = 2; // The overall approval status of this ad, calculated based on the status of // its individual policy topic entries. - google.ads.googleads.v1.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 3; + google.ads.googleads.v1.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus + approval_status = 3; } diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_ad_label.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_ad_label.proto index c539f2cb..aaecc193 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_ad_label.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_ad_label.proto @@ -17,8 +17,8 @@ syntax = "proto3"; package google.ads.googleads.v1.resources; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_bid_modifier.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_bid_modifier.proto index 61eda580..152c3dfa 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_bid_modifier.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_bid_modifier.proto @@ -19,8 +19,8 @@ package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/common/criteria.proto"; import "google/ads/googleads/v1/enums/bid_modifier_source.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -62,18 +62,22 @@ message AdGroupBidModifier { google.protobuf.StringValue base_ad_group = 9; // Bid modifier source. - google.ads.googleads.v1.enums.BidModifierSourceEnum.BidModifierSource bid_modifier_source = 10; + google.ads.googleads.v1.enums.BidModifierSourceEnum.BidModifierSource + bid_modifier_source = 10; // The criterion of this ad group bid modifier. oneof criterion { // Criterion for hotel date selection (default dates vs. user selected). - google.ads.googleads.v1.common.HotelDateSelectionTypeInfo hotel_date_selection_type = 5; + google.ads.googleads.v1.common.HotelDateSelectionTypeInfo + hotel_date_selection_type = 5; // Criterion for number of days prior to the stay the booking is being made. - google.ads.googleads.v1.common.HotelAdvanceBookingWindowInfo hotel_advance_booking_window = 6; + google.ads.googleads.v1.common.HotelAdvanceBookingWindowInfo + hotel_advance_booking_window = 6; // Criterion for length of hotel stay in nights. - google.ads.googleads.v1.common.HotelLengthOfStayInfo hotel_length_of_stay = 7; + google.ads.googleads.v1.common.HotelLengthOfStayInfo hotel_length_of_stay = + 7; // Criterion for day of the week the booking is for. google.ads.googleads.v1.common.HotelCheckInDayInfo hotel_check_in_day = 8; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_criterion.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_criterion.proto index 7b269769..10ef22ab 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_criterion.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_criterion.proto @@ -25,8 +25,8 @@ import "google/ads/googleads/v1/enums/bidding_source.proto"; import "google/ads/googleads/v1/enums/criterion_system_serving_status.proto"; import "google/ads/googleads/v1/enums/criterion_type.proto"; import "google/ads/googleads/v1/enums/quality_score_bucket.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -50,13 +50,16 @@ message AdGroupCriterion { google.protobuf.Int32Value quality_score = 1; // The performance of the ad compared to other advertisers. - google.ads.googleads.v1.enums.QualityScoreBucketEnum.QualityScoreBucket creative_quality_score = 2; + google.ads.googleads.v1.enums.QualityScoreBucketEnum.QualityScoreBucket + creative_quality_score = 2; // The quality score of the landing page. - google.ads.googleads.v1.enums.QualityScoreBucketEnum.QualityScoreBucket post_click_quality_score = 3; + google.ads.googleads.v1.enums.QualityScoreBucketEnum.QualityScoreBucket + post_click_quality_score = 3; // The click-through rate compared to that of other advertisers. - google.ads.googleads.v1.enums.QualityScoreBucketEnum.QualityScoreBucket search_predicted_ctr = 4; + google.ads.googleads.v1.enums.QualityScoreBucketEnum.QualityScoreBucket + search_predicted_ctr = 4; } // Estimates for criterion bids at various positions. @@ -94,7 +97,8 @@ message AdGroupCriterion { google.protobuf.Int64Value criterion_id = 26; // The status of the criterion. - google.ads.googleads.v1.enums.AdGroupCriterionStatusEnum.AdGroupCriterionStatus status = 3; + google.ads.googleads.v1.enums.AdGroupCriterionStatusEnum + .AdGroupCriterionStatus status = 3; // Information regarding the quality of the criterion. QualityInfo quality_info = 4; @@ -112,10 +116,12 @@ message AdGroupCriterion { google.protobuf.BoolValue negative = 31; // Serving status of the criterion. - google.ads.googleads.v1.enums.CriterionSystemServingStatusEnum.CriterionSystemServingStatus system_serving_status = 52; + google.ads.googleads.v1.enums.CriterionSystemServingStatusEnum + .CriterionSystemServingStatus system_serving_status = 52; // Approval status of the criterion. - google.ads.googleads.v1.enums.AdGroupCriterionApprovalStatusEnum.AdGroupCriterionApprovalStatus approval_status = 53; + google.ads.googleads.v1.enums.AdGroupCriterionApprovalStatusEnum + .AdGroupCriterionApprovalStatus approval_status = 53; // The modifier for the bid when the criterion matches. The modifier must be // in the range: 0.1 - 10.0. Most targetable criteria types support modifiers. @@ -148,16 +154,20 @@ message AdGroupCriterion { google.protobuf.Int64Value effective_percent_cpc_bid_micros = 34; // Source of the effective CPC bid. - google.ads.googleads.v1.enums.BiddingSourceEnum.BiddingSource effective_cpc_bid_source = 21; + google.ads.googleads.v1.enums.BiddingSourceEnum.BiddingSource + effective_cpc_bid_source = 21; // Source of the effective CPM bid. - google.ads.googleads.v1.enums.BiddingSourceEnum.BiddingSource effective_cpm_bid_source = 22; + google.ads.googleads.v1.enums.BiddingSourceEnum.BiddingSource + effective_cpm_bid_source = 22; // Source of the effective CPV bid. - google.ads.googleads.v1.enums.BiddingSourceEnum.BiddingSource effective_cpv_bid_source = 23; + google.ads.googleads.v1.enums.BiddingSourceEnum.BiddingSource + effective_cpv_bid_source = 23; // Source of the effective Percent CPC bid. - google.ads.googleads.v1.enums.BiddingSourceEnum.BiddingSource effective_percent_cpc_bid_source = 35; + google.ads.googleads.v1.enums.BiddingSourceEnum.BiddingSource + effective_percent_cpc_bid_source = 35; // Estimates for criterion bids at various positions. PositionEstimates position_estimates = 10; @@ -177,7 +187,8 @@ message AdGroupCriterion { // The list of mappings used to substitute custom parameter tags in a // `tracking_url_template`, `final_urls`, or `mobile_final_urls`. - repeated google.ads.googleads.v1.common.CustomParameter url_custom_parameters = 14; + repeated google.ads.googleads.v1.common.CustomParameter + url_custom_parameters = 14; // The ad group criterion. // @@ -190,10 +201,12 @@ message AdGroupCriterion { google.ads.googleads.v1.common.PlacementInfo placement = 28; // Mobile app category. - google.ads.googleads.v1.common.MobileAppCategoryInfo mobile_app_category = 29; + google.ads.googleads.v1.common.MobileAppCategoryInfo mobile_app_category = + 29; // Mobile application. - google.ads.googleads.v1.common.MobileApplicationInfo mobile_application = 30; + google.ads.googleads.v1.common.MobileApplicationInfo mobile_application = + 30; // Listing group. google.ads.googleads.v1.common.ListingGroupInfo listing_group = 32; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_criterion_label.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_criterion_label.proto index c2b27744..121f6772 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_criterion_label.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_criterion_label.proto @@ -17,8 +17,8 @@ syntax = "proto3"; package google.ads.googleads.v1.resources; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_criterion_simulation.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_criterion_simulation.proto index 144d476d..e846e635 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_criterion_simulation.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_criterion_simulation.proto @@ -20,8 +20,8 @@ package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/common/simulation.proto"; import "google/ads/googleads/v1/enums/simulation_modification_method.proto"; import "google/ads/googleads/v1/enums/simulation_type.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -57,7 +57,8 @@ message AdGroupCriterionSimulation { google.ads.googleads.v1.enums.SimulationTypeEnum.SimulationType type = 4; // How the simulation modifies the field. - google.ads.googleads.v1.enums.SimulationModificationMethodEnum.SimulationModificationMethod modification_method = 5; + google.ads.googleads.v1.enums.SimulationModificationMethodEnum + .SimulationModificationMethod modification_method = 5; // First day on which the simulation is based, in YYYY-MM-DD format. google.protobuf.StringValue start_date = 6; @@ -68,6 +69,7 @@ message AdGroupCriterionSimulation { // List of simulation points. oneof point_list { // Simulation points if the simulation type is CPC_BID. - google.ads.googleads.v1.common.CpcBidSimulationPointList cpc_bid_point_list = 8; + google.ads.googleads.v1.common.CpcBidSimulationPointList + cpc_bid_point_list = 8; } } diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_extension_setting.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_extension_setting.proto index 37910f84..fef67a91 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_extension_setting.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_extension_setting.proto @@ -19,8 +19,8 @@ package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/enums/extension_setting_device.proto"; import "google/ads/googleads/v1/enums/extension_type.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -43,7 +43,8 @@ message AdGroupExtensionSetting { string resource_name = 1; // The extension type of the ad group extension setting. - google.ads.googleads.v1.enums.ExtensionTypeEnum.ExtensionType extension_type = 2; + google.ads.googleads.v1.enums.ExtensionTypeEnum.ExtensionType extension_type = + 2; // The resource name of the ad group. The linked extension feed items will // serve under this ad group. @@ -59,5 +60,6 @@ message AdGroupExtensionSetting { repeated google.protobuf.StringValue extension_feed_items = 4; // The device for which the extensions will serve. Optional. - google.ads.googleads.v1.enums.ExtensionSettingDeviceEnum.ExtensionSettingDevice device = 5; + google.ads.googleads.v1.enums.ExtensionSettingDeviceEnum + .ExtensionSettingDevice device = 5; } diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_feed.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_feed.proto index 96e46a83..e1f1601f 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_feed.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_feed.proto @@ -20,8 +20,8 @@ package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/common/matching_function.proto"; import "google/ads/googleads/v1/enums/feed_link_status.proto"; import "google/ads/googleads/v1/enums/placeholder_type.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -50,7 +50,8 @@ message AdGroupFeed { // Indicates which placeholder types the feed may populate under the connected // ad group. Required. - repeated google.ads.googleads.v1.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4; + repeated google.ads.googleads.v1.enums.PlaceholderTypeEnum.PlaceholderType + placeholder_types = 4; // Matching function associated with the AdGroupFeed. // The matching function is used to filter the set of feed items selected. diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_label.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_label.proto index 44c76707..db9f20d4 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_label.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_label.proto @@ -17,8 +17,8 @@ syntax = "proto3"; package google.ads.googleads.v1.resources; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_simulation.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_simulation.proto index 84c96092..303b30e3 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_simulation.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_group_simulation.proto @@ -20,8 +20,8 @@ package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/common/simulation.proto"; import "google/ads/googleads/v1/enums/simulation_modification_method.proto"; import "google/ads/googleads/v1/enums/simulation_type.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -61,7 +61,8 @@ message AdGroupSimulation { google.ads.googleads.v1.enums.SimulationTypeEnum.SimulationType type = 3; // How the simulation modifies the field. - google.ads.googleads.v1.enums.SimulationModificationMethodEnum.SimulationModificationMethod modification_method = 4; + google.ads.googleads.v1.enums.SimulationModificationMethodEnum + .SimulationModificationMethod modification_method = 4; // First day on which the simulation is based, in YYYY-MM-DD format. google.protobuf.StringValue start_date = 5; @@ -72,12 +73,15 @@ message AdGroupSimulation { // List of simulation points. oneof point_list { // Simulation points if the simulation type is CPC_BID. - google.ads.googleads.v1.common.CpcBidSimulationPointList cpc_bid_point_list = 8; + google.ads.googleads.v1.common.CpcBidSimulationPointList + cpc_bid_point_list = 8; // Simulation points if the simulation type is CPV_BID. - google.ads.googleads.v1.common.CpvBidSimulationPointList cpv_bid_point_list = 10; + google.ads.googleads.v1.common.CpvBidSimulationPointList + cpv_bid_point_list = 10; // Simulation points if the simulation type is TARGET_CPA. - google.ads.googleads.v1.common.TargetCpaSimulationPointList target_cpa_point_list = 9; + google.ads.googleads.v1.common.TargetCpaSimulationPointList + target_cpa_point_list = 9; } } diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_parameter.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_parameter.proto index e1077715..6c53fe38 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_parameter.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/ad_parameter.proto @@ -17,8 +17,8 @@ syntax = "proto3"; package google.ads.googleads.v1.resources; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/asset.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/asset.proto index 91275030..d30514a6 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/asset.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/asset.proto @@ -19,8 +19,8 @@ package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/common/asset_types.proto"; import "google/ads/googleads/v1/enums/asset_type.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/bidding_strategy.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/bidding_strategy.proto index a39037ed..774a6a6e 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/bidding_strategy.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/bidding_strategy.proto @@ -20,8 +20,8 @@ package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/common/bidding.proto"; import "google/ads/googleads/v1/enums/bidding_strategy_status.proto"; import "google/ads/googleads/v1/enums/bidding_strategy_type.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -55,13 +55,15 @@ message BiddingStrategy { // The status of the bidding strategy. // // This field is read-only. - google.ads.googleads.v1.enums.BiddingStrategyStatusEnum.BiddingStrategyStatus status = 15; + google.ads.googleads.v1.enums.BiddingStrategyStatusEnum.BiddingStrategyStatus + status = 15; // The type of the bidding strategy. // Create a bidding strategy by setting the bidding scheme. // // This field is read-only. - google.ads.googleads.v1.enums.BiddingStrategyTypeEnum.BiddingStrategyType type = 5; + google.ads.googleads.v1.enums.BiddingStrategyTypeEnum.BiddingStrategyType + type = 5; // The number of campaigns attached to this bidding strategy. // @@ -92,7 +94,8 @@ message BiddingStrategy { // A bidding strategy that automatically optimizes towards a desired // percentage of impressions. - google.ads.googleads.v1.common.TargetImpressionShare target_impression_share = 48; + google.ads.googleads.v1.common.TargetImpressionShare + target_impression_share = 48; // A bidding strategy that sets bids based on the target fraction of // auctions where the advertiser should outrank a specific competitor. diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/billing_setup.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/billing_setup.proto index c5f643de..143ee289 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/billing_setup.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/billing_setup.proto @@ -19,8 +19,8 @@ package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/enums/billing_setup_status.proto"; import "google/ads/googleads/v1/enums/time_type.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -77,7 +77,8 @@ message BillingSetup { google.protobuf.Int64Value id = 2; // The status of the billing setup. - google.ads.googleads.v1.enums.BillingSetupStatusEnum.BillingSetupStatus status = 3; + google.ads.googleads.v1.enums.BillingSetupStatusEnum.BillingSetupStatus + status = 3; // The resource name of the Payments account associated with this billing // setup. Payments resource names have the form: diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/campaign_bid_modifier.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/campaign_bid_modifier.proto index b4281f4e..6dfbb9ec 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/campaign_bid_modifier.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/campaign_bid_modifier.proto @@ -18,8 +18,8 @@ syntax = "proto3"; package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/common/criteria.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/campaign_budget.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/campaign_budget.proto index 7e6f9ec8..48555f96 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/campaign_budget.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/campaign_budget.proto @@ -21,8 +21,8 @@ import "google/ads/googleads/v1/enums/budget_delivery_method.proto"; import "google/ads/googleads/v1/enums/budget_period.proto"; import "google/ads/googleads/v1/enums/budget_status.proto"; import "google/ads/googleads/v1/enums/budget_type.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -79,7 +79,8 @@ message CampaignBudget { // is spent. // // Defaults to STANDARD if unspecified in a create operation. - google.ads.googleads.v1.enums.BudgetDeliveryMethodEnum.BudgetDeliveryMethod delivery_method = 7; + google.ads.googleads.v1.enums.BudgetDeliveryMethodEnum.BudgetDeliveryMethod + delivery_method = 7; // Specifies whether the budget is explicitly shared. Defaults to true if // unspecified in a create operation. @@ -122,24 +123,28 @@ message CampaignBudget { // The estimated change in weekly clicks if the recommended budget is applied. // // This field is read-only. - google.protobuf.Int64Value recommended_budget_estimated_change_weekly_clicks = 14; + google.protobuf.Int64Value recommended_budget_estimated_change_weekly_clicks = + 14; // The estimated change in weekly cost in micros if the recommended budget is // applied. One million is equivalent to one currency unit. // // This field is read-only. - google.protobuf.Int64Value recommended_budget_estimated_change_weekly_cost_micros = 15; + google.protobuf.Int64Value + recommended_budget_estimated_change_weekly_cost_micros = 15; // The estimated change in weekly interactions if the recommended budget is // applied. // // This field is read-only. - google.protobuf.Int64Value recommended_budget_estimated_change_weekly_interactions = 16; + google.protobuf.Int64Value + recommended_budget_estimated_change_weekly_interactions = 16; // The estimated change in weekly views if the recommended budget is applied. // // This field is read-only. - google.protobuf.Int64Value recommended_budget_estimated_change_weekly_views = 17; + google.protobuf.Int64Value recommended_budget_estimated_change_weekly_views = + 17; // The type of the campaign budget. google.ads.googleads.v1.enums.BudgetTypeEnum.BudgetType type = 18; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/campaign_criterion.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/campaign_criterion.proto index e8bd4a80..8c959400 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/campaign_criterion.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/campaign_criterion.proto @@ -20,8 +20,8 @@ package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/common/criteria.proto"; import "google/ads/googleads/v1/enums/campaign_criterion_status.proto"; import "google/ads/googleads/v1/enums/criterion_type.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -62,7 +62,8 @@ message CampaignCriterion { google.ads.googleads.v1.enums.CriterionTypeEnum.CriterionType type = 6; // The status of the criterion. - google.ads.googleads.v1.enums.CampaignCriterionStatusEnum.CampaignCriterionStatus status = 35; + google.ads.googleads.v1.enums.CampaignCriterionStatusEnum + .CampaignCriterionStatus status = 35; // The campaign criterion. // @@ -75,10 +76,12 @@ message CampaignCriterion { google.ads.googleads.v1.common.PlacementInfo placement = 9; // Mobile app category. - google.ads.googleads.v1.common.MobileAppCategoryInfo mobile_app_category = 10; + google.ads.googleads.v1.common.MobileAppCategoryInfo mobile_app_category = + 10; // Mobile application. - google.ads.googleads.v1.common.MobileApplicationInfo mobile_application = 11; + google.ads.googleads.v1.common.MobileApplicationInfo mobile_application = + 11; // Location. google.ads.googleads.v1.common.LocationInfo location = 12; @@ -138,7 +141,8 @@ message CampaignCriterion { google.ads.googleads.v1.common.WebpageInfo webpage = 31; // Operating system version. - google.ads.googleads.v1.common.OperatingSystemVersionInfo operating_system_version = 32; + google.ads.googleads.v1.common.OperatingSystemVersionInfo + operating_system_version = 32; // Mobile Device. google.ads.googleads.v1.common.MobileDeviceInfo mobile_device = 33; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/campaign_criterion_simulation.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/campaign_criterion_simulation.proto index 1b67bfdf..d85140b0 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/campaign_criterion_simulation.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/campaign_criterion_simulation.proto @@ -20,8 +20,8 @@ package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/common/simulation.proto"; import "google/ads/googleads/v1/enums/simulation_modification_method.proto"; import "google/ads/googleads/v1/enums/simulation_type.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -58,7 +58,8 @@ message CampaignCriterionSimulation { google.ads.googleads.v1.enums.SimulationTypeEnum.SimulationType type = 4; // How the simulation modifies the field. - google.ads.googleads.v1.enums.SimulationModificationMethodEnum.SimulationModificationMethod modification_method = 5; + google.ads.googleads.v1.enums.SimulationModificationMethodEnum + .SimulationModificationMethod modification_method = 5; // First day on which the simulation is based, in YYYY-MM-DD format. google.protobuf.StringValue start_date = 6; @@ -69,6 +70,7 @@ message CampaignCriterionSimulation { // List of simulation points. oneof point_list { // Simulation points if the simulation type is BID_MODIFIER. - google.ads.googleads.v1.common.BidModifierSimulationPointList bid_modifier_point_list = 8; + google.ads.googleads.v1.common.BidModifierSimulationPointList + bid_modifier_point_list = 8; } } diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/campaign_extension_setting.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/campaign_extension_setting.proto index 1af67adf..e225959c 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/campaign_extension_setting.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/campaign_extension_setting.proto @@ -19,8 +19,8 @@ package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/enums/extension_setting_device.proto"; import "google/ads/googleads/v1/enums/extension_type.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -43,7 +43,8 @@ message CampaignExtensionSetting { string resource_name = 1; // The extension type of the customer extension setting. - google.ads.googleads.v1.enums.ExtensionTypeEnum.ExtensionType extension_type = 2; + google.ads.googleads.v1.enums.ExtensionTypeEnum.ExtensionType extension_type = + 2; // The resource name of the campaign. The linked extension feed items will // serve under this campaign. @@ -59,5 +60,6 @@ message CampaignExtensionSetting { repeated google.protobuf.StringValue extension_feed_items = 4; // The device for which the extensions will serve. Optional. - google.ads.googleads.v1.enums.ExtensionSettingDeviceEnum.ExtensionSettingDevice device = 5; + google.ads.googleads.v1.enums.ExtensionSettingDeviceEnum + .ExtensionSettingDevice device = 5; } diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/campaign_feed.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/campaign_feed.proto index a7a904ea..234beb3f 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/campaign_feed.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/campaign_feed.proto @@ -20,8 +20,8 @@ package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/common/matching_function.proto"; import "google/ads/googleads/v1/enums/feed_link_status.proto"; import "google/ads/googleads/v1/enums/placeholder_type.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -50,7 +50,8 @@ message CampaignFeed { // Indicates which placeholder types the feed may populate under the connected // campaign. Required. - repeated google.ads.googleads.v1.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4; + repeated google.ads.googleads.v1.enums.PlaceholderTypeEnum.PlaceholderType + placeholder_types = 4; // Matching function associated with the CampaignFeed. // The matching function is used to filter the set of feed items selected. diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/campaign_label.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/campaign_label.proto index 52c49373..00aa7dba 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/campaign_label.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/campaign_label.proto @@ -17,8 +17,8 @@ syntax = "proto3"; package google.ads.googleads.v1.resources; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/campaign_shared_set.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/campaign_shared_set.proto index 5c87b3e8..80b82991 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/campaign_shared_set.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/campaign_shared_set.proto @@ -18,8 +18,8 @@ syntax = "proto3"; package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/enums/campaign_shared_set_status.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -53,5 +53,6 @@ message CampaignSharedSet { google.protobuf.StringValue shared_set = 4; // The status of this campaign shared set. Read only. - google.ads.googleads.v1.enums.CampaignSharedSetStatusEnum.CampaignSharedSetStatus status = 2; + google.ads.googleads.v1.enums.CampaignSharedSetStatusEnum + .CampaignSharedSetStatus status = 2; } diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/carrier_constant.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/carrier_constant.proto index 044f40be..944a60bb 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/carrier_constant.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/carrier_constant.proto @@ -17,8 +17,8 @@ syntax = "proto3"; package google.ads.googleads.v1.resources; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/change_status.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/change_status.proto index 2d6bc791..22b759d1 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/change_status.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/change_status.proto @@ -19,8 +19,8 @@ package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/enums/change_status_operation.proto"; import "google/ads/googleads/v1/enums/change_status_resource_type.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -47,7 +47,8 @@ message ChangeStatus { // Represents the type of the changed resource. This dictates what fields // will be set. For example, for AD_GROUP, campaign and ad_group fields will // be set. - google.ads.googleads.v1.enums.ChangeStatusResourceTypeEnum.ChangeStatusResourceType resource_type = 4; + google.ads.googleads.v1.enums.ChangeStatusResourceTypeEnum + .ChangeStatusResourceType resource_type = 4; // The Campaign affected by this change. google.protobuf.StringValue campaign = 5; @@ -56,7 +57,8 @@ message ChangeStatus { google.protobuf.StringValue ad_group = 6; // Represents the status of the changed resource. - google.ads.googleads.v1.enums.ChangeStatusOperationEnum.ChangeStatusOperation resource_status = 8; + google.ads.googleads.v1.enums.ChangeStatusOperationEnum.ChangeStatusOperation + resource_status = 8; // The AdGroupAd affected by this change. google.protobuf.StringValue ad_group_ad = 9; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/click_view.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/click_view.proto index 49572d34..f7e5912b 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/click_view.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/click_view.proto @@ -18,8 +18,8 @@ syntax = "proto3"; package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/common/click_location.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/conversion_action.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/conversion_action.proto index 1fa8c3b2..0918eefb 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/conversion_action.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/conversion_action.proto @@ -24,8 +24,8 @@ import "google/ads/googleads/v1/enums/conversion_action_counting_type.proto"; import "google/ads/googleads/v1/enums/conversion_action_status.proto"; import "google/ads/googleads/v1/enums/conversion_action_type.proto"; import "google/ads/googleads/v1/enums/data_driven_model_status.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -43,11 +43,13 @@ message ConversionAction { // Settings related to this conversion action's attribution model. message AttributionModelSettings { // The attribution model type of this conversion action. - google.ads.googleads.v1.enums.AttributionModelEnum.AttributionModel attribution_model = 1; + google.ads.googleads.v1.enums.AttributionModelEnum.AttributionModel + attribution_model = 1; // The status of the data-driven attribution model for the conversion // action. - google.ads.googleads.v1.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus data_driven_model_status = 2; + google.ads.googleads.v1.enums.DataDrivenModelStatusEnum + .DataDrivenModelStatus data_driven_model_status = 2; } // Settings related to the value for conversion events associated with this @@ -85,13 +87,16 @@ message ConversionAction { google.protobuf.StringValue name = 3; // The status of this conversion action for conversion event accrual. - google.ads.googleads.v1.enums.ConversionActionStatusEnum.ConversionActionStatus status = 4; + google.ads.googleads.v1.enums.ConversionActionStatusEnum + .ConversionActionStatus status = 4; // The type of this conversion action. - google.ads.googleads.v1.enums.ConversionActionTypeEnum.ConversionActionType type = 5; + google.ads.googleads.v1.enums.ConversionActionTypeEnum.ConversionActionType + type = 5; // The category of conversions reported for this conversion action. - google.ads.googleads.v1.enums.ConversionActionCategoryEnum.ConversionActionCategory category = 6; + google.ads.googleads.v1.enums.ConversionActionCategoryEnum + .ConversionActionCategory category = 6; // The resource name of the conversion action owner customer, or null if this // is a system-defined conversion action. @@ -114,7 +119,8 @@ message ConversionAction { ValueSettings value_settings = 11; // How to count conversion events for the conversion action. - google.ads.googleads.v1.enums.ConversionActionCountingTypeEnum.ConversionActionCountingType counting_type = 12; + google.ads.googleads.v1.enums.ConversionActionCountingTypeEnum + .ConversionActionCountingType counting_type = 12; // Settings related to this conversion action's attribution model. AttributionModelSettings attribution_model_settings = 13; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/custom_interest.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/custom_interest.proto index 98a804fd..933513df 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/custom_interest.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/custom_interest.proto @@ -20,8 +20,8 @@ package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/enums/custom_interest_member_type.proto"; import "google/ads/googleads/v1/enums/custom_interest_status.proto"; import "google/ads/googleads/v1/enums/custom_interest_type.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -47,7 +47,8 @@ message CustomInterest { // Status of this custom interest. Indicates whether the custom interest is // enabled or removed. - google.ads.googleads.v1.enums.CustomInterestStatusEnum.CustomInterestStatus status = 3; + google.ads.googleads.v1.enums.CustomInterestStatusEnum.CustomInterestStatus + status = 3; // Name of the custom interest. It should be unique across the same custom // affinity audience. @@ -56,7 +57,8 @@ message CustomInterest { // Type of the custom interest, CUSTOM_AFFINITY or CUSTOM_INTENT. // By default the type is set to CUSTOM_AFFINITY. - google.ads.googleads.v1.enums.CustomInterestTypeEnum.CustomInterestType type = 5; + google.ads.googleads.v1.enums.CustomInterestTypeEnum.CustomInterestType type = + 5; // Description of this custom interest audience. google.protobuf.StringValue description = 6; @@ -71,7 +73,8 @@ message CustomInterest { // It is immutable, that is, it can only be created or removed but not changed. message CustomInterestMember { // The type of custom interest member, KEYWORD or URL. - google.ads.googleads.v1.enums.CustomInterestMemberTypeEnum.CustomInterestMemberType member_type = 1; + google.ads.googleads.v1.enums.CustomInterestMemberTypeEnum + .CustomInterestMemberType member_type = 1; // Keyword text when member_type is KEYWORD or URL string when // member_type is URL. diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/customer.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/customer.proto index 80d32f56..e03a0d9f 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/customer.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/customer.proto @@ -18,8 +18,8 @@ syntax = "proto3"; package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/enums/customer_pay_per_conversion_eligibility_failure_reason.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -85,7 +85,10 @@ message Customer { // Reasons why the customer is not eligible to use PaymentMode.CONVERSIONS. If // the list is empty, the customer is eligible. This field is read-only. - repeated google.ads.googleads.v1.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason pay_per_conversion_eligibility_failure_reasons = 16; + repeated google.ads.googleads.v1.enums + .CustomerPayPerConversionEligibilityFailureReasonEnum + .CustomerPayPerConversionEligibilityFailureReason + pay_per_conversion_eligibility_failure_reasons = 16; } // Call reporting setting for a customer. diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/customer_client.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/customer_client.proto index e4a52af4..fd47f784 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/customer_client.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/customer_client.proto @@ -17,8 +17,8 @@ syntax = "proto3"; package google.ads.googleads.v1.resources; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/customer_client_link.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/customer_client_link.proto index 27e3d7a4..e6c188a0 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/customer_client_link.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/customer_client_link.proto @@ -18,8 +18,8 @@ syntax = "proto3"; package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/enums/manager_link_status.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -47,7 +47,8 @@ message CustomerClientLink { google.protobuf.Int64Value manager_link_id = 4; // This is the status of the link between client and manager. - google.ads.googleads.v1.enums.ManagerLinkStatusEnum.ManagerLinkStatus status = 5; + google.ads.googleads.v1.enums.ManagerLinkStatusEnum.ManagerLinkStatus status = + 5; // The visibility of the link. Users can choose whether or not to see hidden // links in the AdWords UI. diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/customer_extension_setting.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/customer_extension_setting.proto index 20af1c57..4ef620bc 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/customer_extension_setting.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/customer_extension_setting.proto @@ -19,8 +19,8 @@ package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/enums/extension_setting_device.proto"; import "google/ads/googleads/v1/enums/extension_type.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -42,7 +42,8 @@ message CustomerExtensionSetting { string resource_name = 1; // The extension type of the customer extension setting. - google.ads.googleads.v1.enums.ExtensionTypeEnum.ExtensionType extension_type = 2; + google.ads.googleads.v1.enums.ExtensionTypeEnum.ExtensionType extension_type = + 2; // The resource names of the extension feed items to serve under the customer. // ExtensionFeedItem resource names have the form: @@ -51,5 +52,6 @@ message CustomerExtensionSetting { repeated google.protobuf.StringValue extension_feed_items = 3; // The device for which the extensions will serve. Optional. - google.ads.googleads.v1.enums.ExtensionSettingDeviceEnum.ExtensionSettingDevice device = 4; + google.ads.googleads.v1.enums.ExtensionSettingDeviceEnum + .ExtensionSettingDevice device = 4; } diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/customer_feed.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/customer_feed.proto index fc74ec3a..a81cfa47 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/customer_feed.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/customer_feed.proto @@ -20,8 +20,8 @@ package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/common/matching_function.proto"; import "google/ads/googleads/v1/enums/feed_link_status.proto"; import "google/ads/googleads/v1/enums/placeholder_type.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -47,7 +47,8 @@ message CustomerFeed { // Indicates which placeholder types the feed may populate under the connected // customer. Required. - repeated google.ads.googleads.v1.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 3; + repeated google.ads.googleads.v1.enums.PlaceholderTypeEnum.PlaceholderType + placeholder_types = 3; // Matching function associated with the CustomerFeed. // The matching function is used to filter the set of feed items selected. diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/customer_label.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/customer_label.proto index 39230e02..28c994e1 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/customer_label.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/customer_label.proto @@ -17,8 +17,8 @@ syntax = "proto3"; package google.ads.googleads.v1.resources; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/customer_manager_link.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/customer_manager_link.proto index a2ed177c..d6f406c7 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/customer_manager_link.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/customer_manager_link.proto @@ -18,8 +18,8 @@ syntax = "proto3"; package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/enums/manager_link_status.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -47,5 +47,6 @@ message CustomerManagerLink { google.protobuf.Int64Value manager_link_id = 4; // Status of the link between the customer and the manager. - google.ads.googleads.v1.enums.ManagerLinkStatusEnum.ManagerLinkStatus status = 5; + google.ads.googleads.v1.enums.ManagerLinkStatusEnum.ManagerLinkStatus status = + 5; } diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/customer_negative_criterion.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/customer_negative_criterion.proto index 8db93247..20af93ed 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/customer_negative_criterion.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/customer_negative_criterion.proto @@ -19,8 +19,8 @@ package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/common/criteria.proto"; import "google/ads/googleads/v1/enums/criterion_type.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -58,7 +58,8 @@ message CustomerNegativeCriterion { google.ads.googleads.v1.common.MobileApplicationInfo mobile_application = 5; // MobileAppCategory. - google.ads.googleads.v1.common.MobileAppCategoryInfo mobile_app_category = 6; + google.ads.googleads.v1.common.MobileAppCategoryInfo mobile_app_category = + 6; // Placement. google.ads.googleads.v1.common.PlacementInfo placement = 7; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/detail_placement_view.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/detail_placement_view.proto index 52723440..1007504c 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/detail_placement_view.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/detail_placement_view.proto @@ -18,8 +18,8 @@ syntax = "proto3"; package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/enums/placement_type.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -58,5 +58,6 @@ message DetailPlacementView { google.protobuf.StringValue target_url = 5; // Type of the placement, e.g. Website, YouTube Video, and Mobile Application. - google.ads.googleads.v1.enums.PlacementTypeEnum.PlacementType placement_type = 6; + google.ads.googleads.v1.enums.PlacementTypeEnum.PlacementType placement_type = + 6; } diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/domain_category.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/domain_category.proto index 054a1db2..0cd40add 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/domain_category.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/domain_category.proto @@ -17,8 +17,8 @@ syntax = "proto3"; package google.ads.googleads.v1.resources; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/dynamic_search_ads_search_term_view.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/dynamic_search_ads_search_term_view.proto index f1b901a9..3332eb18 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/dynamic_search_ads_search_term_view.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/dynamic_search_ads_search_term_view.proto @@ -17,8 +17,8 @@ syntax = "proto3"; package google.ads.googleads.v1.resources; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/expanded_landing_page_view.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/expanded_landing_page_view.proto index a231f5d5..72115b4f 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/expanded_landing_page_view.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/expanded_landing_page_view.proto @@ -17,8 +17,8 @@ syntax = "proto3"; package google.ads.googleads.v1.resources; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/extension_feed_item.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/extension_feed_item.proto index 3d761c65..6dd6e2dc 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/extension_feed_item.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/extension_feed_item.proto @@ -22,8 +22,8 @@ import "google/ads/googleads/v1/common/extensions.proto"; import "google/ads/googleads/v1/enums/extension_type.proto"; import "google/ads/googleads/v1/enums/feed_item_status.proto"; import "google/ads/googleads/v1/enums/feed_item_target_device.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -46,7 +46,8 @@ message ExtensionFeedItem { // The extension type of the extension feed item. // This field is read-only. - google.ads.googleads.v1.enums.ExtensionTypeEnum.ExtensionType extension_type = 13; + google.ads.googleads.v1.enums.ExtensionTypeEnum.ExtensionType extension_type = + 13; // Start time in which this feed item is effective and can begin serving. // The format is "YYYY-MM-DD HH:MM:SS". @@ -65,7 +66,8 @@ message ExtensionFeedItem { repeated google.ads.googleads.v1.common.AdScheduleInfo ad_schedules = 16; // The targeted device. - google.ads.googleads.v1.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice device = 17; + google.ads.googleads.v1.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice + device = 17; // The targeted geo target constant. google.protobuf.StringValue targeted_geo_target_constant = 20; @@ -80,7 +82,8 @@ message ExtensionFeedItem { google.ads.googleads.v1.common.SitelinkFeedItem sitelink_feed_item = 2; // Structured snippet extension. - google.ads.googleads.v1.common.StructuredSnippetFeedItem structured_snippet_feed_item = 3; + google.ads.googleads.v1.common.StructuredSnippetFeedItem + structured_snippet_feed_item = 3; // App extension. google.ads.googleads.v1.common.AppFeedItem app_feed_item = 7; @@ -92,7 +95,8 @@ message ExtensionFeedItem { google.ads.googleads.v1.common.CalloutFeedItem callout_feed_item = 9; // Text message extension. - google.ads.googleads.v1.common.TextMessageFeedItem text_message_feed_item = 10; + google.ads.googleads.v1.common.TextMessageFeedItem text_message_feed_item = + 10; // Price extension. google.ads.googleads.v1.common.PriceFeedItem price_feed_item = 11; @@ -107,7 +111,8 @@ message ExtensionFeedItem { // Affiliate location extension. Feed locations are populated by Google Ads // based on a chain ID. // This field is read-only. - google.ads.googleads.v1.common.AffiliateLocationFeedItem affiliate_location_feed_item = 15; + google.ads.googleads.v1.common.AffiliateLocationFeedItem + affiliate_location_feed_item = 15; } // Targeting at either the campaign or ad group level. Feed items that target diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/feed.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/feed.proto index 9bf8d7ca..2df4a00d 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/feed.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/feed.proto @@ -21,8 +21,8 @@ import "google/ads/googleads/v1/enums/affiliate_location_feed_relationship_type. import "google/ads/googleads/v1/enums/feed_attribute_type.proto"; import "google/ads/googleads/v1/enums/feed_origin.proto"; import "google/ads/googleads/v1/enums/feed_status.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -93,7 +93,8 @@ message Feed { repeated google.protobuf.Int64Value chain_ids = 1; // The relationship the chains have with the advertiser. - google.ads.googleads.v1.enums.AffiliateLocationFeedRelationshipTypeEnum.AffiliateLocationFeedRelationshipType relationship_type = 2; + google.ads.googleads.v1.enums.AffiliateLocationFeedRelationshipTypeEnum + .AffiliateLocationFeedRelationshipType relationship_type = 2; } // The resource name of the feed. @@ -149,7 +150,8 @@ message FeedAttribute { google.protobuf.StringValue name = 2; // Data type for feed attribute. Required. - google.ads.googleads.v1.enums.FeedAttributeTypeEnum.FeedAttributeType type = 3; + google.ads.googleads.v1.enums.FeedAttributeTypeEnum.FeedAttributeType type = + 3; // Indicates that data corresponding to this attribute is part of a // FeedItem's unique key. It defaults to false if it is unspecified. Note diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/feed_item.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/feed_item.proto index c477e2d7..d0885dac 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/feed_item.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/feed_item.proto @@ -28,8 +28,8 @@ import "google/ads/googleads/v1/enums/geo_targeting_restriction.proto"; import "google/ads/googleads/v1/enums/policy_approval_status.proto"; import "google/ads/googleads/v1/enums/policy_review_status.proto"; import "google/ads/googleads/v1/errors/feed_item_validation_error.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -72,11 +72,13 @@ message FeedItem { // Geo targeting restriction specifies the type of location that can be used // for targeting. - google.ads.googleads.v1.enums.GeoTargetingRestrictionEnum.GeoTargetingRestriction geo_targeting_restriction = 7; + google.ads.googleads.v1.enums.GeoTargetingRestrictionEnum + .GeoTargetingRestriction geo_targeting_restriction = 7; // The list of mappings used to substitute custom parameter tags in a // `tracking_url_template`, `final_urls`, or `mobile_final_urls`. - repeated google.ads.googleads.v1.common.CustomParameter url_custom_parameters = 8; + repeated google.ads.googleads.v1.common.CustomParameter + url_custom_parameters = 8; // Status of the feed item. // This field is read-only. @@ -153,26 +155,32 @@ message FeedItemPlaceholderPolicyInfo { google.protobuf.StringValue feed_mapping_resource_name = 2; // Where the placeholder type is in the review process. - google.ads.googleads.v1.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 3; + google.ads.googleads.v1.enums.PolicyReviewStatusEnum.PolicyReviewStatus + review_status = 3; // The overall approval status of the placeholder type, calculated based on // the status of its individual policy topic entries. - google.ads.googleads.v1.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 4; + google.ads.googleads.v1.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus + approval_status = 4; // The list of policy findings for the placeholder type. - repeated google.ads.googleads.v1.common.PolicyTopicEntry policy_topic_entries = 5; + repeated google.ads.googleads.v1.common.PolicyTopicEntry + policy_topic_entries = 5; // The validation status of the palceholder type. - google.ads.googleads.v1.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus validation_status = 6; + google.ads.googleads.v1.enums.FeedItemValidationStatusEnum + .FeedItemValidationStatus validation_status = 6; // List of placeholder type validation errors. repeated FeedItemValidationError validation_errors = 7; // Placeholder type quality evaluation approval status. - google.ads.googleads.v1.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus quality_approval_status = 8; + google.ads.googleads.v1.enums.FeedItemQualityApprovalStatusEnum + .FeedItemQualityApprovalStatus quality_approval_status = 8; // List of placeholder type quality evaluation disapproval reasons. - repeated google.ads.googleads.v1.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9; + repeated google.ads.googleads.v1.enums.FeedItemQualityDisapprovalReasonEnum + .FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9; } // Stores a validation error and the set of offending feed attributes which @@ -180,7 +188,8 @@ message FeedItemPlaceholderPolicyInfo { message FeedItemValidationError { // Error code indicating what validation error was triggered. The description // of the error can be found in the 'description' field. - google.ads.googleads.v1.errors.FeedItemValidationErrorEnum.FeedItemValidationError validation_error = 1; + google.ads.googleads.v1.errors.FeedItemValidationErrorEnum + .FeedItemValidationError validation_error = 1; // The description of the validation error. google.protobuf.StringValue description = 2; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/feed_item_target.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/feed_item_target.proto index ae8f0c94..cbff9f82 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/feed_item_target.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/feed_item_target.proto @@ -20,8 +20,8 @@ package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/common/criteria.proto"; import "google/ads/googleads/v1/enums/feed_item_target_device.proto"; import "google/ads/googleads/v1/enums/feed_item_target_type.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -46,7 +46,8 @@ message FeedItemTarget { google.protobuf.StringValue feed_item = 2; // The target type of this feed item target. This field is read-only. - google.ads.googleads.v1.enums.FeedItemTargetTypeEnum.FeedItemTargetType feed_item_target_type = 3; + google.ads.googleads.v1.enums.FeedItemTargetTypeEnum.FeedItemTargetType + feed_item_target_type = 3; // The ID of the targeted resource. This field is read-only. google.protobuf.Int64Value feed_item_target_id = 6; @@ -66,7 +67,8 @@ message FeedItemTarget { google.protobuf.StringValue geo_target_constant = 8; // The targeted device. - google.ads.googleads.v1.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice device = 9; + google.ads.googleads.v1.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice + device = 9; // The targeted schedule. google.ads.googleads.v1.common.AdScheduleInfo ad_schedule = 10; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/feed_mapping.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/feed_mapping.proto index 6cade562..57292cf9 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/feed_mapping.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/feed_mapping.proto @@ -41,8 +41,8 @@ import "google/ads/googleads/v1/enums/real_estate_placeholder_field.proto"; import "google/ads/googleads/v1/enums/sitelink_placeholder_field.proto"; import "google/ads/googleads/v1/enums/structured_snippet_placeholder_field.proto"; import "google/ads/googleads/v1/enums/travel_placeholder_field.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -75,18 +75,21 @@ message FeedMapping { // Status of the feed mapping. // This field is read-only. - google.ads.googleads.v1.enums.FeedMappingStatusEnum.FeedMappingStatus status = 6; + google.ads.googleads.v1.enums.FeedMappingStatusEnum.FeedMappingStatus status = + 6; // Feed mapping target. Can be either a placeholder or a criterion. For a // given feed, the active FeedMappings must have unique targets. Required. oneof target { // The placeholder type of this mapping (i.e., if the mapping maps feed // attributes to placeholder fields). - google.ads.googleads.v1.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type = 3; + google.ads.googleads.v1.enums.PlaceholderTypeEnum.PlaceholderType + placeholder_type = 3; // The criterion type of this mapping (i.e., if the mapping maps feed // attributes to criterion fields). - google.ads.googleads.v1.enums.FeedMappingCriterionTypeEnum.FeedMappingCriterionType criterion_type = 4; + google.ads.googleads.v1.enums.FeedMappingCriterionTypeEnum + .FeedMappingCriterionType criterion_type = 4; } } @@ -105,66 +108,88 @@ message AttributeFieldMapping { // the above feed attribute. Required. oneof field { // Sitelink Placeholder Fields. - google.ads.googleads.v1.enums.SitelinkPlaceholderFieldEnum.SitelinkPlaceholderField sitelink_field = 3; + google.ads.googleads.v1.enums.SitelinkPlaceholderFieldEnum + .SitelinkPlaceholderField sitelink_field = 3; // Call Placeholder Fields. - google.ads.googleads.v1.enums.CallPlaceholderFieldEnum.CallPlaceholderField call_field = 4; + google.ads.googleads.v1.enums.CallPlaceholderFieldEnum.CallPlaceholderField + call_field = 4; // App Placeholder Fields. - google.ads.googleads.v1.enums.AppPlaceholderFieldEnum.AppPlaceholderField app_field = 5; + google.ads.googleads.v1.enums.AppPlaceholderFieldEnum.AppPlaceholderField + app_field = 5; // Location Placeholder Fields. This field is read-only. - google.ads.googleads.v1.enums.LocationPlaceholderFieldEnum.LocationPlaceholderField location_field = 6; + google.ads.googleads.v1.enums.LocationPlaceholderFieldEnum + .LocationPlaceholderField location_field = 6; // Affiliate Location Placeholder Fields. This field is read-only. - google.ads.googleads.v1.enums.AffiliateLocationPlaceholderFieldEnum.AffiliateLocationPlaceholderField affiliate_location_field = 7; + google.ads.googleads.v1.enums.AffiliateLocationPlaceholderFieldEnum + .AffiliateLocationPlaceholderField affiliate_location_field = 7; // Callout Placeholder Fields. - google.ads.googleads.v1.enums.CalloutPlaceholderFieldEnum.CalloutPlaceholderField callout_field = 8; + google.ads.googleads.v1.enums.CalloutPlaceholderFieldEnum + .CalloutPlaceholderField callout_field = 8; // Structured Snippet Placeholder Fields. - google.ads.googleads.v1.enums.StructuredSnippetPlaceholderFieldEnum.StructuredSnippetPlaceholderField structured_snippet_field = 9; + google.ads.googleads.v1.enums.StructuredSnippetPlaceholderFieldEnum + .StructuredSnippetPlaceholderField structured_snippet_field = 9; // Message Placeholder Fields. - google.ads.googleads.v1.enums.MessagePlaceholderFieldEnum.MessagePlaceholderField message_field = 10; + google.ads.googleads.v1.enums.MessagePlaceholderFieldEnum + .MessagePlaceholderField message_field = 10; // Price Placeholder Fields. - google.ads.googleads.v1.enums.PricePlaceholderFieldEnum.PricePlaceholderField price_field = 11; + google.ads.googleads.v1.enums.PricePlaceholderFieldEnum + .PricePlaceholderField price_field = 11; // Promotion Placeholder Fields. - google.ads.googleads.v1.enums.PromotionPlaceholderFieldEnum.PromotionPlaceholderField promotion_field = 12; + google.ads.googleads.v1.enums.PromotionPlaceholderFieldEnum + .PromotionPlaceholderField promotion_field = 12; // Ad Customizer Placeholder Fields - google.ads.googleads.v1.enums.AdCustomizerPlaceholderFieldEnum.AdCustomizerPlaceholderField ad_customizer_field = 13; + google.ads.googleads.v1.enums.AdCustomizerPlaceholderFieldEnum + .AdCustomizerPlaceholderField ad_customizer_field = 13; // Dynamic Search Ad Page Feed Fields. - google.ads.googleads.v1.enums.DsaPageFeedCriterionFieldEnum.DsaPageFeedCriterionField dsa_page_feed_field = 14; + google.ads.googleads.v1.enums.DsaPageFeedCriterionFieldEnum + .DsaPageFeedCriterionField dsa_page_feed_field = 14; // Location Target Fields. - google.ads.googleads.v1.enums.LocationExtensionTargetingCriterionFieldEnum.LocationExtensionTargetingCriterionField location_extension_targeting_field = 15; + google.ads.googleads.v1.enums.LocationExtensionTargetingCriterionFieldEnum + .LocationExtensionTargetingCriterionField + location_extension_targeting_field = 15; // Education Placeholder Fields - google.ads.googleads.v1.enums.EducationPlaceholderFieldEnum.EducationPlaceholderField education_field = 16; + google.ads.googleads.v1.enums.EducationPlaceholderFieldEnum + .EducationPlaceholderField education_field = 16; // Flight Placeholder Fields - google.ads.googleads.v1.enums.FlightPlaceholderFieldEnum.FlightPlaceholderField flight_field = 17; + google.ads.googleads.v1.enums.FlightPlaceholderFieldEnum + .FlightPlaceholderField flight_field = 17; // Custom Placeholder Fields - google.ads.googleads.v1.enums.CustomPlaceholderFieldEnum.CustomPlaceholderField custom_field = 18; + google.ads.googleads.v1.enums.CustomPlaceholderFieldEnum + .CustomPlaceholderField custom_field = 18; // Hotel Placeholder Fields - google.ads.googleads.v1.enums.HotelPlaceholderFieldEnum.HotelPlaceholderField hotel_field = 19; + google.ads.googleads.v1.enums.HotelPlaceholderFieldEnum + .HotelPlaceholderField hotel_field = 19; // Real Estate Placeholder Fields - google.ads.googleads.v1.enums.RealEstatePlaceholderFieldEnum.RealEstatePlaceholderField real_estate_field = 20; + google.ads.googleads.v1.enums.RealEstatePlaceholderFieldEnum + .RealEstatePlaceholderField real_estate_field = 20; // Travel Placeholder Fields - google.ads.googleads.v1.enums.TravelPlaceholderFieldEnum.TravelPlaceholderField travel_field = 21; + google.ads.googleads.v1.enums.TravelPlaceholderFieldEnum + .TravelPlaceholderField travel_field = 21; // Local Placeholder Fields - google.ads.googleads.v1.enums.LocalPlaceholderFieldEnum.LocalPlaceholderField local_field = 22; + google.ads.googleads.v1.enums.LocalPlaceholderFieldEnum + .LocalPlaceholderField local_field = 22; // Job Placeholder Fields - google.ads.googleads.v1.enums.JobPlaceholderFieldEnum.JobPlaceholderField job_field = 23; + google.ads.googleads.v1.enums.JobPlaceholderFieldEnum.JobPlaceholderField + job_field = 23; } } diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/feed_placeholder_view.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/feed_placeholder_view.proto index 381375c6..0b03a883 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/feed_placeholder_view.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/feed_placeholder_view.proto @@ -40,5 +40,6 @@ message FeedPlaceholderView { string resource_name = 1; // The placeholder type of the feed placeholder view. - google.ads.googleads.v1.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type = 2; + google.ads.googleads.v1.enums.PlaceholderTypeEnum.PlaceholderType + placeholder_type = 2; } diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/geo_target_constant.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/geo_target_constant.proto index fc458721..e89d7e99 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/geo_target_constant.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/geo_target_constant.proto @@ -18,8 +18,8 @@ syntax = "proto3"; package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/enums/geo_target_constant_status.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -53,7 +53,8 @@ message GeoTargetConstant { google.protobuf.StringValue target_type = 6; // Geo target constant status. - google.ads.googleads.v1.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus status = 7; + google.ads.googleads.v1.enums.GeoTargetConstantStatusEnum + .GeoTargetConstantStatus status = 7; // The fully qualified English name, consisting of the target's name and that // of its parent and country. diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/geographic_view.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/geographic_view.proto index 9c674f93..9514db05 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/geographic_view.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/geographic_view.proto @@ -18,8 +18,8 @@ syntax = "proto3"; package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/enums/geo_targeting_type.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -50,5 +50,6 @@ message GeographicView { google.protobuf.StringValue country_geo_target_constant = 2; // Type of the geo targeting of the campaign. - google.ads.googleads.v1.enums.GeoTargetingTypeEnum.GeoTargetingType location_type = 3; + google.ads.googleads.v1.enums.GeoTargetingTypeEnum.GeoTargetingType + location_type = 3; } diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/google_ads_field.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/google_ads_field.proto index 1a1825b9..bb7fe280 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/google_ads_field.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/google_ads_field.proto @@ -19,8 +19,8 @@ package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/enums/google_ads_field_category.proto"; import "google/ads/googleads/v1/enums/google_ads_field_data_type.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -45,7 +45,8 @@ message GoogleAdsField { google.protobuf.StringValue name = 2; // The category of the artifact. - google.ads.googleads.v1.enums.GoogleAdsFieldCategoryEnum.GoogleAdsFieldCategory category = 3; + google.ads.googleads.v1.enums.GoogleAdsFieldCategoryEnum + .GoogleAdsFieldCategory category = 3; // Whether the artifact can be used in a SELECT clause in search // queries. @@ -97,7 +98,8 @@ message GoogleAdsField { // This field determines the operators that can be used with the artifact // in WHERE clauses. - google.ads.googleads.v1.enums.GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataType data_type = 12; + google.ads.googleads.v1.enums.GoogleAdsFieldDataTypeEnum + .GoogleAdsFieldDataType data_type = 12; // The URL of proto describing the artifact's data type. google.protobuf.StringValue type_url = 13; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/group_placement_view.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/group_placement_view.proto index 2409f349..1eb44e61 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/group_placement_view.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/group_placement_view.proto @@ -18,8 +18,8 @@ syntax = "proto3"; package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/enums/placement_type.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -53,5 +53,6 @@ message GroupPlacementView { google.protobuf.StringValue target_url = 4; // Type of the placement, e.g. Website, YouTube Channel, Mobile Application. - google.ads.googleads.v1.enums.PlacementTypeEnum.PlacementType placement_type = 5; + google.ads.googleads.v1.enums.PlacementTypeEnum.PlacementType placement_type = + 5; } diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/keyword_plan.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/keyword_plan.proto index 75ebfea5..fd2d38f9 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/keyword_plan.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/keyword_plan.proto @@ -19,8 +19,8 @@ package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/common/dates.proto"; import "google/ads/googleads/v1/enums/keyword_plan_forecast_interval.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -61,7 +61,8 @@ message KeywordPlanForecastPeriod { // Required. The date used for forecasting the Plan. oneof interval { // A future date range relative to the current date used for forecasting. - google.ads.googleads.v1.enums.KeywordPlanForecastIntervalEnum.KeywordPlanForecastInterval date_interval = 1; + google.ads.googleads.v1.enums.KeywordPlanForecastIntervalEnum + .KeywordPlanForecastInterval date_interval = 1; // The custom date range used for forecasting. // The start and end dates must be in the future. Otherwise, an error will diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/keyword_plan_ad_group.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/keyword_plan_ad_group.proto index ce47f1a8..c3d31c8b 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/keyword_plan_ad_group.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/keyword_plan_ad_group.proto @@ -17,8 +17,8 @@ syntax = "proto3"; package google.ads.googleads.v1.resources; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/keyword_plan_campaign.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/keyword_plan_campaign.proto index 6a154d3c..8e26b57c 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/keyword_plan_campaign.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/keyword_plan_campaign.proto @@ -18,8 +18,8 @@ syntax = "proto3"; package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/enums/keyword_plan_network.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -61,7 +61,8 @@ message KeywordPlanCampaign { // // This field is required and should not be empty when creating Keyword Plan // campaigns. - google.ads.googleads.v1.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork keyword_plan_network = 6; + google.ads.googleads.v1.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork + keyword_plan_network = 6; // A default max cpc bid in micros, and in the account currency, for all ad // groups under the campaign. diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/keyword_plan_keyword.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/keyword_plan_keyword.proto index b88da549..6e969a7b 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/keyword_plan_keyword.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/keyword_plan_keyword.proto @@ -18,8 +18,8 @@ syntax = "proto3"; package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/enums/keyword_match_type.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -51,7 +51,8 @@ message KeywordPlanKeyword { google.protobuf.StringValue text = 4; // The keyword match type. - google.ads.googleads.v1.enums.KeywordMatchTypeEnum.KeywordMatchType match_type = 5; + google.ads.googleads.v1.enums.KeywordMatchTypeEnum.KeywordMatchType + match_type = 5; // A keyword level max cpc bid in micros, in the account currency, that // overrides the keyword plan ad group cpc bid. diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/keyword_plan_negative_keyword.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/keyword_plan_negative_keyword.proto index 5c6b7996..546dd454 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/keyword_plan_negative_keyword.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/keyword_plan_negative_keyword.proto @@ -18,8 +18,8 @@ syntax = "proto3"; package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/enums/keyword_match_type.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -52,5 +52,6 @@ message KeywordPlanNegativeKeyword { google.protobuf.StringValue text = 4; // The keyword match type. - google.ads.googleads.v1.enums.KeywordMatchTypeEnum.KeywordMatchType match_type = 5; + google.ads.googleads.v1.enums.KeywordMatchTypeEnum.KeywordMatchType + match_type = 5; } diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/label.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/label.proto index 647110a9..aa30abe0 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/label.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/label.proto @@ -19,8 +19,8 @@ package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/common/text_label.proto"; import "google/ads/googleads/v1/enums/label_status.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/landing_page_view.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/landing_page_view.proto index 9b757e03..f2aa756c 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/landing_page_view.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/landing_page_view.proto @@ -17,8 +17,8 @@ syntax = "proto3"; package google.ads.googleads.v1.resources; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/language_constant.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/language_constant.proto index 9141c413..77c7a2db 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/language_constant.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/language_constant.proto @@ -17,8 +17,8 @@ syntax = "proto3"; package google.ads.googleads.v1.resources; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/media_file.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/media_file.proto index ecf8d832..5002b006 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/media_file.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/media_file.proto @@ -19,8 +19,8 @@ package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/enums/media_type.proto"; import "google/ads/googleads/v1/enums/mime_type.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/merchant_center_link.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/merchant_center_link.proto index 327608e3..55100b26 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/merchant_center_link.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/merchant_center_link.proto @@ -18,8 +18,8 @@ syntax = "proto3"; package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/enums/merchant_center_link_status.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -50,5 +50,6 @@ message MerchantCenterLink { google.protobuf.StringValue merchant_center_account_name = 4; // The status of the link. - google.ads.googleads.v1.enums.MerchantCenterLinkStatusEnum.MerchantCenterLinkStatus status = 5; + google.ads.googleads.v1.enums.MerchantCenterLinkStatusEnum + .MerchantCenterLinkStatus status = 5; } diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/mobile_app_category_constant.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/mobile_app_category_constant.proto index 0ef7d076..f859dc04 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/mobile_app_category_constant.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/mobile_app_category_constant.proto @@ -17,8 +17,8 @@ syntax = "proto3"; package google.ads.googleads.v1.resources; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/mobile_device_constant.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/mobile_device_constant.proto index 6169cd2c..b68852ce 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/mobile_device_constant.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/mobile_device_constant.proto @@ -18,8 +18,8 @@ syntax = "proto3"; package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/enums/mobile_device_type.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/mutate_job.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/mutate_job.proto index e1918f97..038ca8ba 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/mutate_job.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/mutate_job.proto @@ -18,8 +18,8 @@ syntax = "proto3"; package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/enums/mutate_job_status.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/operating_system_version_constant.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/operating_system_version_constant.proto index c859e324..29c61b1e 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/operating_system_version_constant.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/operating_system_version_constant.proto @@ -18,8 +18,8 @@ syntax = "proto3"; package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/enums/operating_system_version_operator_type.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -59,5 +59,6 @@ message OperatingSystemVersionConstant { // Determines whether this constant represents a single version or a range of // versions. - google.ads.googleads.v1.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType operator_type = 6; + google.ads.googleads.v1.enums.OperatingSystemVersionOperatorTypeEnum + .OperatingSystemVersionOperatorType operator_type = 6; } diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/paid_organic_search_term_view.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/paid_organic_search_term_view.proto index f912bbe5..cb021e58 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/paid_organic_search_term_view.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/paid_organic_search_term_view.proto @@ -17,8 +17,8 @@ syntax = "proto3"; package google.ads.googleads.v1.resources; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/payments_account.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/payments_account.proto index e333eecd..5f5e26a5 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/payments_account.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/payments_account.proto @@ -17,8 +17,8 @@ syntax = "proto3"; package google.ads.googleads.v1.resources; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/product_bidding_category_constant.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/product_bidding_category_constant.proto index 799a5b94..16a7c579 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/product_bidding_category_constant.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/product_bidding_category_constant.proto @@ -19,8 +19,8 @@ package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/enums/product_bidding_category_level.proto"; import "google/ads/googleads/v1/enums/product_bidding_category_status.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -54,10 +54,12 @@ message ProductBiddingCategoryConstant { google.protobuf.StringValue product_bidding_category_constant_parent = 4; // Level of the product bidding category. - google.ads.googleads.v1.enums.ProductBiddingCategoryLevelEnum.ProductBiddingCategoryLevel level = 5; + google.ads.googleads.v1.enums.ProductBiddingCategoryLevelEnum + .ProductBiddingCategoryLevel level = 5; // Status of the product bidding category. - google.ads.googleads.v1.enums.ProductBiddingCategoryStatusEnum.ProductBiddingCategoryStatus status = 6; + google.ads.googleads.v1.enums.ProductBiddingCategoryStatusEnum + .ProductBiddingCategoryStatus status = 6; // Language code of the product bidding category. google.protobuf.StringValue language_code = 7; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/remarketing_action.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/remarketing_action.proto index 907e6455..e49c0191 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/remarketing_action.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/remarketing_action.proto @@ -18,8 +18,8 @@ syntax = "proto3"; package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/common/tag_snippet.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/search_term_view.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/search_term_view.proto index 59681b34..56f864ad 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/search_term_view.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/search_term_view.proto @@ -18,8 +18,8 @@ syntax = "proto3"; package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/enums/search_term_targeting_status.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -50,5 +50,6 @@ message SearchTermView { // Indicates whether the search term is currently one of your // targeted or excluded keywords. - google.ads.googleads.v1.enums.SearchTermTargetingStatusEnum.SearchTermTargetingStatus status = 4; + google.ads.googleads.v1.enums.SearchTermTargetingStatusEnum + .SearchTermTargetingStatus status = 4; } diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/shared_criterion.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/shared_criterion.proto index 67320092..907587fd 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/shared_criterion.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/shared_criterion.proto @@ -19,8 +19,8 @@ package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/common/criteria.proto"; import "google/ads/googleads/v1/enums/criterion_type.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -69,7 +69,8 @@ message SharedCriterion { google.ads.googleads.v1.common.PlacementInfo placement = 7; // Mobile App Category. - google.ads.googleads.v1.common.MobileAppCategoryInfo mobile_app_category = 8; + google.ads.googleads.v1.common.MobileAppCategoryInfo mobile_app_category = + 8; // Mobile application. google.ads.googleads.v1.common.MobileApplicationInfo mobile_application = 9; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/shared_set.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/shared_set.proto index 60762d2e..f3f644eb 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/shared_set.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/shared_set.proto @@ -19,8 +19,8 @@ package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/enums/shared_set_status.proto"; import "google/ads/googleads/v1/enums/shared_set_type.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/topic_constant.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/topic_constant.proto index 5a25e359..0ec8269b 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/topic_constant.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/topic_constant.proto @@ -17,8 +17,8 @@ syntax = "proto3"; package google.ads.googleads.v1.resources; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/user_interest.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/user_interest.proto index 94094864..61f8847f 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/user_interest.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/user_interest.proto @@ -19,8 +19,8 @@ package google.ads.googleads.v1.resources; import "google/ads/googleads/v1/common/criterion_category_availability.proto"; import "google/ads/googleads/v1/enums/user_interest_taxonomy_type.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -42,7 +42,8 @@ message UserInterest { string resource_name = 1; // Taxonomy type of the user interest. - google.ads.googleads.v1.enums.UserInterestTaxonomyTypeEnum.UserInterestTaxonomyType taxonomy_type = 2; + google.ads.googleads.v1.enums.UserInterestTaxonomyTypeEnum + .UserInterestTaxonomyType taxonomy_type = 2; // The ID of the user interest. google.protobuf.Int64Value user_interest_id = 3; @@ -57,5 +58,6 @@ message UserInterest { google.protobuf.BoolValue launched_to_all = 6; // Availability information of the user interest. - repeated google.ads.googleads.v1.common.CriterionCategoryAvailability availabilities = 7; + repeated google.ads.googleads.v1.common.CriterionCategoryAvailability + availabilities = 7; } diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/user_list.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/user_list.proto index 37acb2c2..6fa7ce78 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/user_list.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/user_list.proto @@ -24,8 +24,8 @@ import "google/ads/googleads/v1/enums/user_list_closing_reason.proto"; import "google/ads/googleads/v1/enums/user_list_membership_status.proto"; import "google/ads/googleads/v1/enums/user_list_size_range.proto"; import "google/ads/googleads/v1/enums/user_list_type.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; @@ -66,7 +66,8 @@ message UserList { // Membership status of this user list. Indicates whether a user list is open // or active. Only open user lists can accumulate more users and can be // targeted to. - google.ads.googleads.v1.enums.UserListMembershipStatusEnum.UserListMembershipStatus membership_status = 6; + google.ads.googleads.v1.enums.UserListMembershipStatusEnum + .UserListMembershipStatus membership_status = 6; // An ID from external system. It is used by user list sellers to correlate // IDs on their systems. @@ -90,7 +91,8 @@ message UserList { // Display Network. // // This field is read-only. - google.ads.googleads.v1.enums.UserListSizeRangeEnum.UserListSizeRange size_range_for_display = 10; + google.ads.googleads.v1.enums.UserListSizeRangeEnum.UserListSizeRange + size_range_for_display = 10; // Estimated number of users in this user list in the google.com domain. // These are the users available for targeting in Search campaigns. @@ -102,7 +104,8 @@ message UserList { // Size range in terms of number of users of the UserList, for Search ads. // // This field is read-only. - google.ads.googleads.v1.enums.UserListSizeRangeEnum.UserListSizeRange size_range_for_search = 12; + google.ads.googleads.v1.enums.UserListSizeRangeEnum.UserListSizeRange + size_range_for_search = 12; // Type of this list. // @@ -112,19 +115,22 @@ message UserList { // Indicating the reason why this user list membership status is closed. It is // only populated on lists that were automatically closed due to inactivity, // and will be cleared once the list membership status becomes open. - google.ads.googleads.v1.enums.UserListClosingReasonEnum.UserListClosingReason closing_reason = 14; + google.ads.googleads.v1.enums.UserListClosingReasonEnum.UserListClosingReason + closing_reason = 14; // Indicates the reason this account has been granted access to the list. // The reason can be SHARED, OWNED, LICENSED or SUBSCRIBED. // // This field is read-only. - google.ads.googleads.v1.enums.AccessReasonEnum.AccessReason access_reason = 15; + google.ads.googleads.v1.enums.AccessReasonEnum.AccessReason access_reason = + 15; // Indicates if this share is still enabled. When a UserList is shared with // the user this field is set to ENABLED. Later the userList owner can decide // to revoke the share and make it DISABLED. // The default value of this field is set to ENABLED. - google.ads.googleads.v1.enums.UserListAccessStatusEnum.UserListAccessStatus account_user_list_status = 16; + google.ads.googleads.v1.enums.UserListAccessStatusEnum.UserListAccessStatus + account_user_list_status = 16; // Indicates if this user list is eligible for Google Search Network. google.protobuf.BoolValue eligible_for_search = 17; @@ -139,14 +145,16 @@ message UserList { // Exactly one must be set. oneof user_list { // User list of CRM users provided by the advertiser. - google.ads.googleads.v1.common.CrmBasedUserListInfo crm_based_user_list = 19; + google.ads.googleads.v1.common.CrmBasedUserListInfo crm_based_user_list = + 19; // User list which are similar to users from another UserList. // These lists are readonly and automatically created by google. google.ads.googleads.v1.common.SimilarUserListInfo similar_user_list = 20; // User list generated by a rule. - google.ads.googleads.v1.common.RuleBasedUserListInfo rule_based_user_list = 21; + google.ads.googleads.v1.common.RuleBasedUserListInfo rule_based_user_list = + 21; // User list that is a custom combination of user lists and user interests. google.ads.googleads.v1.common.LogicalUserListInfo logical_user_list = 22; diff --git a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/video.proto b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/video.proto index 4b62393e..1a75018d 100644 --- a/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/video.proto +++ b/lib/src/grpc_api/protos/google/ads/googleads/v1/resources/video.proto @@ -17,8 +17,8 @@ syntax = "proto3"; package google.ads.googleads.v1.resources; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources"; option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources"; diff --git a/lib/src/grpc_api/protos/google/api/BUILD.bazel b/lib/src/grpc_api/protos/google/api/BUILD.bazel index e18ed814..f7c43cd3 100644 --- a/lib/src/grpc_api/protos/google/api/BUILD.bazel +++ b/lib/src/grpc_api/protos/google/api/BUILD.bazel @@ -42,11 +42,6 @@ proto_library( ], ) -cc_proto_library( - name = "client_cc_proto", - deps = [":client_proto"], -) - proto_library( name = "config_change_proto", srcs = ["config_change.proto"], @@ -384,3 +379,148 @@ go_proto_library( ":monitoredres_go_proto", ], ) + +############################################################################## +# C++ +############################################################################## +load("@com_google_googleapis_imports//:imports.bzl", "cc_proto_library") + +cc_proto_library( + name = "annotations_cc_proto", + deps = [":annotations_proto"], +) + +cc_proto_library( + name = "auth_cc_proto", + deps = [":auth_proto"], +) + +cc_proto_library( + name = "backend_cc_proto", + deps = [":backend_proto"], +) + +cc_proto_library( + name = "billing_cc_proto", + deps = [":billing_proto"], +) + +cc_proto_library( + name = "client_cc_proto", + deps = [":client_proto"], +) + +cc_proto_library( + name = "config_change_cc_proto", + deps = [":config_change_proto"], +) + +cc_proto_library( + name = "consumer_cc_proto", + deps = [":consumer_proto"], +) + +cc_proto_library( + name = "context_cc_proto", + deps = [":context_proto"], +) + +cc_proto_library( + name = "control_cc_proto", + deps = [":control_proto"], +) + +cc_proto_library( + name = "distribution_cc_proto", + deps = [":distribution_proto"], +) + +cc_proto_library( + name = "documentation_cc_proto", + deps = [":documentation_proto"], +) + +cc_proto_library( + name = "endpoint_cc_proto", + deps = [":endpoint_proto"], +) + +cc_proto_library( + name = "field_behavior_cc_proto", + deps = [":field_behavior_proto"], +) + +cc_proto_library( + name = "http_cc_proto", + deps = [":http_proto"], +) + +cc_proto_library( + name = "httpbody_cc_proto", + deps = [":httpbody_proto"], +) + +cc_proto_library( + name = "label_cc_proto", + deps = [":label_proto"], +) + +cc_proto_library( + name = "launch_stage_cc_proto", + deps = [":launch_stage_proto"], +) + +cc_proto_library( + name = "log_cc_proto", + deps = [":log_proto"], +) + +cc_proto_library( + name = "logging_cc_proto", + deps = [":logging_proto"], +) + +cc_proto_library( + name = "metric_cc_proto", + deps = [":metric_proto"], +) + +cc_proto_library( + name = "monitored_resource_cc_proto", + deps = [":monitored_resource_proto"], +) + +cc_proto_library( + name = "monitoring_cc_proto", + deps = ["monitoring_proto"], +) + +cc_proto_library( + name = "quota_cc_proto", + deps = ["quota_proto"], +) + +cc_proto_library( + name = "resource_cc_proto", + deps = [":resource_proto"], +) + +cc_proto_library( + name = "service_cc_proto", + deps = [":service_proto"], +) + +cc_proto_library( + name = "source_info_cc_proto", + deps = [":source_info_proto"], +) + +cc_proto_library( + name = "system_parameter_cc_proto", + deps = [":system_parameter_proto"], +) + +cc_proto_library( + name = "usage_cc_proto", + deps = [":usage_proto"], +) diff --git a/lib/src/grpc_api/protos/google/api/expr/v1alpha1/BUILD.bazel b/lib/src/grpc_api/protos/google/api/expr/v1alpha1/BUILD.bazel index a44781ae..6334c9d3 100644 --- a/lib/src/grpc_api/protos/google/api/expr/v1alpha1/BUILD.bazel +++ b/lib/src/grpc_api/protos/google/api/expr/v1alpha1/BUILD.bazel @@ -205,3 +205,61 @@ go_gapic_assembly_pkg( ":cel_go_proto", ], ) + +############################################################################## +# C++ +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "cc_grpc_library", + "cc_proto_library", +) + +cc_proto_library( + name = "cel_service_cc_proto", + deps = [":cel_service_proto"], +) + +cc_grpc_library( + name = "cel_service_cc_grpc", + srcs = [":cel_service_proto"], + deps = [":cel_service_cc_proto"], + grpc_only = True, +) + +cc_proto_library( + name = "checked_cc_proto", + deps = [":checked_proto"], +) + +cc_proto_library( + name = "conformance_service_cc_proto", + deps = [":conformance_service_proto"], +) + +cc_grpc_library( + name = "conformance_service_cc_grpc", + srcs = [":conformance_service_proto"], + deps = [":conformance_service_cc_proto"], + grpc_only = True, +) + +cc_proto_library( + name = "eval_cc_proto", + deps = [":eval_proto"], +) + +cc_proto_library( + name = "explain_cc_proto", + deps = [":explain_proto"], +) + +cc_proto_library( + name = "syntax_cc_proto", + deps = [":syntax_proto"], +) + +cc_proto_library( + name = "value_cc_proto", + deps = [":value_proto"], +) diff --git a/lib/src/grpc_api/protos/google/api/expr/v1beta1/BUILD.bazel b/lib/src/grpc_api/protos/google/api/expr/v1beta1/BUILD.bazel index 1bd644ef..bcf7e6f0 100644 --- a/lib/src/grpc_api/protos/google/api/expr/v1beta1/BUILD.bazel +++ b/lib/src/grpc_api/protos/google/api/expr/v1beta1/BUILD.bazel @@ -54,3 +54,36 @@ proto_library( "@com_google_protobuf//:struct_proto", ], ) + +############################################################################## +# C++ +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "cc_proto_library", +) + +cc_proto_library( + name = "decl_cc_proto", + deps = [":decl_proto"], +) + +cc_proto_library( + name = "eval_cc_proto", + deps = [":eval_proto"], +) + +cc_proto_library( + name = "expr_cc_proto", + deps = [":expr_proto"], +) + +cc_proto_library( + name = "source_cc_proto", + deps = [":source_proto"], +) + +cc_proto_library( + name = "value_cc_proto", + deps = [":value_proto"], +) diff --git a/lib/src/grpc_api/protos/google/cloud/dataproc/dataproc.yaml b/lib/src/grpc_api/protos/google/cloud/dataproc/dataproc.yaml index 023448c3..86831d63 100644 --- a/lib/src/grpc_api/protos/google/cloud/dataproc/dataproc.yaml +++ b/lib/src/grpc_api/protos/google/cloud/dataproc/dataproc.yaml @@ -4,14 +4,18 @@ name: dataproc.googleapis.com title: Cloud Dataproc API apis: +- name: google.cloud.dataproc.v1.ClusterController +- name: google.cloud.dataproc.v1.JobController +- name: google.cloud.dataproc.v1.WorkflowTemplateService - name: google.cloud.dataproc.v1beta2.AutoscalingPolicyService - name: google.cloud.dataproc.v1beta2.ClusterController - name: google.cloud.dataproc.v1beta2.JobController - name: google.cloud.dataproc.v1beta2.WorkflowTemplateService types: -- name: google.cloud.dataproc.v1.DiagnoseClusterResults - name: google.cloud.dataproc.v1.ClusterOperationMetadata +- name: google.cloud.dataproc.v1.DiagnoseClusterResults +- name: google.cloud.dataproc.v1.WorkflowMetadata - name: google.cloud.dataproc.v1beta2.DiagnoseClusterResults - name: google.cloud.dataproc.v1beta2.ClusterOperationMetadata - name: google.cloud.dataproc.v1beta2.WorkflowMetadata @@ -157,19 +161,15 @@ http: authentication: rules: - - selector: 'google.cloud.dataproc.v1beta2.AutoscalingPolicyService.*' - oauth: - canonical_scopes: |- - https://www.googleapis.com/auth/cloud-platform - - selector: 'google.cloud.dataproc.v1beta2.ClusterController.*' + - selector: 'google.cloud.dataproc.v1.ClusterController.*' oauth: canonical_scopes: |- https://www.googleapis.com/auth/cloud-platform - - selector: 'google.cloud.dataproc.v1beta2.JobController.*' + - selector: 'google.cloud.dataproc.v1.JobController.*' oauth: canonical_scopes: |- https://www.googleapis.com/auth/cloud-platform - - selector: 'google.cloud.dataproc.v1beta2.WorkflowTemplateService.*' + - selector: 'google.cloud.dataproc.v1.WorkflowTemplateService.*' oauth: canonical_scopes: |- https://www.googleapis.com/auth/cloud-platform diff --git a/lib/src/grpc_api/protos/google/cloud/dataproc/v1/BUILD.bazel b/lib/src/grpc_api/protos/google/cloud/dataproc/v1/BUILD.bazel index 198fb72a..391aaf6f 100644 --- a/lib/src/grpc_api/protos/google/cloud/dataproc/v1/BUILD.bazel +++ b/lib/src/grpc_api/protos/google/cloud/dataproc/v1/BUILD.bazel @@ -12,6 +12,7 @@ proto_library( "clusters.proto", "jobs.proto", "operations.proto", + "shared.proto", "workflow_templates.proto", ], deps = [ diff --git a/lib/src/grpc_api/protos/google/cloud/dataproc/v1/clusters.proto b/lib/src/grpc_api/protos/google/cloud/dataproc/v1/clusters.proto index 31873aad..ab2cc2d0 100644 --- a/lib/src/grpc_api/protos/google/cloud/dataproc/v1/clusters.proto +++ b/lib/src/grpc_api/protos/google/cloud/dataproc/v1/clusters.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC. +// Copyright 2019 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,6 +19,7 @@ package google.cloud.dataproc.v1; import "google/api/annotations.proto"; import "google/cloud/dataproc/v1/operations.proto"; +import "google/cloud/dataproc/v1/shared.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/field_mask.proto"; @@ -33,8 +34,7 @@ option java_package = "com.google.cloud.dataproc.v1"; // of Compute Engine instances. service ClusterController { // Creates a cluster in a project. - rpc CreateCluster(CreateClusterRequest) - returns (google.longrunning.Operation) { + rpc CreateCluster(CreateClusterRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/projects/{project_id}/regions/{region}/clusters" body: "cluster" @@ -42,8 +42,7 @@ service ClusterController { } // Updates a cluster in a project. - rpc UpdateCluster(UpdateClusterRequest) - returns (google.longrunning.Operation) { + rpc UpdateCluster(UpdateClusterRequest) returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}" body: "cluster" @@ -51,8 +50,7 @@ service ClusterController { } // Deletes a cluster in a project. - rpc DeleteCluster(DeleteClusterRequest) - returns (google.longrunning.Operation) { + rpc DeleteCluster(DeleteClusterRequest) returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}" }; @@ -75,8 +73,7 @@ service ClusterController { // Gets cluster diagnostic information. // After the operation completes, the Operation.response field // contains `DiagnoseClusterOutputLocation`. - rpc DiagnoseCluster(DiagnoseClusterRequest) - returns (google.longrunning.Operation) { + rpc DiagnoseCluster(DiagnoseClusterRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}:diagnose" body: "*" @@ -126,15 +123,18 @@ message Cluster { // The cluster config. message ClusterConfig { - // Optional. A Cloud Storage staging bucket used for sharing generated - // SSH keys and config. If you do not specify a staging bucket, Cloud - // Dataproc will determine an appropriate Cloud Storage location (US, + // Optional. A Google Cloud Storage bucket used to stage job + // dependencies, config files, and job driver console output. + // If you do not specify a staging bucket, Cloud + // Dataproc will determine a Cloud Storage location (US, // ASIA, or EU) for your cluster's staging bucket according to the Google - // Compute Engine zone where your cluster is deployed, and then it will create - // and manage this project-level, per-location bucket for you. + // Compute Engine zone where your cluster is deployed, and then create + // and manage this project-level, per-location bucket (see + // [Cloud Dataproc staging + // bucket](/dataproc/docs/concepts/configuring-clusters/staging-bucket)). string config_bucket = 1; - // Required. The shared Compute Engine config settings for + // Optional. The shared Compute Engine config settings for // all instances in a cluster. GceClusterConfig gce_cluster_config = 8; @@ -213,8 +213,8 @@ message GceClusterConfig { // // A full URL, partial URI, or short name are valid. Examples: // - // * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/sub0` - // * `projects/[project_id]/regions/us-east1/sub0` + // * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0` + // * `projects/[project_id]/regions/us-east1/subnetworks/sub0` // * `sub0` string subnetwork_uri = 6; @@ -447,13 +447,13 @@ message SoftwareConfig { // such as "1.2" (including a subminor version, such as "1.2.29"), or the // ["preview" // version](/dataproc/docs/concepts/versioning/dataproc-versions#other_versions). - // If unspecified, it defaults to the latest version. + // If unspecified, it defaults to the latest Debian version. string image_version = 1; // Optional. The properties to set on daemon config files. // - // Property keys are specified in `prefix:property` format, such as - // `core:fs.defaultFS`. The following are supported prefixes + // Property keys are specified in `prefix:property` format, for example + // `core:hadoop.tmp.dir`. The following are supported prefixes // and their mappings: // // * capacity-scheduler: `capacity-scheduler.xml` @@ -469,6 +469,9 @@ message SoftwareConfig { // For more information, see // [Cluster properties](/dataproc/docs/concepts/cluster-properties). map properties = 2; + + // The set of optional components to activate on the cluster. + repeated Component optional_components = 3; } // Contains cluster daemon metrics, such as HDFS and YARN stats. @@ -496,11 +499,10 @@ message CreateClusterRequest { Cluster cluster = 2; // Optional. A unique id used to identify the request. If the server - // receives two - // [CreateClusterRequest][google.cloud.dataproc.v1.CreateClusterRequest] - // requests with the same id, then the second request will be ignored and the - // first [google.longrunning.Operation][google.longrunning.Operation] created - // and stored in the backend is returned. + // receives two [CreateClusterRequest][google.cloud.dataproc.v1.CreateClusterRequest] requests with the same + // id, then the second request will be ignored and the + // first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend + // is returned. // // It is recommended to always set this value to a // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). @@ -585,11 +587,10 @@ message UpdateClusterRequest { google.protobuf.FieldMask update_mask = 4; // Optional. A unique id used to identify the request. If the server - // receives two - // [UpdateClusterRequest][google.cloud.dataproc.v1.UpdateClusterRequest] - // requests with the same id, then the second request will be ignored and the - // first [google.longrunning.Operation][google.longrunning.Operation] created - // and stored in the backend is returned. + // receives two [UpdateClusterRequest][google.cloud.dataproc.v1.UpdateClusterRequest] requests with the same + // id, then the second request will be ignored and the + // first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the + // backend is returned. // // It is recommended to always set this value to a // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). @@ -616,11 +617,10 @@ message DeleteClusterRequest { string cluster_uuid = 4; // Optional. A unique id used to identify the request. If the server - // receives two - // [DeleteClusterRequest][google.cloud.dataproc.v1.DeleteClusterRequest] - // requests with the same id, then the second request will be ignored and the - // first [google.longrunning.Operation][google.longrunning.Operation] created - // and stored in the backend is returned. + // receives two [DeleteClusterRequest][google.cloud.dataproc.v1.DeleteClusterRequest] requests with the same + // id, then the second request will be ignored and the + // first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the + // backend is returned. // // It is recommended to always set this value to a // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). diff --git a/lib/src/grpc_api/protos/google/cloud/dataproc/v1/dataproc_gapic.yaml b/lib/src/grpc_api/protos/google/cloud/dataproc/v1/dataproc_gapic.yaml index ab7e2bd3..87097283 100644 --- a/lib/src/grpc_api/protos/google/cloud/dataproc/v1/dataproc_gapic.yaml +++ b/lib/src/grpc_api/protos/google/cloud/dataproc/v1/dataproc_gapic.yaml @@ -19,7 +19,7 @@ language_settings: domain_layer_location: google-cloud # A list of API interface configurations. interfaces: - # The fully qualified name of the API interface. +# The fully qualified name of the API interface. - name: google.cloud.dataproc.v1.ClusterController # A list of resource collection configurations. # Consists of a name_pattern and an entity_name. @@ -74,15 +74,6 @@ interfaces: # required_fields - Fields that are always required for a request to be # valid. # - # resource_name_treatment - An enum that specifies how to treat the resource - # name formats defined in the field_name_patterns and - # response_field_name_patterns fields. - # UNSET: default value - # NONE: the collection configs will not be used by the generated code. - # VALIDATE: string fields will be validated by the client against the - # specified resource name formats. - # STATIC_TYPES: the client will use generated types for resource names. - # # page_streaming - Specifies the configuration for paging. # Describes information for generating a method which transforms a paging # list RPC into a stream of resources. @@ -295,15 +286,6 @@ interfaces: # required_fields - Fields that are always required for a request to be # valid. # - # resource_name_treatment - An enum that specifies how to treat the resource - # name formats defined in the field_name_patterns and - # response_field_name_patterns fields. - # UNSET: default value - # NONE: the collection configs will not be used by the generated code. - # VALIDATE: string fields will be validated by the client against the - # specified resource name formats. - # STATIC_TYPES: the client will use generated types for resource names. - # # page_streaming - Specifies the configuration for paging. # Describes information for generating a method which transforms a paging # list RPC into a stream of resources. @@ -476,15 +458,6 @@ interfaces: # required_fields - Fields that are always required for a request to be # valid. # - # resource_name_treatment - An enum that specifies how to treat the resource - # name formats defined in the field_name_patterns and - # response_field_name_patterns fields. - # UNSET: default value - # NONE: the collection configs will not be used by the generated code. - # VALIDATE: string fields will be validated by the client against the - # specified resource name formats. - # STATIC_TYPES: the client will use generated types for resource names. - # # page_streaming - Specifies the configuration for paging. # Describes information for generating a method which transforms a paging # list RPC into a stream of resources. @@ -526,7 +499,6 @@ interfaces: - template retry_codes_name: non_idempotent retry_params_name: default - resource_name_treatment: STATIC_TYPES field_name_patterns: parent: region timeout_millis: 30000 @@ -540,7 +512,6 @@ interfaces: - name retry_codes_name: idempotent retry_params_name: default - resource_name_treatment: STATIC_TYPES field_name_patterns: name: workflow_template timeout_millis: 60000 @@ -556,7 +527,6 @@ interfaces: - name retry_codes_name: non_idempotent retry_params_name: default - resource_name_treatment: STATIC_TYPES field_name_patterns: name: workflow_template timeout_millis: 60000 @@ -620,7 +590,6 @@ interfaces: resources_field: templates retry_codes_name: idempotent retry_params_name: default - resource_name_treatment: STATIC_TYPES field_name_patterns: parent: region timeout_millis: 60000 @@ -633,7 +602,6 @@ interfaces: - name retry_codes_name: non_idempotent retry_params_name: default - resource_name_treatment: STATIC_TYPES field_name_patterns: name: workflow_template timeout_millis: 60000 @@ -650,6 +618,9 @@ resource_name_generation: - message_name: InstantiateWorkflowTemplateRequest field_entity_map: name: workflow_template +- message_name: InstantiateInlineWorkflowTemplateRequest + field_entity_map: + parent: region - message_name: ListWorkflowTemplatesRequest field_entity_map: parent: region diff --git a/lib/src/grpc_api/protos/google/cloud/dataproc/v1/jobs.proto b/lib/src/grpc_api/protos/google/cloud/dataproc/v1/jobs.proto index c331ee23..7ead7bb9 100644 --- a/lib/src/grpc_api/protos/google/cloud/dataproc/v1/jobs.proto +++ b/lib/src/grpc_api/protos/google/cloud/dataproc/v1/jobs.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC. +// Copyright 2019 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -473,11 +473,12 @@ message JobReference { // belongs to. string project_id = 1; - // Optional. The job ID, which must be unique within the project. The job ID - // is generated by the server upon job submission or provided by the user as a - // means to perform retries without creating duplicate jobs. The ID must - // contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or - // hyphens (-). The maximum length is 100 characters. + // Optional. The job ID, which must be unique within the project. + // + // The ID must contain only letters (a-z, A-Z), numbers (0-9), + // underscores (_), or hyphens (-). The maximum length is 100 characters. + // + // If not specified by the caller, the job ID will be provided by the server. string job_id = 2; } @@ -634,8 +635,8 @@ message SubmitJobRequest { Job job = 2; // Optional. A unique id used to identify the request. If the server - // receives two [SubmitJobRequest][google.cloud.dataproc.v1.SubmitJobRequest] - // requests with the same id, then the second request will be ignored and the + // receives two [SubmitJobRequest][google.cloud.dataproc.v1.SubmitJobRequest] requests with the same + // id, then the second request will be ignored and the // first [Job][google.cloud.dataproc.v1.Job] created and stored in the backend // is returned. // diff --git a/lib/src/grpc_api/protos/google/cloud/dataproc/v1/operations.proto b/lib/src/grpc_api/protos/google/cloud/dataproc/v1/operations.proto index 7c058766..c820cd8e 100644 --- a/lib/src/grpc_api/protos/google/cloud/dataproc/v1/operations.proto +++ b/lib/src/grpc_api/protos/google/cloud/dataproc/v1/operations.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC. +// Copyright 2019 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/lib/src/grpc_api/protos/google/cloud/dataproc/v1/shared.proto b/lib/src/grpc_api/protos/google/cloud/dataproc/v1/shared.proto new file mode 100644 index 00000000..74bd56a8 --- /dev/null +++ b/lib/src/grpc_api/protos/google/cloud/dataproc/v1/shared.proto @@ -0,0 +1,43 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.dataproc.v1; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/dataproc/v1;dataproc"; +option java_multiple_files = true; +option java_outer_classname = "SharedProto"; +option java_package = "com.google.cloud.dataproc.v1"; + +// Cluster components that can be activated. +enum Component { + // Unspecified component. + COMPONENT_UNSPECIFIED = 0; + + // The Anaconda python distribution. + ANACONDA = 5; + + // The Hive Web HCatalog (the REST service for accessing HCatalog). + HIVE_WEBHCAT = 3; + + // The Jupyter Notebook. + JUPYTER = 1; + + // The Zeppelin notebook. + ZEPPELIN = 4; +} diff --git a/lib/src/grpc_api/protos/google/cloud/dataproc/v1/workflow_templates.proto b/lib/src/grpc_api/protos/google/cloud/dataproc/v1/workflow_templates.proto index a536698b..61295a55 100644 --- a/lib/src/grpc_api/protos/google/cloud/dataproc/v1/workflow_templates.proto +++ b/lib/src/grpc_api/protos/google/cloud/dataproc/v1/workflow_templates.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC. +// Copyright 2019 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -33,8 +33,7 @@ option java_package = "com.google.cloud.dataproc.v1"; // Cloud Dataproc API. service WorkflowTemplateService { // Creates new workflow template. - rpc CreateWorkflowTemplate(CreateWorkflowTemplateRequest) - returns (WorkflowTemplate) { + rpc CreateWorkflowTemplate(CreateWorkflowTemplateRequest) returns (WorkflowTemplate) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/workflowTemplates" body: "template" @@ -49,8 +48,7 @@ service WorkflowTemplateService { // // Can retrieve previously instantiated template by specifying optional // version parameter. - rpc GetWorkflowTemplate(GetWorkflowTemplateRequest) - returns (WorkflowTemplate) { + rpc GetWorkflowTemplate(GetWorkflowTemplateRequest) returns (WorkflowTemplate) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/workflowTemplates/*}" additional_bindings { @@ -77,8 +75,7 @@ service WorkflowTemplateService { // On successful completion, // [Operation.response][google.longrunning.Operation.response] will be // [Empty][google.protobuf.Empty]. - rpc InstantiateWorkflowTemplate(InstantiateWorkflowTemplateRequest) - returns (google.longrunning.Operation) { + rpc InstantiateWorkflowTemplate(InstantiateWorkflowTemplateRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/workflowTemplates/*}:instantiate" body: "*" @@ -92,8 +89,7 @@ service WorkflowTemplateService { // Instantiates a template and begins execution. // // This method is equivalent to executing the sequence - // [CreateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplate], - // [InstantiateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate], + // [CreateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplate], [InstantiateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate], // [DeleteWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.DeleteWorkflowTemplate]. // // The returned Operation can be used to track execution of @@ -112,9 +108,7 @@ service WorkflowTemplateService { // On successful completion, // [Operation.response][google.longrunning.Operation.response] will be // [Empty][google.protobuf.Empty]. - rpc InstantiateInlineWorkflowTemplate( - InstantiateInlineWorkflowTemplateRequest) - returns (google.longrunning.Operation) { + rpc InstantiateInlineWorkflowTemplate(InstantiateInlineWorkflowTemplateRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/workflowTemplates:instantiateInline" body: "template" @@ -127,8 +121,7 @@ service WorkflowTemplateService { // Updates (replaces) workflow template. The updated template // must contain version that matches the current server version. - rpc UpdateWorkflowTemplate(UpdateWorkflowTemplateRequest) - returns (WorkflowTemplate) { + rpc UpdateWorkflowTemplate(UpdateWorkflowTemplateRequest) returns (WorkflowTemplate) { option (google.api.http) = { put: "/v1/{template.name=projects/*/locations/*/workflowTemplates/*}" body: "template" @@ -140,8 +133,7 @@ service WorkflowTemplateService { } // Lists workflows that match the specified filter in the request. - rpc ListWorkflowTemplates(ListWorkflowTemplatesRequest) - returns (ListWorkflowTemplatesResponse) { + rpc ListWorkflowTemplates(ListWorkflowTemplatesRequest) returns (ListWorkflowTemplatesResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*}/workflowTemplates" additional_bindings { @@ -151,8 +143,7 @@ service WorkflowTemplateService { } // Deletes a workflow template. It does not cancel in-progress workflows. - rpc DeleteWorkflowTemplate(DeleteWorkflowTemplateRequest) - returns (google.protobuf.Empty) { + rpc DeleteWorkflowTemplate(DeleteWorkflowTemplateRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/workflowTemplates/*}" additional_bindings { @@ -284,8 +275,8 @@ message OrderedJob { // // The step id is used as prefix for job id, as job // `goog-dataproc-workflow-step-id` label, and in - // [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] - // field from other steps. + // [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] field from other + // steps. // // The id must contain only letters (a-z, A-Z), numbers (0-9), // underscores (_), and hyphens (-). Cannot begin or end with underscore @@ -356,10 +347,10 @@ message TemplateParameter { // A field is allowed to appear in at most one parameter's list of field // paths. // - // A field path is similar in syntax to a - // [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a - // field path that references the zone field of a workflow template's cluster - // selector would be specified as `placement.clusterSelector.zone`. + // A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. + // For example, a field path that references the zone field of a workflow + // template's cluster selector would be specified as + // `placement.clusterSelector.zone`. // // Also, field paths can reference fields using the following syntax: // diff --git a/lib/src/grpc_api/protos/google/cloud/dataproc/v1beta2/dataproc_gapic.yaml b/lib/src/grpc_api/protos/google/cloud/dataproc/v1beta2/dataproc_gapic.yaml index 67940f45..576bfc8e 100644 --- a/lib/src/grpc_api/protos/google/cloud/dataproc/v1beta2/dataproc_gapic.yaml +++ b/lib/src/grpc_api/protos/google/cloud/dataproc/v1beta2/dataproc_gapic.yaml @@ -670,6 +670,7 @@ interfaces: - parameters: - name - parameters: + - name - parameters required_fields: - name diff --git a/lib/src/grpc_api/protos/google/cloud/redis/artman_redis_v1.yaml b/lib/src/grpc_api/protos/google/cloud/redis/artman_redis_v1.yaml index e603fda3..7c041414 100644 --- a/lib/src/grpc_api/protos/google/cloud/redis/artman_redis_v1.yaml +++ b/lib/src/grpc_api/protos/google/cloud/redis/artman_redis_v1.yaml @@ -3,7 +3,7 @@ common: api_version: v1 organization_name: google-cloud proto_deps: - - name: google-common-protos + - name: google-common-protos src_proto_paths: - v1 service_yaml: redis_v1.yaml diff --git a/lib/src/grpc_api/protos/google/cloud/redis/artman_redis_v1beta1.yaml b/lib/src/grpc_api/protos/google/cloud/redis/artman_redis_v1beta1.yaml index 7ac7287c..880e6ca8 100644 --- a/lib/src/grpc_api/protos/google/cloud/redis/artman_redis_v1beta1.yaml +++ b/lib/src/grpc_api/protos/google/cloud/redis/artman_redis_v1beta1.yaml @@ -3,7 +3,7 @@ common: api_version: v1beta1 organization_name: google-cloud proto_deps: - - name: google-common-protos + - name: google-common-protos src_proto_paths: - v1beta1 service_yaml: redis_v1beta1.yaml diff --git a/lib/src/grpc_api/protos/google/cloud/redis/redis_v1.yaml b/lib/src/grpc_api/protos/google/cloud/redis/redis_v1.yaml index 65935a14..baee17fa 100644 --- a/lib/src/grpc_api/protos/google/cloud/redis/redis_v1.yaml +++ b/lib/src/grpc_api/protos/google/cloud/redis/redis_v1.yaml @@ -4,40 +4,22 @@ name: redis.googleapis.com title: Google Cloud Memorystore for Redis API apis: - - name: google.cloud.redis.v1.CloudRedis +- name: google.cloud.redis.v1.CloudRedis types: - - name: google.cloud.redis.v1.LocationMetadata - - name: google.cloud.redis.v1.OperationMetadata - - name: google.cloud.redis.v1.ZoneMetadata +- name: google.cloud.redis.v1.LocationMetadata +- name: google.cloud.redis.v1.OperationMetadata +- name: google.cloud.redis.v1.ZoneMetadata documentation: summary: Creates and manages Redis instances on the Google Cloud Platform. backend: rules: - - selector: google.longrunning.Operations.ListOperations - deadline: 60.0 - - selector: google.longrunning.Operations.GetOperation - deadline: 60.0 - - selector: google.longrunning.Operations.DeleteOperation - deadline: 60.0 - - selector: google.longrunning.Operations.CancelOperation - deadline: 60.0 - - selector: google.longrunning.Operations.WaitOperation - deadline: 60.0 - - selector: google.cloud.redis.v1.CloudRedis.ListInstances - deadline: 60.0 - - selector: google.cloud.redis.v1.CloudRedis.GetInstance - deadline: 60.0 - - selector: google.cloud.redis.v1.CloudRedis.CreateInstance - deadline: 60.0 - - selector: google.cloud.redis.v1.CloudRedis.UpdateInstance - deadline: 60.0 - - selector: google.cloud.redis.v1.CloudRedis.FailoverInstance - deadline: 60.0 - - selector: google.cloud.redis.v1.CloudRedis.DeleteInstance - deadline: 60.0 + - selector: 'google.cloud.redis.v1.CloudRedis.*' + deadline: 60.0 + - selector: 'google.longrunning.Operations.*' + deadline: 60.0 http: rules: @@ -55,11 +37,11 @@ http: authentication: rules: - - selector: 'google.cloud.redis.v1.CloudRedis.*' - oauth: - canonical_scopes: |- - https://www.googleapis.com/auth/cloud-platform - - selector: 'google.longrunning.Operations.*' - oauth: - canonical_scopes: |- - https://www.googleapis.com/auth/cloud-platform + - selector: 'google.cloud.redis.v1.CloudRedis.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform + - selector: 'google.longrunning.Operations.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform diff --git a/lib/src/grpc_api/protos/google/cloud/redis/redis_v1beta1.yaml b/lib/src/grpc_api/protos/google/cloud/redis/redis_v1beta1.yaml index 1abe57a6..b9e10140 100644 --- a/lib/src/grpc_api/protos/google/cloud/redis/redis_v1beta1.yaml +++ b/lib/src/grpc_api/protos/google/cloud/redis/redis_v1beta1.yaml @@ -15,27 +15,9 @@ documentation: backend: rules: - - selector: google.longrunning.Operations.ListOperations - deadline: 60.0 - - selector: google.longrunning.Operations.GetOperation - deadline: 60.0 - - selector: google.longrunning.Operations.DeleteOperation - deadline: 60.0 - - selector: google.longrunning.Operations.CancelOperation - deadline: 60.0 - - selector: google.longrunning.Operations.WaitOperation - deadline: 60.0 - - selector: google.cloud.redis.v1beta1.CloudRedis.ListInstances - deadline: 60.0 - - selector: google.cloud.redis.v1beta1.CloudRedis.GetInstance - deadline: 60.0 - - selector: google.cloud.redis.v1beta1.CloudRedis.CreateInstance - deadline: 60.0 - - selector: google.cloud.redis.v1beta1.CloudRedis.UpdateInstance - deadline: 60.0 - - selector: google.cloud.redis.v1beta1.CloudRedis.FailoverInstance + - selector: 'google.cloud.redis.v1beta1.CloudRedis.*' deadline: 60.0 - - selector: google.cloud.redis.v1beta1.CloudRedis.DeleteInstance + - selector: 'google.longrunning.Operations.*' deadline: 60.0 http: diff --git a/lib/src/grpc_api/protos/google/cloud/redis/v1/cloud_redis.proto b/lib/src/grpc_api/protos/google/cloud/redis/v1/cloud_redis.proto index 8520adda..65366ca4 100644 --- a/lib/src/grpc_api/protos/google/cloud/redis/v1/cloud_redis.proto +++ b/lib/src/grpc_api/protos/google/cloud/redis/v1/cloud_redis.proto @@ -18,17 +18,16 @@ syntax = "proto3"; package google.cloud.redis.v1; import "google/api/annotations.proto"; -import "google/api/resource.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; +import "google/api/client.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/redis/v1;redis"; option java_multiple_files = true; option java_outer_classname = "CloudRedisServiceV1Proto"; option java_package = "com.google.cloud.redis.v1"; - // Configures and manages Cloud Memorystore for Redis instances // // Google Cloud Memorystore for Redis v1 @@ -45,6 +44,8 @@ option java_package = "com.google.cloud.redis.v1"; // Note that location_id must be referring to a GCP `region`; for example: // * `projects/redpepper-1290/locations/us-central1/instances/my-redis` service CloudRedis { + option (google.api.default_host) = "redis.googleapis.com"; + // Lists all Redis instances owned by a project in either the specified // location (region) or all locations. // @@ -97,8 +98,36 @@ service CloudRedis { }; } - // Failover the master role to current replica node against a specific - // STANDARD tier redis instance. + // Import a Redis RDB snapshot file from Cloud Storage into a Redis instance. + // + // Redis may stop serving during this operation. Instance state will be + // IMPORTING for entire operation. When complete, the instance will contain + // only data from the imported file. + // + // The returned operation is automatically deleted after a few hours, so + // there is no need to call DeleteOperation. + rpc ImportInstance(ImportInstanceRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/instances/*}:import" + body: "*" + }; + } + + // Export Redis instance data into a Redis RDB format file in Cloud Storage. + // + // Redis will continue serving during this operation. + // + // The returned operation is automatically deleted after a few hours, so + // there is no need to call DeleteOperation. + rpc ExportInstance(ExportInstanceRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/instances/*}:export" + body: "*" + }; + } + + // Initiates a failover of the master node to current replica node for a + // specific STANDARD tier Cloud Memorystore for Redis instance. rpc FailoverInstance(FailoverInstanceRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/instances/*}:failover" @@ -142,6 +171,9 @@ message Instance { // Maintenance is being performed on this Redis instance. MAINTENANCE = 6; + // Redis instance is importing data (availability may be affected). + IMPORTING = 8; + // Redis instance is failing over (availability may be affected). FAILING_OVER = 9; } @@ -190,7 +222,10 @@ message Instance { // Optional. The version of Redis software. // If not provided, latest supported version will be used. Updating the // version will perform an upgrade/downgrade to the new version. Currently, - // the supported values are `REDIS_3_2` for Redis 3.2. + // the supported values are: + // + // * `REDIS_4_0` for Redis 4.0 compatibility (default) + // * `REDIS_3_2` for Redis 3.2 compatibility string redis_version = 7; // Optional. The CIDR range of internal addresses that are reserved for this @@ -227,8 +262,16 @@ message Instance { // http://redis.io/topics/config. Currently, the only supported parameters // are: // + // Redis 3.2 and above: + // // * maxmemory-policy // * notify-keyspace-events + // + // Redis 4.0 and above: + // + // * activedefrag + // * lfu-log-factor + // * lfu-decay-time map redis_configs = 16; // Required. The service tier of the instance. @@ -242,13 +285,20 @@ message Instance { // instance is connected. If left unspecified, the `default` network // will be used. string authorized_network = 20; + + // Output only. Cloud IAM identity used by import / export operations to + // transfer data to/from Cloud Storage. Format is + // "serviceAccount:". The value may change over time + // for a given instance so should be checked before each import/export + // operation. + string persistence_iam_identity = 21; } // Request for [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances]. message ListInstancesRequest { // Required. The resource name of the instance location using the form: // `projects/{project_id}/locations/{location_id}` - // where `location_id` refers to a GCP region + // where `location_id` refers to a GCP region. string parent = 1; // The maximum number of items to return. @@ -291,7 +341,7 @@ message ListInstancesResponse { message GetInstanceRequest { // Required. Redis instance resource name using the form: // `projects/{project_id}/locations/{location_id}/instances/{instance_id}` - // where `location_id` refers to a GCP region + // where `location_id` refers to a GCP region. string name = 1; } @@ -299,7 +349,7 @@ message GetInstanceRequest { message CreateInstanceRequest { // Required. The resource name of the instance location using the form: // `projects/{project_id}/locations/{location_id}` - // where `location_id` refers to a GCP region + // where `location_id` refers to a GCP region. string parent = 1; // Required. The logical name of the Redis instance in the customer project @@ -337,13 +387,68 @@ message UpdateInstanceRequest { message DeleteInstanceRequest { // Required. Redis instance resource name using the form: // `projects/{project_id}/locations/{location_id}/instances/{instance_id}` - // where `location_id` refers to a GCP region + // where `location_id` refers to a GCP region. string name = 1; } +// The Cloud Storage location for the input content +message GcsSource { + // Required. Source data URI. (e.g. 'gs://my_bucket/my_object'). + string uri = 1; +} + +// The input content +message InputConfig { + // Required. Specify source location of input data + oneof source { + // Google Cloud Storage location where input content is located. + GcsSource gcs_source = 1; + } +} + +// Request for [Import][google.cloud.redis.v1.CloudRedis.ImportInstance]. +message ImportInstanceRequest { + // Required. Redis instance resource name using the form: + // `projects/{project_id}/locations/{location_id}/instances/{instance_id}` + // where `location_id` refers to a GCP region. + string name = 1; + + // Required. Specify data to be imported. + InputConfig input_config = 3; +} + +// The Cloud Storage location for the output content +message GcsDestination { + // Required. Data destination URI (e.g. + // 'gs://my_bucket/my_object'). Existing files will be overwritten. + string uri = 1; +} + +// The output content +message OutputConfig { + // Required. Specify destination location of output data + oneof destination { + // Google Cloud Storage destination for output content. + GcsDestination gcs_destination = 1; + } +} + +// Request for [Export][google.cloud.redis.v1.CloudRedis.ExportInstance]. +message ExportInstanceRequest { + // Required. Redis instance resource name using the form: + // `projects/{project_id}/locations/{location_id}/instances/{instance_id}` + // where `location_id` refers to a GCP region. + string name = 1; + + // Required. Specify data to be exported. + OutputConfig output_config = 3; +} + // Request for [Failover][google.cloud.redis.v1.CloudRedis.FailoverInstance]. message FailoverInstanceRequest { enum DataProtectionMode { + // Defaults to LIMITED_DATA_LOSS if a data protection mode is not + // specified. DATA_PROTECTION_MODE_UNSPECIFIED = 0; // Instance failover will be protected with data loss control. More @@ -358,7 +463,7 @@ message FailoverInstanceRequest { // Required. Redis instance resource name using the form: // `projects/{project_id}/locations/{location_id}/instances/{instance_id}` - // where `location_id` refers to a GCP region + // where `location_id` refers to a GCP region. string name = 1; // Optional. Available data protection modes that the user can choose. If it's diff --git a/lib/src/grpc_api/protos/google/cloud/redis/v1/redis_gapic.yaml b/lib/src/grpc_api/protos/google/cloud/redis/v1/redis_gapic.yaml index 83b49a9a..e775c66e 100644 --- a/lib/src/grpc_api/protos/google/cloud/redis/v1/redis_gapic.yaml +++ b/lib/src/grpc_api/protos/google/cloud/redis/v1/redis_gapic.yaml @@ -18,7 +18,7 @@ language_settings: package_name: redis.v1 # A list of API interface configurations. interfaces: - # The fully qualified name of the API interface. +# The fully qualified name of the API interface. - name: google.cloud.redis.v1.CloudRedis # A list of resource collection configurations. # Consists of a name_pattern and an entity_name. @@ -157,18 +157,18 @@ interfaces: retry_params_name: default field_name_patterns: parent: location - timeout_millis: 60000 long_running: return_type: google.cloud.redis.v1.Instance metadata_type: google.cloud.redis.v1.OperationMetadata - initial_poll_delay_millis: 60000 # 1 minutes + initial_poll_delay_millis: 60000 # 1 minutes poll_delay_multiplier: 1.5 - max_poll_delay_millis: 360000 # 6 minutes - total_poll_timeout_millis: 1200000 # 20 minutes + max_poll_delay_millis: 360000 # 6 minutes + total_poll_timeout_millis: 1200000 # 20 minutes + timeout_millis: 60000 sample_code_init_fields: - - instance_id="test_instance" - - instance.tier="BASIC" - - instance.memory_size_gb=1 + - instance_id="test_instance" + - instance.tier="BASIC" + - instance.memory_size_gb=1 - name: UpdateInstance resource_name_treatment: STATIC_TYPES flattening: @@ -183,39 +183,61 @@ interfaces: retry_params_name: default field_name_patterns: instance.name: instance - timeout_millis: 60000 long_running: return_type: google.cloud.redis.v1.Instance metadata_type: google.cloud.redis.v1.OperationMetadata - initial_poll_delay_millis: 60000 # 1 minutes + initial_poll_delay_millis: 60000 # 1 minutes poll_delay_multiplier: 1.5 - max_poll_delay_millis: 360000 # 6 minutes - total_poll_timeout_millis: 7200000 # 120 minutes + max_poll_delay_millis: 360000 # 6 minutes + total_poll_timeout_millis: 7200000 # 120 minutes + timeout_millis: 60000 sample_code_init_fields: - - update_mask.paths[0]="display_name" - - update_mask.paths[1]="memory_size_gb" - - instance.display_name="UpdatedDisplayName" + - update_mask.paths[0]="display_name" + - update_mask.paths[1]="memory_size_gb" + - instance.display_name="UpdatedDisplayName" - instance.memory_size_gb=4 - - name: DeleteInstance + - name: ImportInstance flattening: groups: - parameters: - name + - input_config required_fields: - name - resource_name_treatment: STATIC_TYPES + - input_config retry_codes_name: non_idempotent retry_params_name: default field_name_patterns: name: instance + long_running: + return_type: google.cloud.redis.v1.Instance + metadata_type: google.cloud.redis.v1.OperationMetadata + initial_poll_delay_millis: 60000 # 1 minutes + poll_delay_multiplier: 1.5 + max_poll_delay_millis: 360000 # 6 minutes + total_poll_timeout_millis: 18000000 # 300 minutes timeout_millis: 60000 + - name: ExportInstance + flattening: + groups: + - parameters: + - name + - output_config + required_fields: + - name + - output_config + retry_codes_name: non_idempotent + retry_params_name: default + field_name_patterns: + name: instance long_running: - return_type: google.protobuf.Empty + return_type: google.cloud.redis.v1.Instance metadata_type: google.cloud.redis.v1.OperationMetadata - initial_poll_delay_millis: 60000 # 1 minutes + initial_poll_delay_millis: 60000 # 1 minutes poll_delay_multiplier: 1.5 - max_poll_delay_millis: 360000 # 6 minutes - total_poll_timeout_millis: 1200000 # 20 minutes + max_poll_delay_millis: 360000 # 6 minutes + total_poll_timeout_millis: 18000000 # 300 minutes + timeout_millis: 60000 - name: FailoverInstance flattening: groups: @@ -233,10 +255,30 @@ interfaces: long_running: return_type: google.cloud.redis.v1.Instance metadata_type: google.cloud.redis.v1.OperationMetadata - initial_poll_delay_millis: 60000 # 1 minutes + initial_poll_delay_millis: 60000 # 1 minutes + poll_delay_multiplier: 1.5 + max_poll_delay_millis: 360000 # 6 minutes + total_poll_timeout_millis: 1200000 # 20 minutes + timeout_millis: 60000 + - name: DeleteInstance + flattening: + groups: + - parameters: + - name + required_fields: + - name + resource_name_treatment: STATIC_TYPES + retry_codes_name: non_idempotent + retry_params_name: default + field_name_patterns: + name: instance + long_running: + return_type: google.protobuf.Empty + metadata_type: google.cloud.redis.v1.OperationMetadata + initial_poll_delay_millis: 60000 # 1 minutes poll_delay_multiplier: 1.5 - max_poll_delay_millis: 360000 # 6 minutes - total_poll_timeout_millis: 1200000 # 20 minutes + max_poll_delay_millis: 360000 # 6 minutes + total_poll_timeout_millis: 1200000 # 20 minutes timeout_millis: 60000 resource_name_generation: - message_name: ListInstancesRequest diff --git a/lib/src/grpc_api/protos/google/cloud/redis/v1beta1/cloud_redis.proto b/lib/src/grpc_api/protos/google/cloud/redis/v1beta1/cloud_redis.proto index 0335a002..699df83f 100644 --- a/lib/src/grpc_api/protos/google/cloud/redis/v1beta1/cloud_redis.proto +++ b/lib/src/grpc_api/protos/google/cloud/redis/v1beta1/cloud_redis.proto @@ -18,10 +18,10 @@ syntax = "proto3"; package google.cloud.redis.v1beta1; import "google/api/annotations.proto"; -import "google/api/resource.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; +import "google/api/client.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/redis/v1beta1;redis"; option java_multiple_files = true; @@ -44,6 +44,8 @@ option java_package = "com.google.cloud.redis.v1beta1"; // Note that location_id must be refering to a GCP `region`; for example: // * `projects/redpepper-1290/locations/us-central1/instances/my-redis` service CloudRedis { + option (google.api.default_host) = "redis.googleapis.com"; + // Lists all Redis instances owned by a project in either the specified // location (region) or all locations. // @@ -77,8 +79,7 @@ service CloudRedis { // // The returned operation is automatically deleted after a few hours, so there // is no need to call DeleteOperation. - rpc CreateInstance(CreateInstanceRequest) - returns (google.longrunning.Operation) { + rpc CreateInstance(CreateInstanceRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1beta1/{parent=projects/*/locations/*}/instances" body: "instance" @@ -90,18 +91,44 @@ service CloudRedis { // Completed longrunning.Operation will contain the new instance object // in the response field. The returned operation is automatically deleted // after a few hours, so there is no need to call DeleteOperation. - rpc UpdateInstance(UpdateInstanceRequest) - returns (google.longrunning.Operation) { + rpc UpdateInstance(UpdateInstanceRequest) returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1beta1/{instance.name=projects/*/locations/*/instances/*}" body: "instance" }; } - // Failover the master role to current replica node against a specific - // STANDARD tier redis instance. - rpc FailoverInstance(FailoverInstanceRequest) - returns (google.longrunning.Operation) { + // Import a Redis RDB snapshot file from Cloud Storage into a Redis instance. + // + // Redis may stop serving during this operation. Instance state will be + // IMPORTING for entire operation. When complete, the instance will contain + // only data from the imported file. + // + // The returned operation is automatically deleted after a few hours, so + // there is no need to call DeleteOperation. + rpc ImportInstance(ImportInstanceRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/instances/*}:import" + body: "*" + }; + } + + // Export Redis instance data into a Redis RDB format file in Cloud Storage. + // + // Redis will continue serving during this operation. + // + // The returned operation is automatically deleted after a few hours, so + // there is no need to call DeleteOperation. + rpc ExportInstance(ExportInstanceRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/instances/*}:export" + body: "*" + }; + } + + // Initiates a failover of the master node to current replica node for a + // specific STANDARD tier Cloud Memorystore for Redis instance. + rpc FailoverInstance(FailoverInstanceRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1beta1/{name=projects/*/locations/*/instances/*}:failover" body: "*" @@ -110,8 +137,7 @@ service CloudRedis { // Deletes a specific Redis instance. Instance stops serving and data is // deleted. - rpc DeleteInstance(DeleteInstanceRequest) - returns (google.longrunning.Operation) { + rpc DeleteInstance(DeleteInstanceRequest) returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1beta1/{name=projects/*/locations/*/instances/*}" }; @@ -198,8 +224,8 @@ message Instance { // version will perform an upgrade/downgrade to the new version. Currently, // the supported values are: // - // * `REDIS_4_0` for Redis 4.0 compatibility - // * `REDIS_3_2` for Redis 3.2 compatibility (default) + // * `REDIS_4_0` for Redis 4.0 compatibility (default) + // * `REDIS_3_2` for Redis 3.2 compatibility string redis_version = 7; // Optional. The CIDR range of internal addresses that are reserved for this @@ -259,14 +285,20 @@ message Instance { // instance is connected. If left unspecified, the `default` network // will be used. string authorized_network = 20; + + // Output only. Cloud IAM identity used by import / export operations to + // transfer data to/from Cloud Storage. Format is + // "serviceAccount:". The value may change over time + // for a given instance so should be checked before each import/export + // operation. + string persistence_iam_identity = 21; } -// Request for -// [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances]. +// Request for [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances]. message ListInstancesRequest { // Required. The resource name of the instance location using the form: // `projects/{project_id}/locations/{location_id}` - // where `location_id` refers to a GCP region + // where `location_id` refers to a GCP region. string parent = 1; // The maximum number of items to return. @@ -283,8 +315,7 @@ message ListInstancesRequest { string page_token = 3; } -// Response for -// [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances]. +// Response for [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances]. message ListInstancesResponse { // A list of Redis instances in the project in the specified location, // or across all locations. @@ -310,16 +341,15 @@ message ListInstancesResponse { message GetInstanceRequest { // Required. Redis instance resource name using the form: // `projects/{project_id}/locations/{location_id}/instances/{instance_id}` - // where `location_id` refers to a GCP region + // where `location_id` refers to a GCP region. string name = 1; } -// Request for -// [CreateInstance][google.cloud.redis.v1beta1.CloudRedis.CreateInstance]. +// Request for [CreateInstance][google.cloud.redis.v1beta1.CloudRedis.CreateInstance]. message CreateInstanceRequest { // Required. The resource name of the instance location using the form: // `projects/{project_id}/locations/{location_id}` - // where `location_id` refers to a GCP region + // where `location_id` refers to a GCP region. string parent = 1; // Required. The logical name of the Redis instance in the customer project @@ -336,8 +366,7 @@ message CreateInstanceRequest { Instance instance = 3; } -// Request for -// [UpdateInstance][google.cloud.redis.v1beta1.CloudRedis.UpdateInstance]. +// Request for [UpdateInstance][google.cloud.redis.v1beta1.CloudRedis.UpdateInstance]. message UpdateInstanceRequest { // Required. Mask of fields to update. At least one path must be supplied in // this field. The elements of the repeated paths field may only include these @@ -354,19 +383,72 @@ message UpdateInstanceRequest { Instance instance = 2; } -// Request for -// [DeleteInstance][google.cloud.redis.v1beta1.CloudRedis.DeleteInstance]. +// Request for [DeleteInstance][google.cloud.redis.v1beta1.CloudRedis.DeleteInstance]. message DeleteInstanceRequest { // Required. Redis instance resource name using the form: // `projects/{project_id}/locations/{location_id}/instances/{instance_id}` - // where `location_id` refers to a GCP region + // where `location_id` refers to a GCP region. + string name = 1; +} + +// The Cloud Storage location for the input content +message GcsSource { + // Required. Source data URI. (e.g. 'gs://my_bucket/my_object'). + string uri = 1; +} + +// The input content +message InputConfig { + // Required. Specify source location of input data + oneof source { + // Google Cloud Storage location where input content is located. + GcsSource gcs_source = 1; + } +} + +// Request for [Import][google.cloud.redis.v1beta1.CloudRedis.ImportInstance]. +message ImportInstanceRequest { + // Required. Redis instance resource name using the form: + // `projects/{project_id}/locations/{location_id}/instances/{instance_id}` + // where `location_id` refers to a GCP region. + string name = 1; + + // Required. Specify data to be imported. + InputConfig input_config = 3; +} + +// The Cloud Storage location for the output content +message GcsDestination { + // Required. Data destination URI (e.g. + // 'gs://my_bucket/my_object'). Existing files will be overwritten. + string uri = 1; +} + +// The output content +message OutputConfig { + // Required. Specify destination location of output data + oneof destination { + // Google Cloud Storage destination for output content. + GcsDestination gcs_destination = 1; + } +} + +// Request for [Export][google.cloud.redis.v1beta1.CloudRedis.ExportInstance]. +message ExportInstanceRequest { + // Required. Redis instance resource name using the form: + // `projects/{project_id}/locations/{location_id}/instances/{instance_id}` + // where `location_id` refers to a GCP region. string name = 1; + + // Required. Specify data to be exported. + OutputConfig output_config = 3; } -// Request for -// [Failover][google.cloud.redis.v1beta1.CloudRedis.FailoverInstance]. +// Request for [Failover][google.cloud.redis.v1beta1.CloudRedis.FailoverInstance]. message FailoverInstanceRequest { enum DataProtectionMode { + // Defaults to LIMITED_DATA_LOSS if a data protection mode is not + // specified. DATA_PROTECTION_MODE_UNSPECIFIED = 0; // Instance failover will be protected with data loss control. More @@ -381,7 +463,7 @@ message FailoverInstanceRequest { // Required. Redis instance resource name using the form: // `projects/{project_id}/locations/{location_id}/instances/{instance_id}` - // where `location_id` refers to a GCP region + // where `location_id` refers to a GCP region. string name = 1; // Optional. Available data protection modes that the user can choose. If it's @@ -403,4 +485,6 @@ message LocationMetadata { // Defines specific information for a particular zone. Currently empty and // reserved for future use only. -message ZoneMetadata {} +message ZoneMetadata { + +} diff --git a/lib/src/grpc_api/protos/google/cloud/redis/v1beta1/redis_gapic.yaml b/lib/src/grpc_api/protos/google/cloud/redis/v1beta1/redis_gapic.yaml index 858b35bf..855a5356 100644 --- a/lib/src/grpc_api/protos/google/cloud/redis/v1beta1/redis_gapic.yaml +++ b/lib/src/grpc_api/protos/google/cloud/redis/v1beta1/redis_gapic.yaml @@ -157,7 +157,6 @@ interfaces: retry_params_name: default field_name_patterns: parent: location - timeout_millis: 60000 long_running: return_type: google.cloud.redis.v1beta1.Instance metadata_type: google.protobuf.Any @@ -165,6 +164,7 @@ interfaces: poll_delay_multiplier: 1.5 max_poll_delay_millis: 360000 # 6 minutes total_poll_timeout_millis: 1200000 # 20 minutes + timeout_millis: 60000 sample_code_init_fields: - instance_id="test_instance" - instance.tier="BASIC" @@ -182,7 +182,6 @@ interfaces: retry_params_name: default field_name_patterns: instance.name: instance - timeout_millis: 60000 resource_name_treatment: STATIC_TYPES long_running: return_type: google.cloud.redis.v1beta1.Instance @@ -191,31 +190,54 @@ interfaces: poll_delay_multiplier: 1.5 max_poll_delay_millis: 360000 # 6 minutes total_poll_timeout_millis: 7200000 # 120 minutes + timeout_millis: 60000 sample_code_init_fields: - update_mask.paths[0]="display_name" - update_mask.paths[1]="memory_size_gb" - instance.display_name="UpdatedDisplayName" - instance.memory_size_gb=4 - - name: DeleteInstance + - name: ImportInstance flattening: groups: - parameters: - name + - input_config required_fields: - name - resource_name_treatment: STATIC_TYPES + - input_config retry_codes_name: non_idempotent retry_params_name: default field_name_patterns: name: instance + long_running: + return_type: google.cloud.redis.v1beta1.Instance + metadata_type: google.protobuf.Any + initial_poll_delay_millis: 60000 # 1 minutes + poll_delay_multiplier: 1.5 + max_poll_delay_millis: 360000 # 6 minutes + total_poll_timeout_millis: 18000000 # 300 minutes timeout_millis: 60000 + - name: ExportInstance + flattening: + groups: + - parameters: + - name + - output_config + required_fields: + - name + - output_config + retry_codes_name: non_idempotent + retry_params_name: default + field_name_patterns: + name: instance long_running: - return_type: google.protobuf.Empty + return_type: google.cloud.redis.v1beta1.Instance metadata_type: google.protobuf.Any initial_poll_delay_millis: 60000 # 1 minutes poll_delay_multiplier: 1.5 max_poll_delay_millis: 360000 # 6 minutes - total_poll_timeout_millis: 1200000 # 20 minutes + total_poll_timeout_millis: 18000000 # 300 minutes + timeout_millis: 60000 - name: FailoverInstance flattening: groups: @@ -237,6 +259,26 @@ interfaces: max_poll_delay_millis: 360000 # 6 minutes total_poll_timeout_millis: 1200000 # 20 minutes timeout_millis: 60000 + - name: DeleteInstance + flattening: + groups: + - parameters: + - name + required_fields: + - name + resource_name_treatment: STATIC_TYPES + retry_codes_name: non_idempotent + retry_params_name: default + field_name_patterns: + name: instance + long_running: + return_type: google.protobuf.Empty + metadata_type: google.protobuf.Any + initial_poll_delay_millis: 60000 # 1 minutes + poll_delay_multiplier: 1.5 + max_poll_delay_millis: 360000 # 6 minutes + total_poll_timeout_millis: 1200000 # 20 minutes + timeout_millis: 60000 resource_name_generation: - message_name: ListInstancesRequest field_entity_map: diff --git a/lib/src/grpc_api/protos/google/cloud/speech/sample_resources.yaml b/lib/src/grpc_api/protos/google/cloud/speech/sample_resources.yaml new file mode 100644 index 00000000..5c00fc69 --- /dev/null +++ b/lib/src/grpc_api/protos/google/cloud/speech/sample_resources.yaml @@ -0,0 +1,26 @@ +# Canonical GCS paths to resource files used by samples and sample system tests +sample_resources: +- uri: gs://cloud-samples-data/speech/brooklyn_bridge.raw + description: | + 16000 Hz, 1 channel, English, "How old is the Brooklyn Bridge?" +- uri: gs://cloud-samples-data/speech/brooklyn_bridge.flac + description: | + 44100 Hz, 1 channel, English, "How old is the Brooklyn Bridge?" +- uri: gs://cloud-samples-data/speech/brooklyn_bridge.wav + description: | + 16000 Hz, 2 channel (only first contains audio data), English, "How old is the Brooklyn Bridge?" +- uri: gs://cloud-samples-data/speech/hello.raw + description: | + 16000 Hz, 1 channel, English, "Hello" +- uri: gs://cloud-samples-data/speech/hello.wav + description: | + 16000 Hz, 1 channel, English, "Hello" +- uri: gs://cloud-samples-data/speech/multi.flac + description: | + 44100 Hz, 1 channel, 2 speakers, English and Spanish, "How are you doing? Estoy bien, y tu?" +- uri: gs://cloud-samples-data/speech/multi.wav + description: | + 44100 Hz, 2 channels, 2 speakers, English and Spanish, "How are you doing? Estoy bien, y tu?" +- uri: gs://cloud-samples-data/speech/commercial_mono.wav + description: | + 8000 Hz, 1 channel, 2 speakers, English, Exerpt "I'd like to buy a Chromecast" diff --git a/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_async.test.yaml b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_async.test.yaml new file mode 100644 index 00000000..387e4b7e --- /dev/null +++ b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_async.test.yaml @@ -0,0 +1,26 @@ +test: + suites: + - name: Transcribe Audio File using Long Running Operation (Local File) (LRO) + cases: + + # This sample should default to using brooklyn_bridge.raw + # with explicitly configured sample_rate_hertz and encoding + - name: speech_transcribe_async (no arguments) + spec: + - call: + sample: speech_transcribe_async + - assert_contains: + - literal: "how old is the Brooklyn Bridge" + + # Confirm that another file can be transcribed (use another .raw PCM file) + - name: speech_transcribe_async (--local_file_path) + spec: + - call: + sample: speech_transcribe_async + params: + local_file_path: + literal: "resources/hello.raw" + - assert_contains: + - literal: "hello" + - assert_not_contains: + - literal: "how old is the Brooklyn Bridge" diff --git a/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_async.yaml b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_async.yaml new file mode 100644 index 00000000..97cd7109 --- /dev/null +++ b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_async.yaml @@ -0,0 +1,35 @@ +samples: +- id: speech_transcribe_async + title: Transcribe Audio File using Long Running Operation (Local File) (LRO) + description: Transcribe a long audio file using asynchronous speech recognition + rpc: LongRunningRecognize + service: google.cloud.speech.v1.Speech + parameters: + defaults: + - audio.content = "resources/brooklyn_bridge.raw" + - config.language_code = "en-US" + - config.sample_rate_hertz = 16000 + - config.encoding = LINEAR16 + attributes: + - parameter: audio.content + sample_argument_name: local_file_path + read_file: true + description: "Path to local audio file, e.g. /path/audio.wav" + - parameter: config.language_code + description: "The language of the supplied audio" + - parameter: config.sample_rate_hertz + description: Sample rate in Hertz of the audio data sent + - parameter: config.encoding + description: | + Encoding of audio data sent. This sample sets this explicitly. + This field is optional for FLAC and WAV audio formats. + on_success: + - loop: + variable: result + collection: $resp.results + body: + - comment: ["First alternative is the most probable result"] + - define: alternative=result.alternatives[0] + - print: + - "Transcript: %s" + - alternative.transcript diff --git a/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_async_gcs.test.yaml b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_async_gcs.test.yaml new file mode 100644 index 00000000..146fb5c5 --- /dev/null +++ b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_async_gcs.test.yaml @@ -0,0 +1,26 @@ +test: + suites: + - name: Transcript Audio File using Long Running Operation (Cloud Storage) (LRO) + cases: + + # This sample should default to using gs://cloud-samples-data/brooklyn_bridge.raw + # with explicitly configured sample_rate_hertz and encoding + - name: speech_transcribe_async_gcs (no arguments) + spec: + - call: + sample: speech_transcribe_async_gcs + - assert_contains: + - literal: "how old is the Brooklyn Bridge" + + # Confirm that another file can be transcribed (use another .raw PCM file) + - name: speech_transcribe_async_gcs (--storage_uri) + spec: + - call: + sample: speech_transcribe_async_gcs + params: + storage_uri: + literal: "gs://cloud-samples-data/speech/hello.raw" + - assert_contains: + - literal: "hello" + - assert_not_contains: + - literal: "how old is the Brooklyn Bridge" diff --git a/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_async_gcs.yaml b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_async_gcs.yaml new file mode 100644 index 00000000..f4bce2bc --- /dev/null +++ b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_async_gcs.yaml @@ -0,0 +1,35 @@ +samples: +- id: speech_transcribe_async_gcs + title: Transcript Audio File using Long Running Operation (Cloud Storage) (LRO) + description: | + Transcribe long audio file from Cloud Storage using asynchronous speech recognition + rpc: LongRunningRecognize + service: google.cloud.speech.v1.Speech + parameters: + defaults: + - audio.uri = "gs://cloud-samples-data/speech/brooklyn_bridge.raw" + - config.sample_rate_hertz = 16000 + - config.language_code = "en-US" + - config.encoding = LINEAR16 + attributes: + - parameter: audio.uri + sample_argument_name: storage_uri + description: "URI for audio file in Cloud Storage, e.g. gs://[BUCKET]/[FILE]" + - parameter: config.language_code + description: "The language of the supplied audio" + - parameter: config.sample_rate_hertz + description: Sample rate in Hertz of the audio data sent + - parameter: config.encoding + description: | + Encoding of audio data sent. This sample sets this explicitly. + This field is optional for FLAC and WAV audio formats. + on_success: + - loop: + variable: result + collection: $resp.results + body: + - comment: ["First alternative is the most probable result"] + - define: alternative=result.alternatives[0] + - print: + - "Transcript: %s" + - alternative.transcript diff --git a/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_async_word_time_offsets_gcs.test.yaml b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_async_word_time_offsets_gcs.test.yaml new file mode 100644 index 00000000..5528d025 --- /dev/null +++ b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_async_word_time_offsets_gcs.test.yaml @@ -0,0 +1,35 @@ +test: + suites: + - name: Getting word timestamps (Cloud Storage) (LRO) + cases: + + # This sample should default to using gs://cloud-samples-data/speech/brooklyn_bridge.flac + - name: speech_transcribe_async_word_time_offsets_gcs (no arguments) + spec: + - call: + sample: speech_transcribe_async_word_time_offsets_gcs + - assert_contains: + - literal: "how old is the Brooklyn Bridge" + - literal: "Word: how" + - literal: "Word: old" + - literal: "Word: is" + - literal: "Start time: 0 seconds" + - literal: "End time: 1 seconds" + + # Confirm that another file can be transcribed (use another file) + - name: speech_transcribe_async_word_time_offsets_gcs (--storage_uri) + spec: + - call: + sample: speech_transcribe_async_word_time_offsets_gcs + params: + storage_uri: + literal: "gs://cloud-samples-data/speech/multi.flac" + - assert_contains: + - literal: "how are you doing" + - literal: "Word: how" + - literal: "Word: are" + - literal: "Word: you" + - literal: "Start time: 0 seconds" + - literal: "End time: 1 seconds" + - assert_not_contains: + - literal: "how old is the Brooklyn Bridge" diff --git a/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_async_word_time_offsets_gcs.yaml b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_async_word_time_offsets_gcs.yaml new file mode 100644 index 00000000..e40d83d8 --- /dev/null +++ b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_async_word_time_offsets_gcs.yaml @@ -0,0 +1,38 @@ +samples: +- id: speech_transcribe_async_word_time_offsets_gcs + title: Getting word timestamps (Cloud Storage) (LRO) + description: | + Print start and end time of each word spoken in audio file from Cloud Storage + rpc: LongRunningRecognize + service: google.cloud.speech.v1.Speech + parameters: + defaults: + - audio.uri = "gs://cloud-samples-data/speech/brooklyn_bridge.flac" + - config.enable_word_time_offsets = True + - config.language_code = "en-US" + attributes: + - parameter: audio.uri + sample_argument_name: storage_uri + description: "URI for audio file in Cloud Storage, e.g. gs://[BUCKET]/[FILE]" + - parameter: config.enable_word_time_offsets + description: | + When enabled, the first result returned by the API will include a list + of words and the start and end time offsets (timestamps) for those words. + - parameter: config.language_code + description: "The language of the supplied audio" + on_success: + - comment: ["The first result includes start and end time word offsets"] + - define: result=$resp.results[0] + - comment: ["First alternative is the most probable result"] + - define: alternative=result.alternatives[0] + - print: + - "Transcript: %s" + - alternative.transcript + - comment: ["Print the start and end time of each word"] + - loop: + collection: alternative.words + variable: word + body: + - print: ["Word: %s", word.word] + - print: ["Start time: %s seconds %s nanos", word.start_time.seconds, word.start_time.nanos] + - print: ["End time: %s seconds %s nanos", word.end_time.seconds, word.end_time.nanos] diff --git a/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_enhanced_model.test.yaml b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_enhanced_model.test.yaml new file mode 100644 index 00000000..36ee3f34 --- /dev/null +++ b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_enhanced_model.test.yaml @@ -0,0 +1,27 @@ +test: + suites: + - name: Using Enhanced Models (Local File) + cases: + + # This sample should default to using hello.wav + # and the phone_call model (only currently available enhanced model) + # + # Note: if the project used to run these tests isn't eligible for + # enhanced models, you will receive an error. + - name: speech_transcribe_enhanced_model (no arguments) + spec: + - call: + sample: speech_transcribe_enhanced_model + - assert_contains: + - literal: "hello" + + # Confirm that another file can be transcribed (use another .wav file) + - name: speech_transcribe_enhanced_model (--local_file_path) + spec: + - call: + sample: speech_transcribe_enhanced_model + params: + local_file_path: + literal: "resources/commercial_mono.wav" + - assert_contains: + - literal: "Chrome" diff --git a/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_enhanced_model.yaml b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_enhanced_model.yaml new file mode 100644 index 00000000..adfb7cca --- /dev/null +++ b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_enhanced_model.yaml @@ -0,0 +1,38 @@ +samples: +- id: speech_transcribe_enhanced_model + title: Using Enhanced Models (Local File) + description: Transcribe a short audio file using an enhanced model + rpc: Recognize + service: google.cloud.speech.v1.Speech + parameters: + defaults: + - audio.content = "resources/hello.wav" + - config.model = "phone_call" + - config.use_enhanced = True + - config.language_code = "en-US" + attributes: + - parameter: audio.content + sample_argument_name: local_file_path + read_file: true + description: "Path to local audio file, e.g. /path/audio.wav" + - parameter: config.model + description: | + The enhanced model to use, e.g. phone_call + Currently phone_call is the only model available as an enhanced model. + - parameter: config.use_enhanced + description: | + Use an enhanced model for speech recognition (when set to true). + Project must be eligible for requesting enhanced models. + Enhanced speech models require that you opt-in to data logging. + - parameter: config.language_code + description: "The language of the supplied audio" + on_success: + - loop: + variable: result + collection: $resp.results + body: + - comment: ["First alternative is the most probable result"] + - define: alternative=result.alternatives[0] + - print: + - "Transcript: %s" + - alternative.transcript diff --git a/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_model_selection.test.yaml b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_model_selection.test.yaml new file mode 100644 index 00000000..d5f3ff57 --- /dev/null +++ b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_model_selection.test.yaml @@ -0,0 +1,50 @@ +test: + suites: + - name: Selecting a Transcription Model (Local File) + cases: + + # This sample should default to using hello.wav + # and the phone_call model + - name: speech_transcribe_model_selection (no arguments) + spec: + - call: + sample: speech_transcribe_model_selection + - assert_contains: + - literal: "Hello" + + # Confirm that another file can be transcribed (use another .wav file) + - name: speech_transcribe_model_selection (--local_file_path) + spec: + - call: + sample: speech_transcribe_model_selection + params: + local_file_path: + literal: "resources/commercial_mono.wav" + - assert_contains: + - literal: "Chrome" + + # Confirm that --model can be specified and the sample does not blow up + # + # Note: we are not using example audio files which result in deterministically + # different results when using different models. so we simply test + # that regular transcription continues to work. + - name: speech_transcribe_model_selection (--model) + spec: + - call: + sample: speech_transcribe_model_selection + params: + model: + literal: video + - assert_contains: + - literal: "hello" + + # Confirm that --model is being passed through by providing an invalid model + - name: speech_transcribe_model_selection (invalid --model) + spec: + - call_may_fail: + sample: speech_transcribe_model_selection + params: + model: + literal: I_DONT_EXIST + - assert_contains: + - literal: "Incorrect model specified" diff --git a/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_model_selection.yaml b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_model_selection.yaml new file mode 100644 index 00000000..1ff649a6 --- /dev/null +++ b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_model_selection.yaml @@ -0,0 +1,34 @@ +samples: +- id: speech_transcribe_model_selection + title: Selecting a Transcription Model (Local File) + description: Transcribe a short audio file using a specified transcription model + rpc: Recognize + service: google.cloud.speech.v1.Speech + parameters: + defaults: + - audio.content = "resources/hello.wav" + - config.model = "phone_call" + - config.language_code = "en-US" + attributes: + - parameter: audio.content + sample_argument_name: local_file_path + read_file: true + description: "Path to local audio file, e.g. /path/audio.wav" + - parameter: config.model + sample_argument_name: model + description: | + The transcription model to use, e.g. video, phone_call, default + For a list of available transcription models, see: + https://cloud.google.com/speech-to-text/docs/transcription-model#transcription_models + - parameter: config.language_code + description: "The language of the supplied audio" + on_success: + - loop: + variable: result + collection: $resp.results + body: + - comment: ["First alternative is the most probable result"] + - define: alternative=result.alternatives[0] + - print: + - "Transcript: %s" + - alternative.transcript diff --git a/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_model_selection_gcs.test.yaml b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_model_selection_gcs.test.yaml new file mode 100644 index 00000000..323079da --- /dev/null +++ b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_model_selection_gcs.test.yaml @@ -0,0 +1,50 @@ +test: + suites: + - name: Selecting a Transcription Model (Cloud Storage) + cases: + + # This sample should default to using gs://cloud-samples-data/speech/hello.wav + # and the phone_call model + - name: speech_transcribe_model_selection_gcs (no arguments) + spec: + - call: + sample: speech_transcribe_model_selection_gcs + - assert_contains: + - literal: "Hello" + + # Confirm that another file can be transcribed (use another .wav file) + - name: speech_transcribe_model_selection_gcs (--local_file_path) + spec: + - call: + sample: speech_transcribe_model_selection_gcs + params: + storage_uri: + literal: "gs://cloud-samples-data/speech/commercial_mono.wav" + - assert_contains: + - literal: "Chrome" + + # Confirm that --model can be specified and the sample does not blow up + # + # Note: we are not using example audio files which result in deterministically + # different results when using different models. so we simply test + # that regular transcription continues to work. + - name: speech_transcribe_model_selection_gcs (--model) + spec: + - call: + sample: speech_transcribe_model_selection_gcs + params: + model: + literal: video + - assert_contains: + - literal: "hello" + + # Confirm that --model is being passed through by providing an invalid model + - name: speech_transcribe_model_selection_gcs (invalid --model) + spec: + - call_may_fail: + sample: speech_transcribe_model_selection_gcs + params: + model: + literal: I_DONT_EXIST + - assert_contains: + - literal: "Incorrect model specified" diff --git a/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_model_selection_gcs.yaml b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_model_selection_gcs.yaml new file mode 100644 index 00000000..a16c3744 --- /dev/null +++ b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_model_selection_gcs.yaml @@ -0,0 +1,34 @@ +samples: +- id: speech_transcribe_model_selection_gcs + title: Selecting a Transcription Model (Cloud Storage) + description: | + Transcribe a short audio file from Cloud Storage using a specified transcription model + rpc: Recognize + service: google.cloud.speech.v1.Speech + parameters: + defaults: + - audio.uri = "gs://cloud-samples-data/speech/hello.wav" + - config.model = "phone_call" + - config.language_code = "en-US" + attributes: + - parameter: audio.uri + sample_argument_name: storage_uri + description: "URI for audio file in Cloud Storage, e.g. gs://[BUCKET]/[FILE]" + - parameter: config.model + sample_argument_name: model + description: | + The transcription model to use, e.g. video, phone_call, default + For a list of available transcription models, see: + https://cloud.google.com/speech-to-text/docs/transcription-model#transcription_models + - parameter: config.language_code + description: "The language of the supplied audio" + on_success: + - loop: + variable: result + collection: $resp.results + body: + - comment: ["First alternative is the most probable result"] + - define: alternative=result.alternatives[0] + - print: + - "Transcript: %s" + - alternative.transcript diff --git a/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_multichannel.test.yaml b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_multichannel.test.yaml new file mode 100644 index 00000000..18e77c69 --- /dev/null +++ b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_multichannel.test.yaml @@ -0,0 +1,29 @@ +test: + suites: + - name: Multi-Channel Audio Transcription (Local File) + cases: + + # This sample should default to using multi.wav (2 channels) + - name: speech_transcribe_multichannel (no arguments) + spec: + - call: + sample: speech_transcribe_multichannel + - assert_contains: + - literal: "Channel tag: 1" + - literal: "Channel tag: 2" + - literal: "how are you doing" + + # Confirm that another file can be transcribed (use another 2 channel .wav file) + - name: speech_transcribe_multichannel (--local_file_path) + spec: + - call: + sample: speech_transcribe_multichannel + params: + local_file_path: + literal: "resources/brooklyn_bridge.wav" + - assert_contains: + # Only one channel of data is present in brooklyn_bridge.wav + - literal: "Channel tag:" + - literal: "how old is the Brooklyn Bridge" + - assert_not_contains: + - literal: "how are you doing" diff --git a/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_multichannel.yaml b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_multichannel.yaml new file mode 100644 index 00000000..68d56a78 --- /dev/null +++ b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_multichannel.yaml @@ -0,0 +1,40 @@ +samples: +- id: speech_transcribe_multichannel + title: Multi-Channel Audio Transcription (Local File) + description: Transcribe a short audio file with multiple channels + rpc: Recognize + service: google.cloud.speech.v1.Speech + parameters: + defaults: + - audio.content = "resources/multi.wav" + - config.audio_channel_count = 2 + - config.enable_separate_recognition_per_channel = True + - config.language_code = "en-US" + attributes: + - parameter: audio.content + sample_argument_name: local_file_path + read_file: true + description: "Path to local audio file, e.g. /path/audio.wav" + - parameter: config.audio_channel_count + description: The number of channels in the input audio file (optional) + - parameter: config.enable_separate_recognition_per_channel + description: | + When set to true, each audio channel will be recognized separately. + The recognition result will contain a channel_tag field to state which + channel that result belongs to + - parameter: config.language_code + description: "The language of the supplied audio" + on_success: + - loop: + variable: result + collection: $resp.results + body: + - comment: + - "%s to recognize which audio channel this result is for" + - channel_tag + - print: ["Channel tag: %s", result.channel_tag] + - comment: ["First alternative is the most probable result"] + - define: alternative=result.alternatives[0] + - print: + - "Transcript: %s" + - alternative.transcript diff --git a/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_multichannel_gcs.test.yaml b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_multichannel_gcs.test.yaml new file mode 100644 index 00000000..6186121b --- /dev/null +++ b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_multichannel_gcs.test.yaml @@ -0,0 +1,30 @@ +test: + suites: + - name: Multi-Channel Audio Transcription (Cloud Storage) + cases: + + # This sample should default to using gs://cloud-samples-data/speech/multi.wav + # with 2 audio channels of data + - name: speech_transcribe_multichannel_gcs (no arguments) + spec: + - call: + sample: speech_transcribe_multichannel_gcs + - assert_contains: + - literal: "Channel tag: 1" + - literal: "Channel tag: 2" + - literal: "how are you doing" + + # Confirm that another file can be transcribed (use another 2 channel .wav file) + - name: speech_transcribe_multichannel_gcs (--storage_uri) + spec: + - call: + sample: speech_transcribe_multichannel_gcs + params: + storage_uri: + literal: "gs://cloud-samples-data/speech/brooklyn_bridge.wav" + - assert_contains: + # Only one channel of data is present in brooklyn_bridge.wav + - literal: "Channel tag:" + - literal: "how old is the Brooklyn Bridge" + - assert_not_contains: + - literal: "how are you doing" diff --git a/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_multichannel_gcs.yaml b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_multichannel_gcs.yaml new file mode 100644 index 00000000..f09b7cdd --- /dev/null +++ b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_multichannel_gcs.yaml @@ -0,0 +1,40 @@ +samples: +- id: speech_transcribe_multichannel_gcs + title: Multi-Channel Audio Transcription (Cloud Storage) + description: | + Transcribe a short audio file from Cloud Storage with multiple channels + rpc: Recognize + service: google.cloud.speech.v1.Speech + parameters: + defaults: + - audio.uri = "gs://cloud-samples-data/speech/multi.wav" + - config.audio_channel_count = 2 + - config.enable_separate_recognition_per_channel = True + - config.language_code = "en-US" + attributes: + - parameter: audio.uri + sample_argument_name: storage_uri + description: "URI for audio file in Cloud Storage, e.g. gs://[BUCKET]/[FILE]" + - parameter: config.audio_channel_count + description: The number of channels in the input audio file (optional) + - parameter: config.enable_separate_recognition_per_channel + description: | + When set to true, each audio channel will be recognized separately. + The recognition result will contain a channel_tag field to state which + channel that result belongs to + - parameter: config.language_code + description: "The language of the supplied audio" + on_success: + - loop: + variable: result + collection: $resp.results + body: + - comment: + - "%s to recognize which audio channel this result is for" + - channel_tag + - print: ["Channel tag: %s", result.channel_tag] + - comment: ["First alternative is the most probable result"] + - define: alternative=result.alternatives[0] + - print: + - "Transcript: %s" + - alternative.transcript diff --git a/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_sync.test.yaml b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_sync.test.yaml new file mode 100644 index 00000000..aeb32119 --- /dev/null +++ b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_sync.test.yaml @@ -0,0 +1,26 @@ +test: + suites: + - name: Transcribe Audio File (Local File) + cases: + + # This sample should default to using brooklyn_bridge.raw + # with explicitly configured sample_rate_hertz and encoding + - name: speech_transcribe_sync (no arguments) + spec: + - call: + sample: speech_transcribe_sync + - assert_contains: + - literal: "how old is the Brooklyn Bridge" + + # Confirm that another file can be transcribed (use another .raw PCM file) + - name: speech_transcribe_sync (--local_file_path) + spec: + - call: + sample: speech_transcribe_sync + params: + local_file_path: + literal: "resources/hello.raw" + - assert_contains: + - literal: "hello" + - assert_not_contains: + - literal: "how old is the Brooklyn Bridge" diff --git a/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_sync.yaml b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_sync.yaml new file mode 100644 index 00000000..0529a287 --- /dev/null +++ b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_sync.yaml @@ -0,0 +1,35 @@ +samples: +- id: speech_transcribe_sync + title: Transcribe Audio File (Local File) + description: Transcribe a short audio file using synchronous speech recognition + rpc: Recognize + service: google.cloud.speech.v1.Speech + parameters: + defaults: + - audio.content = "resources/brooklyn_bridge.raw" + - config.language_code = "en-US" + - config.sample_rate_hertz = 16000 + - config.encoding = LINEAR16 + attributes: + - parameter: audio.content + sample_argument_name: local_file_path + read_file: true + description: "Path to local audio file, e.g. /path/audio.wav" + - parameter: config.language_code + description: "The language of the supplied audio" + - parameter: config.sample_rate_hertz + description: Sample rate in Hertz of the audio data sent + - parameter: config.encoding + description: | + Encoding of audio data sent. This sample sets this explicitly. + This field is optional for FLAC and WAV audio formats. + on_success: + - loop: + variable: result + collection: $resp.results + body: + - comment: ["First alternative is the most probable result"] + - define: alternative=result.alternatives[0] + - print: + - "Transcript: %s" + - alternative.transcript diff --git a/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_sync_gcs.test.yaml b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_sync_gcs.test.yaml new file mode 100644 index 00000000..2e50f360 --- /dev/null +++ b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_sync_gcs.test.yaml @@ -0,0 +1,26 @@ +test: + suites: + - name: Transcript Audio File (Cloud Storage) + cases: + + # This sample should default to using gs://cloud-samples-data/speech/brooklyn_bridge.raw + # with explicitly configured sample_rate_hertz and encoding + - name: speech_transcribe_sync_gcs (no arguments) + spec: + - call: + sample: speech_transcribe_sync_gcs + - assert_contains: + - literal: "how old is the Brooklyn Bridge" + + # Confirm that another file can be transcribed (use another .raw PCM file) + - name: speech_transcribe_sync_gcs (--storage_uri) + spec: + - call: + sample: speech_transcribe_sync_gcs + params: + storage_uri: + literal: "gs://cloud-samples-data/speech/hello.raw" + - assert_contains: + - literal: "hello" + - assert_not_contains: + - literal: "how old is the Brooklyn Bridge" diff --git a/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_sync_gcs.yaml b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_sync_gcs.yaml new file mode 100644 index 00000000..6ebb1d2a --- /dev/null +++ b/lib/src/grpc_api/protos/google/cloud/speech/v1/samples/speech_transcribe_sync_gcs.yaml @@ -0,0 +1,35 @@ +samples: +- id: speech_transcribe_sync_gcs + title: Transcript Audio File (Cloud Storage) + description: | + Transcribe short audio file from Cloud Storage using synchronous speech recognition + rpc: Recognize + service: google.cloud.speech.v1.Speech + parameters: + defaults: + - audio.uri = "gs://cloud-samples-data/speech/brooklyn_bridge.raw" + - config.sample_rate_hertz = 16000 + - config.language_code = "en-US" + - config.encoding = LINEAR16 + attributes: + - parameter: audio.uri + sample_argument_name: storage_uri + description: "URI for audio file in Cloud Storage, e.g. gs://[BUCKET]/[FILE]" + - parameter: config.language_code + description: "The language of the supplied audio" + - parameter: config.sample_rate_hertz + description: Sample rate in Hertz of the audio data sent + - parameter: config.encoding + description: | + Encoding of audio data sent. This sample sets this explicitly. + This field is optional for FLAC and WAV audio formats. + on_success: + - loop: + variable: result + collection: $resp.results + body: + - comment: ["First alternative is the most probable result"] + - define: alternative=result.alternatives[0] + - print: + - "Transcript: %s" + - alternative.transcript diff --git a/lib/src/grpc_api/protos/google/cloud/speech/v1/speech_gapic.yaml b/lib/src/grpc_api/protos/google/cloud/speech/v1/speech_gapic.yaml index 1e2d456c..1edeb998 100644 --- a/lib/src/grpc_api/protos/google/cloud/speech/v1/speech_gapic.yaml +++ b/lib/src/grpc_api/protos/google/cloud/speech/v1/speech_gapic.yaml @@ -62,6 +62,285 @@ interfaces: retry_codes_name: idempotent retry_params_name: default timeout_millis: 1000000 + samples: + standalone: + - region_tag: speech_transcribe_sync_gcs + value_sets: + - speech_transcribe_sync_gcs + - region_tag: speech_transcribe_sync + value_sets: + - speech_transcribe_sync + - region_tag: speech_transcribe_multichannel + value_sets: + - speech_transcribe_multichannel + - region_tag: speech_transcribe_model_selection_gcs + value_sets: + - speech_transcribe_model_selection_gcs + - region_tag: speech_transcribe_async_word_time_offsets_gcs + value_sets: + - speech_transcribe_async_word_time_offsets_gcs + - region_tag: speech_transcribe_model_selection + value_sets: + - speech_transcribe_model_selection + - region_tag: speech_transcribe_multichannel_gcs + value_sets: + - speech_transcribe_multichannel_gcs + - region_tag: speech_transcribe_enhanced_model + value_sets: + - speech_transcribe_enhanced_model + sample_value_sets: + - id: speech_transcribe_model_selection_gcs + title: Selecting a Transcription Model (Cloud Storage) + description: 'Transcribe a short audio file from Cloud Storage using a specified + transcription model + +' + parameters: + defaults: + - audio.uri = "gs://cloud-samples-data/speech/hello.wav" + - config.model = "phone_call" + - config.language_code = "en-US" + attributes: + - parameter: audio.uri + sample_argument_name: storage_uri + description: URI for audio file in Cloud Storage, e.g. gs://[BUCKET]/[FILE] + - parameter: config.model + sample_argument_name: model + description: | + The transcription model to use, e.g. video, phone_call, default + For a list of available transcription models, see: + https://cloud.google.com/speech-to-text/docs/transcription-model#transcription_models + - parameter: config.language_code + description: The language of the supplied audio + on_success: + - loop: + variable: result + collection: "$resp.results" + body: + - comment: + - First alternative is the most probable result + - define: alternative=result.alternatives[0] + - print: + - 'Transcript: %s' + - alternative.transcript + - id: speech_transcribe_sync_gcs + title: Transcript Audio File (Cloud Storage) + description: 'Transcribe short audio file from Cloud Storage using synchronous + speech recognition + +' + parameters: + defaults: + - audio.uri = "gs://cloud-samples-data/speech/brooklyn_bridge.raw" + - config.sample_rate_hertz = 16000 + - config.language_code = "en-US" + - config.encoding = LINEAR16 + attributes: + - parameter: audio.uri + sample_argument_name: storage_uri + description: URI for audio file in Cloud Storage, e.g. gs://[BUCKET]/[FILE] + - parameter: config.language_code + description: The language of the supplied audio + - parameter: config.sample_rate_hertz + description: Sample rate in Hertz of the audio data sent + - parameter: config.encoding + description: | + Encoding of audio data sent. This sample sets this explicitly. + This field is optional for FLAC and WAV audio formats. + on_success: + - loop: + variable: result + collection: "$resp.results" + body: + - comment: + - First alternative is the most probable result + - define: alternative=result.alternatives[0] + - print: + - 'Transcript: %s' + - alternative.transcript + - id: speech_transcribe_sync + title: Transcribe Audio File (Local File) + description: Transcribe a short audio file using synchronous speech recognition + parameters: + defaults: + - audio.content = "resources/brooklyn_bridge.raw" + - config.language_code = "en-US" + - config.sample_rate_hertz = 16000 + - config.encoding = LINEAR16 + attributes: + - parameter: audio.content + sample_argument_name: local_file_path + read_file: true + description: Path to local audio file, e.g. /path/audio.wav + - parameter: config.language_code + description: The language of the supplied audio + - parameter: config.sample_rate_hertz + description: Sample rate in Hertz of the audio data sent + - parameter: config.encoding + description: | + Encoding of audio data sent. This sample sets this explicitly. + This field is optional for FLAC and WAV audio formats. + on_success: + - loop: + variable: result + collection: "$resp.results" + body: + - comment: + - First alternative is the most probable result + - define: alternative=result.alternatives[0] + - print: + - 'Transcript: %s' + - alternative.transcript + - id: speech_transcribe_model_selection + title: Selecting a Transcription Model (Local File) + description: Transcribe a short audio file using a specified transcription model + parameters: + defaults: + - audio.content = "resources/hello.wav" + - config.model = "phone_call" + - config.language_code = "en-US" + attributes: + - parameter: audio.content + sample_argument_name: local_file_path + read_file: true + description: Path to local audio file, e.g. /path/audio.wav + - parameter: config.model + sample_argument_name: model + description: | + The transcription model to use, e.g. video, phone_call, default + For a list of available transcription models, see: + https://cloud.google.com/speech-to-text/docs/transcription-model#transcription_models + - parameter: config.language_code + description: The language of the supplied audio + on_success: + - loop: + variable: result + collection: "$resp.results" + body: + - comment: + - First alternative is the most probable result + - define: alternative=result.alternatives[0] + - print: + - 'Transcript: %s' + - alternative.transcript + - id: speech_transcribe_multichannel_gcs + title: Multi-Channel Audio Transcription (Cloud Storage) + description: 'Transcribe a short audio file from Cloud Storage with multiple + channels + +' + parameters: + defaults: + - audio.uri = "gs://cloud-samples-data/speech/multi.wav" + - config.audio_channel_count = 2 + - config.enable_separate_recognition_per_channel = True + - config.language_code = "en-US" + attributes: + - parameter: audio.uri + sample_argument_name: storage_uri + description: URI for audio file in Cloud Storage, e.g. gs://[BUCKET]/[FILE] + - parameter: config.audio_channel_count + description: The number of channels in the input audio file (optional) + - parameter: config.enable_separate_recognition_per_channel + description: | + When set to true, each audio channel will be recognized separately. + The recognition result will contain a channel_tag field to state which + channel that result belongs to + - parameter: config.language_code + description: The language of the supplied audio + on_success: + - loop: + variable: result + collection: "$resp.results" + body: + - comment: + - "%s to recognize which audio channel this result is for" + - channel_tag + - print: + - 'Channel tag: %s' + - result.channel_tag + - comment: + - First alternative is the most probable result + - define: alternative=result.alternatives[0] + - print: + - 'Transcript: %s' + - alternative.transcript + - id: speech_transcribe_multichannel + title: Multi-Channel Audio Transcription (Local File) + description: Transcribe a short audio file with multiple channels + parameters: + defaults: + - audio.content = "resources/multi.wav" + - config.audio_channel_count = 2 + - config.enable_separate_recognition_per_channel = True + - config.language_code = "en-US" + attributes: + - parameter: audio.content + sample_argument_name: local_file_path + read_file: true + description: Path to local audio file, e.g. /path/audio.wav + - parameter: config.audio_channel_count + description: The number of channels in the input audio file (optional) + - parameter: config.enable_separate_recognition_per_channel + description: | + When set to true, each audio channel will be recognized separately. + The recognition result will contain a channel_tag field to state which + channel that result belongs to + - parameter: config.language_code + description: The language of the supplied audio + on_success: + - loop: + variable: result + collection: "$resp.results" + body: + - comment: + - "%s to recognize which audio channel this result is for" + - channel_tag + - print: + - 'Channel tag: %s' + - result.channel_tag + - comment: + - First alternative is the most probable result + - define: alternative=result.alternatives[0] + - print: + - 'Transcript: %s' + - alternative.transcript + - id: speech_transcribe_enhanced_model + title: Using Enhanced Models (Local File) + description: Transcribe a short audio file using an enhanced model + parameters: + defaults: + - audio.content = "resources/hello.wav" + - config.model = "phone_call" + - config.use_enhanced = True + - config.language_code = "en-US" + attributes: + - parameter: audio.content + sample_argument_name: local_file_path + read_file: true + description: Path to local audio file, e.g. /path/audio.wav + - parameter: config.model + description: | + The enhanced model to use, e.g. phone_call + Currently phone_call is the only model available as an enhanced model. + - parameter: config.use_enhanced + description: | + Use an enhanced model for speech recognition (when set to true). + Project must be eligible for requesting enhanced models. + Enhanced speech models require that you opt-in to data logging. + - parameter: config.language_code + description: The language of the supplied audio + on_success: + - loop: + variable: result + collection: "$resp.results" + body: + - comment: + - First alternative is the most probable result + - define: alternative=result.alternatives[0] + - print: + - 'Transcript: %s' + - alternative.transcript - name: LongRunningRecognize flattening: groups: @@ -86,6 +365,134 @@ interfaces: poll_delay_multiplier: 1.5 max_poll_delay_millis: 45000 total_poll_timeout_millis: 86400000 + samples: + standalone: + - region_tag: speech_transcribe_async_gcs + value_sets: + - speech_transcribe_async_gcs + - region_tag: speech_transcribe_async + value_sets: + - speech_transcribe_async + - region_tag: speech_transcribe_async_word_time_offsets_gcs + value_sets: + - speech_transcribe_async_word_time_offsets_gcs + sample_value_sets: + - id: speech_transcribe_async_gcs + title: Transcript Audio File using Long Running Operation (Cloud Storage) (LRO) + description: 'Transcribe long audio file from Cloud Storage using asynchronous + speech recognition + +' + parameters: + defaults: + - audio.uri = "gs://cloud-samples-data/speech/brooklyn_bridge.raw" + - config.sample_rate_hertz = 16000 + - config.language_code = "en-US" + - config.encoding = LINEAR16 + attributes: + - parameter: audio.uri + sample_argument_name: storage_uri + description: URI for audio file in Cloud Storage, e.g. gs://[BUCKET]/[FILE] + - parameter: config.language_code + description: The language of the supplied audio + - parameter: config.sample_rate_hertz + description: Sample rate in Hertz of the audio data sent + - parameter: config.encoding + description: | + Encoding of audio data sent. This sample sets this explicitly. + This field is optional for FLAC and WAV audio formats. + on_success: + - loop: + variable: result + collection: "$resp.results" + body: + - comment: + - First alternative is the most probable result + - define: alternative=result.alternatives[0] + - print: + - 'Transcript: %s' + - alternative.transcript + - id: speech_transcribe_async + title: Transcribe Audio File using Long Running Operation (Local File) (LRO) + description: Transcribe a long audio file using asynchronous speech recognition + parameters: + defaults: + - audio.content = "resources/brooklyn_bridge.raw" + - config.language_code = "en-US" + - config.sample_rate_hertz = 16000 + - config.encoding = LINEAR16 + attributes: + - parameter: audio.content + sample_argument_name: local_file_path + read_file: true + description: Path to local audio file, e.g. /path/audio.wav + - parameter: config.language_code + description: The language of the supplied audio + - parameter: config.sample_rate_hertz + description: Sample rate in Hertz of the audio data sent + - parameter: config.encoding + description: | + Encoding of audio data sent. This sample sets this explicitly. + This field is optional for FLAC and WAV audio formats. + on_success: + - loop: + variable: result + collection: "$resp.results" + body: + - comment: + - First alternative is the most probable result + - define: alternative=result.alternatives[0] + - print: + - 'Transcript: %s' + - alternative.transcript + - id: speech_transcribe_async_word_time_offsets_gcs + title: Getting word timestamps (Cloud Storage) (LRO) + description: 'Print start and end time of each word spoken in audio file from + Cloud Storage + +' + parameters: + defaults: + - audio.uri = "gs://cloud-samples-data/speech/brooklyn_bridge.flac" + - config.enable_word_time_offsets = True + - config.language_code = "en-US" + attributes: + - parameter: audio.uri + sample_argument_name: storage_uri + description: URI for audio file in Cloud Storage, e.g. gs://[BUCKET]/[FILE] + - parameter: config.enable_word_time_offsets + description: | + When enabled, the first result returned by the API will include a list + of words and the start and end time offsets (timestamps) for those words. + - parameter: config.language_code + description: The language of the supplied audio + on_success: + - comment: + - The first result includes start and end time word offsets + - define: result=$resp.results[0] + - comment: + - First alternative is the most probable result + - define: alternative=result.alternatives[0] + - print: + - 'Transcript: %s' + - alternative.transcript + - comment: + - Print the start and end time of each word + - loop: + collection: alternative.words + variable: word + body: + - print: + - 'Word: %s' + - word.word + - print: + - 'Start time: %s seconds %s nanos' + - word.start_time.seconds + - word.start_time.nanos + - print: + - 'End time: %s seconds %s nanos' + - word.end_time.seconds + - word.end_time.nanos - name: StreamingRecognize retry_codes_name: idempotent retry_params_name: default diff --git a/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/cloud_speech.proto b/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/cloud_speech.proto index 146d9f3a..731d4ee4 100644 --- a/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/cloud_speech.proto +++ b/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/cloud_speech.proto @@ -515,6 +515,12 @@ message SpeechContext { // specific commands are typically spoken by the user. This can also be used // to add additional words to the vocabulary of the recognizer. See // [usage limits](/speech-to-text/quotas#content). + // + // List items can also be set to classes for groups of words that represent + // common concepts that occur in natural language. For example, rather than + // providing phrase hints for every month of the year, using the $MONTH class + // improves the likelihood of correctly transcribing audio that includes + // months. repeated string phrases = 1; // Hint Boost. Positive value will increase the probability that a specific diff --git a/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_adaptation_beta.test.yaml b/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_adaptation_beta.test.yaml new file mode 100644 index 00000000..a5be2cba --- /dev/null +++ b/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_adaptation_beta.test.yaml @@ -0,0 +1,9 @@ +test: + suites: + - name: Speech-to-Text Sample Tests For Speech Adaptation + cases: + - name: speech_adaptation_beta + spec: + - call: {sample: speech_adaptation_beta} + - assert_contains: + - literal: "how old is the Brooklyn Bridge" diff --git a/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_contexts_classes_beta.test.yaml b/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_contexts_classes_beta.test.yaml new file mode 100644 index 00000000..6525a4be --- /dev/null +++ b/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_contexts_classes_beta.test.yaml @@ -0,0 +1,9 @@ +test: + suites: + - name: Speech-to-Text Sample Tests For Speech Contexts Static Classes + cases: + - name: speech_contexts_classes_beta + spec: + - call: {sample: speech_contexts_classes_beta} + - assert_contains: + - literal: "the time is 5:45 p.m." diff --git a/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_quickstart_beta.test.yaml b/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_quickstart_beta.test.yaml new file mode 100644 index 00000000..10ec749d --- /dev/null +++ b/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_quickstart_beta.test.yaml @@ -0,0 +1,9 @@ +test: + suites: + - name: Speech-to-Text Sample Tests For Quickstart + cases: + - name: speech_quickstart_beta + spec: + - call: {sample: speech_quickstart_beta} + - assert_contains: + - literal: "how old is the Brooklyn Bridge" diff --git a/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_auto_punctuation_beta.test.yaml b/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_auto_punctuation_beta.test.yaml new file mode 100644 index 00000000..cb49b8c7 --- /dev/null +++ b/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_auto_punctuation_beta.test.yaml @@ -0,0 +1,26 @@ +test: + suites: + - name: Getting punctuation in results (Local File) (Beta) + cases: + + # This sample should default to using commercial_mono.wav + - name: speech_transcribe_auto_punctuation_beta (no arguments) + spec: + - call: + sample: speech_transcribe_auto_punctuation_beta + - assert_contains: + # Simply assert that actual punctuation is present from commercial_mono.wav + - literal: "?" + - literal: "," + - literal: "'" + + # Confirm that another file can be transcribed (use another file) + - name: speech_transcribe_auto_punctuation_beta (--local_file_path) + spec: + - call: + sample: speech_transcribe_auto_punctuation_beta + params: + local_file_path: + literal: "resources/brooklyn_bridge.flac" + - assert_contains: + - literal: "How old is the Brooklyn Bridge?" diff --git a/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_auto_punctuation_beta.yaml b/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_auto_punctuation_beta.yaml new file mode 100644 index 00000000..2093ab0d --- /dev/null +++ b/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_auto_punctuation_beta.yaml @@ -0,0 +1,34 @@ +samples: +- id: speech_transcribe_auto_punctuation_beta + title: Getting punctuation in results (Local File) (Beta) + description: | + Transcribe a short audio file with punctuation + rpc: Recognize + service: google.cloud.speech.v1p1beta1.Speech + parameters: + defaults: + - audio.content = "resources/commercial_mono.wav" + - config.enable_automatic_punctuation = True + - config.language_code = "en-US" + attributes: + - parameter: audio.content + sample_argument_name: local_file_path + read_file: true + description: "Path to local audio file, e.g. /path/audio.wav" + - parameter: config.enable_automatic_punctuation + description: | + When enabled, trascription results may include punctuation (available for select languages). + - parameter: config.language_code + description: | + The language of the supplied audio. Even though additional languages are + provided by alternative_language_codes, a primary language is still required. + on_success: + - loop: + variable: result + collection: $resp.results + body: + - comment: ["First alternative is the most probable result"] + - define: alternative=result.alternatives[0] + - print: + - "Transcript: %s" + - alternative.transcript diff --git a/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_diarization_beta.test.yaml b/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_diarization_beta.test.yaml new file mode 100644 index 00000000..f752efa5 --- /dev/null +++ b/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_diarization_beta.test.yaml @@ -0,0 +1,38 @@ +test: + suites: + - name: Separating different speakers (Local File) (LRO) (Beta) + cases: + + # This sample should default to using commercial_mono.wav + - name: speech_transcribe_diarization_beta (no arguments) + spec: + - call: + sample: speech_transcribe_diarization_beta + - assert_contains: + - literal: "Word: Chrome" + # The identifier given to each speaker is non-deterministic. + # For two speakers, it can be 0 and 1, 0 and 2, or other variations. + # + # The example audio file has two speakers, but this test is + # not verifying that greater than one speaker is detected. + - literal: "Speaker tag:" + + # Confirm that another file can be transcribed (use another .flac file) + - name: speech_transcribe_diarization_beta (--local_file_path) + spec: + - call: + sample: speech_transcribe_diarization_beta + params: + local_file_path: + literal: "resources/multi.flac" + - assert_contains: + - literal: "how are you doing" + - literal: "Word: doing" + # The identifier given to each speaker is non-deterministic. + # For two speakers, it can be 0 and 1, 0 and 2, or other variations. + # + # The example audio file has two speakers, but this test is + # not verifying that greater than one speaker is detected. + - literal: "Speaker tag:" + - assert_not_contains: + - literal: "Chrome" diff --git a/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_diarization_beta.yaml b/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_diarization_beta.yaml new file mode 100644 index 00000000..4e2eb66b --- /dev/null +++ b/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_diarization_beta.yaml @@ -0,0 +1,46 @@ +samples: +# TODO: this id should include "async" (calls LongRunningRecognize async rpc) +- id: speech_transcribe_diarization_beta + title: Separating different speakers (Local File) (LRO) (Beta) + description: | + Print confidence level for individual words in a transcription of a short audio file + Separating different speakers in an audio file recording + rpc: LongRunningRecognize + service: google.cloud.speech.v1p1beta1.Speech + parameters: + defaults: + - audio.content = "resources/commercial_mono.wav" + - config.enable_speaker_diarization = True + - config.diarization_speaker_count = 2 + - config.language_code = "en-US" + attributes: + - parameter: audio.content + sample_argument_name: local_file_path + read_file: true + description: "Path to local audio file, e.g. /path/audio.wav" + - parameter: config.enable_speaker_diarization + description: | + If enabled, each word in the first alternative of each result will be + tagged with a speaker tag to identify the speaker. + - parameter: config.diarization_speaker_count + description: | + Optional. Specifies the estimated number of speakers in the conversation. + - parameter: config.language_code + description: "The language of the supplied audio" + on_success: + - loop: + collection: $resp.results + variable: result + body: + - comment: ["First alternative has words tagged with speakers"] + - define: alternative=result.alternatives[0] + - print: + - "Transcript: %s" + - alternative.transcript + - comment: ["Print the %s of each word", speaker_tag] + - loop: + collection: alternative.words + variable: word + body: + - print: ["Word: %s", word.word] + - print: ["Speaker tag: %s", word.speaker_tag] diff --git a/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_multilanguage_beta.test.yaml b/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_multilanguage_beta.test.yaml new file mode 100644 index 00000000..a9b0dd54 --- /dev/null +++ b/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_multilanguage_beta.test.yaml @@ -0,0 +1,31 @@ +test: + suites: + - name: Detecting language spoken automatically (Local File) (Beta) + cases: + + # This sample should default to using brooklyn_bridge.flac + - name: speech_transcribe_multilanguage_beta (no arguments) + spec: + - call: + sample: speech_transcribe_multilanguage_beta + - assert_contains: + - literal: "how old is the Brooklyn Bridge" + # Note: the primary language_code given was not English, but + # English was provided in the list of alternative_language_codes + - literal: "Detected language: en-us" + + # Confirm that another file can be transcribed (use another .flac file) + - name: speech_transcribe_multilanguage_beta (--local_file_path) + spec: + - call: + sample: speech_transcribe_multilanguage_beta + params: + local_file_path: + literal: "resources/multi.flac" + - assert_contains: + - literal: "how are you doing" + # Note: the primary language_code given was not English, but + # English was provided in the list of alternative_language_codes + - literal: "Detected language: en-us" + - assert_not_contains: + - literal: "how old is the Brooklyn Bridge" diff --git a/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_multilanguage_beta.yaml b/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_multilanguage_beta.yaml new file mode 100644 index 00000000..7852d51e --- /dev/null +++ b/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_multilanguage_beta.yaml @@ -0,0 +1,37 @@ +samples: +- id: speech_transcribe_multilanguage_beta + title: Detecting language spoken automatically (Local File) (Beta) + description: | + Transcribe a short audio file with language detected from a list of possible languages + rpc: Recognize + service: google.cloud.speech.v1p1beta1.Speech + parameters: + defaults: + - audio.content = "resources/brooklyn_bridge.flac" + - config.language_code = "fr" + - config.alternative_language_codes[0] = "es" + - config.alternative_language_codes[1] = "en" + attributes: + - parameter: audio.content + sample_argument_name: local_file_path + read_file: true + description: "Path to local audio file, e.g. /path/audio.wav" + - parameter: config.alternative_language_codes[0] + description: | + Specify up to 3 additional languages as possible alternative languages of the supplied audio. + - parameter: config.language_code + description: | + The language of the supplied audio. Even though additional languages are + provided by alternative_language_codes, a primary language is still required. + on_success: + - loop: + variable: result + collection: $resp.results + body: + - comment: ["The %s which was detected as the most likely being spoken in the audio", language_code] + - print: ["Detected language: %s", result.language_code] + - comment: ["First alternative is the most probable result"] + - define: alternative=result.alternatives[0] + - print: + - "Transcript: %s" + - alternative.transcript diff --git a/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_recognition_metadata_beta.test.yaml b/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_recognition_metadata_beta.test.yaml new file mode 100644 index 00000000..7bcf7740 --- /dev/null +++ b/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_recognition_metadata_beta.test.yaml @@ -0,0 +1,25 @@ +test: + suites: + - name: Adding recognition metadata (Local File) (Beta) + cases: + + # This sample should default to using commercial_mono.wav + - name: speech_transcribe_recognition_metadata_beta (no arguments) + spec: + - call: + sample: speech_transcribe_recognition_metadata_beta + - assert_contains: + - literal: "Chrome" + + # Confirm that another file can be transcribed (use another file) + - name: speech_transcribe_recognition_metadata_beta (--local_file_path) + spec: + - call: + sample: speech_transcribe_recognition_metadata_beta + params: + local_file_path: + literal: "resources/brooklyn_bridge.flac" + - assert_contains: + - literal: "how old is the Brooklyn Bridge" + - assert_not_contains: + - literal: "Chrome" diff --git a/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_recognition_metadata_beta.yaml b/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_recognition_metadata_beta.yaml new file mode 100644 index 00000000..70dba725 --- /dev/null +++ b/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_recognition_metadata_beta.yaml @@ -0,0 +1,42 @@ +samples: +- id: speech_transcribe_recognition_metadata_beta + title: Adding recognition metadata (Local File) (Beta) + description: | + Adds additional details short audio file included in this recognition request + rpc: Recognize + service: google.cloud.speech.v1p1beta1.Speech + parameters: + defaults: + - audio.content = "resources/commercial_mono.wav" + - config.metadata.interaction_type = VOICE_SEARCH + - config.metadata.recording_device_type = SMARTPHONE + - config.metadata.recording_device_name = "Pixel 3" + - config.language_code = "en-US" + attributes: + - parameter: audio.content + sample_argument_name: local_file_path + read_file: true + description: "Path to local audio file, e.g. /path/audio.wav" + - parameter: config.metadata.interaction_type + description: | + The use case of the audio, e.g. PHONE_CALL, DISCUSSION, PRESENTATION, et al. + - parameter: config.metadata.recording_device_type + description: The kind of device used to capture the audio + - parameter: config.metadata.recording_device_name + description: | + The device used to make the recording. + Arbitrary string, e.g. 'Pixel XL', 'VoIP', 'Cardioid Microphone', or other value. + - parameter: config.language_code + description: | + The language of the supplied audio. Even though additional languages are + provided by alternative_language_codes, a primary language is still required. + on_success: + - loop: + variable: result + collection: $resp.results + body: + - comment: ["First alternative is the most probable result"] + - define: alternative=result.alternatives[0] + - print: + - "Transcript: %s" + - alternative.transcript diff --git a/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_word_level_confidence_beta.test.yaml b/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_word_level_confidence_beta.test.yaml new file mode 100644 index 00000000..d5ab8f18 --- /dev/null +++ b/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_word_level_confidence_beta.test.yaml @@ -0,0 +1,33 @@ +test: + suites: + - name: Enabling word-level confidence (Local File) (Beta) + cases: + + # This sample should default to using brooklyn_bridge.flac + - name: speech_transcribe_word_level_confidence_beta (no arguments) + spec: + - call: + sample: speech_transcribe_word_level_confidence_beta + - assert_contains: + - literal: "how old is the Brooklyn Bridge" + - literal: "Word: how" + - literal: "Word: old" + - literal: "Word: is" + - literal: "Confidence: 0." + + # Confirm that another file can be transcribed (use another .flac file) + - name: speech_transcribe_word_level_confidence_beta (--local_file_path) + spec: + - call: + sample: speech_transcribe_word_level_confidence_beta + params: + local_file_path: + literal: "resources/multi.flac" + - assert_contains: + - literal: "how are you doing" + - literal: "Word: how" + - literal: "Word: are" + - literal: "Word: you" + - literal: "Confidence: 0." + - assert_not_contains: + - literal: "how old is the Brooklyn Bridge" diff --git a/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_word_level_confidence_beta.yaml b/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_word_level_confidence_beta.yaml new file mode 100644 index 00000000..66978a5d --- /dev/null +++ b/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/samples/speech_transcribe_word_level_confidence_beta.yaml @@ -0,0 +1,38 @@ +samples: +- id: speech_transcribe_word_level_confidence_beta + title: Enabling word-level confidence (Local File) (Beta) + description: | + Print confidence level for individual words in a transcription of a short audio file + rpc: Recognize + service: google.cloud.speech.v1p1beta1.Speech + parameters: + defaults: + - audio.content = "resources/brooklyn_bridge.flac" + - config.enable_word_confidence = True + - config.language_code = "en-US" + attributes: + - parameter: audio.content + sample_argument_name: local_file_path + read_file: true + description: "Path to local audio file, e.g. /path/audio.wav" + - parameter: config.enable_word_confidence + description: | + When enabled, the first result returned by the API will include a list + of words and the confidence level for each of those words. + - parameter: config.language_code + description: "The language of the supplied audio" + on_success: + - comment: ["The first result includes confidence levels per word"] + - define: result=$resp.results[0] + - comment: ["First alternative is the most probable result"] + - define: alternative=result.alternatives[0] + - print: + - "Transcript: %s" + - alternative.transcript + - comment: ["Print the confidence level of each word"] + - loop: + collection: alternative.words + variable: word + body: + - print: ["Word: %s", word.word] + - print: ["Confidence: %s", word.confidence] diff --git a/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/speech_gapic.yaml b/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/speech_gapic.yaml index e01424be..dc4b2742 100644 --- a/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/speech_gapic.yaml +++ b/lib/src/grpc_api/protos/google/cloud/speech/v1p1beta1/speech_gapic.yaml @@ -1,6 +1,5 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 1.0.0 -# The settings of generated code in a specific language. language_settings: java: package_name: com.google.cloud.speech.v1p1beta1 @@ -16,9 +15,7 @@ language_settings: package_name: Google\Cloud\Speech\V1p1beta1 nodejs: package_name: speech.v1p1beta1 -# A list of API interface configurations. interfaces: - # The fully qualified name of the API interface. - name: google.cloud.speech.v1p1beta1.Speech smoke_test: method: Recognize @@ -27,18 +24,7 @@ interfaces: - config.sample_rate_hertz=44100 - config.encoding=FLAC - audio.uri="gs://gapic-toolkit/hello.flac" - # A list of resource collection configurations. - # Consists of a name_pattern and an entity_name. - # The name_pattern is a pattern to describe the names of the resources of this - # collection, using the platform's conventions for URI patterns. A generator - # may use this to generate methods to compose and decompose such names. The - # pattern should use named placeholders as in `shelves/{shelf}/books/{book}`; - # those will be taken as hints for the parameter names of the generated - # methods. If empty, no name methods are generated. - # The entity_name is the name to be used as a basis for generated methods and - # classes. collections: [] - # Definition for retryable codes. retry_codes_def: - name: idempotent retry_codes: @@ -46,7 +32,6 @@ interfaces: - UNAVAILABLE - name: non_idempotent retry_codes: [] - # Definition for retry/backoff parameters. retry_params_def: - name: default initial_retry_delay_millis: 100 @@ -56,60 +41,6 @@ interfaces: rpc_timeout_multiplier: 1 max_rpc_timeout_millis: 1000000 total_timeout_millis: 5000000 - # A list of method configurations. - # Common properties: - # - # name - The simple name of the method. - # - # flattening - Specifies the configuration for parameter flattening. - # Describes the parameter groups for which a generator should produce method - # overloads which allow a client to directly pass request message fields as - # method parameters. This information may or may not be used, depending on - # the target language. - # Consists of groups, which each represent a list of parameters to be - # flattened. Each parameter listed must be a field of the request message. - # - # required_fields - Fields that are always required for a request to be - # valid. - # - # resource_name_treatment - An enum that specifies how to treat the resource - # name formats defined in the field_name_patterns and - # response_field_name_patterns fields. - # UNSET: default value - # NONE: the collection configs will not be used by the generated code. - # VALIDATE: string fields will be validated by the client against the - # specified resource name formats. - # STATIC_TYPES: the client will use generated types for resource names. - # - # page_streaming - Specifies the configuration for paging. - # Describes information for generating a method which transforms a paging - # list RPC into a stream of resources. - # Consists of a request and a response. - # The request specifies request information of the list method. It defines - # which fields match the paging pattern in the request. The request consists - # of a page_size_field and a token_field. The page_size_field is the name of - # the optional field specifying the maximum number of elements to be - # returned in the response. The token_field is the name of the field in the - # request containing the page token. - # The response specifies response information of the list method. It defines - # which fields match the paging pattern in the response. The response - # consists of a token_field and a resources_field. The token_field is the - # name of the field in the response containing the next page token. The - # resources_field is the name of the field in the response containing the - # list of resources belonging to the page. - # - # retry_codes_name - Specifies the configuration for retryable codes. The - # name must be defined in interfaces.retry_codes_def. - # - # retry_params_name - Specifies the configuration for retry/backoff - # parameters. The name must be defined in interfaces.retry_params_def. - # - # field_name_patterns - Maps the field name of the request type to - # entity_name of interfaces.collections. - # Specifies the string pattern that the field must follow. - # - # timeout_millis - Specifies the default timeout for a non-retrying call. If - # the call is retrying, refer to retry_params_name instead. methods: - name: Recognize flattening: @@ -128,6 +59,289 @@ interfaces: retry_codes_name: idempotent retry_params_name: default timeout_millis: 1000000 + samples: + standalone: + - region_tag: speech_transcribe_word_level_confidence_beta + value_sets: + - speech_transcribe_word_level_confidence_beta + - region_tag: speech_transcribe_multilanguage_beta + value_sets: + - speech_transcribe_multilanguage_beta + - region_tag: speech_transcribe_recognition_metadata_beta + value_sets: + - speech_transcribe_recognition_metadata_beta + - region_tag: speech_transcribe_auto_punctuation_beta + value_sets: + - speech_transcribe_auto_punctuation_beta + - region_tag: speech_quickstart_beta + value_sets: + - speech_quickstart_beta + - region_tag: speech_adaptation_beta + value_sets: + - speech_adaptation_beta + - region_tag: speech_contexts_classes_beta + value_sets: + - speech_contexts_classes_beta + sample_value_sets: + - id: speech_transcribe_word_level_confidence_beta + title: Enabling word-level confidence (Local File) (Beta) + description: 'Print confidence level for individual words in a transcription + of a short audio file + +' + parameters: + defaults: + - audio.content = "resources/brooklyn_bridge.flac" + - config.enable_word_confidence = True + - config.language_code = "en-US" + attributes: + - parameter: audio.content + sample_argument_name: local_file_path + read_file: true + description: Path to local audio file, e.g. /path/audio.wav + - parameter: config.enable_word_confidence + description: | + When enabled, the first result returned by the API will include a list + of words and the confidence level for each of those words. + - parameter: config.language_code + description: The language of the supplied audio + on_success: + - comment: + - The first result includes confidence levels per word + - define: result=$resp.results[0] + - comment: + - First alternative is the most probable result + - define: alternative=result.alternatives[0] + - print: + - 'Transcript: %s' + - alternative.transcript + - comment: + - Print the confidence level of each word + - loop: + collection: alternative.words + variable: word + body: + - print: + - 'Word: %s' + - word.word + - print: + - 'Confidence: %s' + - word.confidence + - id: speech_transcribe_multilanguage_beta + title: Detecting language spoken automatically (Local File) (Beta) + description: 'Transcribe a short audio file with language detected from a list + of possible languages + +' + parameters: + defaults: + - audio.content = "resources/brooklyn_bridge.flac" + - config.language_code = "fr" + - config.alternative_language_codes[0] = "es" + - config.alternative_language_codes[1] = "en" + attributes: + - parameter: audio.content + sample_argument_name: local_file_path + read_file: true + description: Path to local audio file, e.g. /path/audio.wav + - parameter: config.alternative_language_codes[0] + description: 'Specify up to 3 additional languages as possible alternative + languages of the supplied audio. + +' + - parameter: config.language_code + description: | + The language of the supplied audio. Even though additional languages are + provided by alternative_language_codes, a primary language is still required. + on_success: + - loop: + variable: result + collection: "$resp.results" + body: + - comment: + - The %s which was detected as the most likely being spoken in the audio + - language_code + - print: + - 'Detected language: %s' + - result.language_code + - comment: + - First alternative is the most probable result + - define: alternative=result.alternatives[0] + - print: + - 'Transcript: %s' + - alternative.transcript + - id: speech_transcribe_auto_punctuation_beta + title: Getting punctuation in results (Local File) (Beta) + description: 'Transcribe a short audio file with punctuation + +' + parameters: + defaults: + - audio.content = "resources/commercial_mono.wav" + - config.enable_automatic_punctuation = True + - config.language_code = "en-US" + attributes: + - parameter: audio.content + sample_argument_name: local_file_path + read_file: true + description: Path to local audio file, e.g. /path/audio.wav + - parameter: config.enable_automatic_punctuation + description: 'When enabled, trascription results may include punctuation + (available for select languages). + +' + - parameter: config.language_code + description: | + The language of the supplied audio. Even though additional languages are + provided by alternative_language_codes, a primary language is still required. + on_success: + - loop: + variable: result + collection: "$resp.results" + body: + - comment: + - First alternative is the most probable result + - define: alternative=result.alternatives[0] + - print: + - 'Transcript: %s' + - alternative.transcript + - id: speech_transcribe_recognition_metadata_beta + title: Adding recognition metadata (Local File) (Beta) + description: "Adds additional details short audio file included in this recognition + request \n" + parameters: + defaults: + - audio.content = "resources/commercial_mono.wav" + - config.metadata.interaction_type = VOICE_SEARCH + - config.metadata.recording_device_type = SMARTPHONE + - config.metadata.recording_device_name = "Pixel 3" + - config.language_code = "en-US" + attributes: + - parameter: audio.content + sample_argument_name: local_file_path + read_file: true + description: Path to local audio file, e.g. /path/audio.wav + - parameter: config.metadata.interaction_type + description: 'The use case of the audio, e.g. PHONE_CALL, DISCUSSION, PRESENTATION, + et al. + +' + - parameter: config.metadata.recording_device_type + description: The kind of device used to capture the audio + - parameter: config.metadata.recording_device_name + description: | + The device used to make the recording. + Arbitrary string, e.g. 'Pixel XL', 'VoIP', 'Cardioid Microphone', or other value. + - parameter: config.language_code + description: | + The language of the supplied audio. Even though additional languages are + provided by alternative_language_codes, a primary language is still required. + on_success: + - loop: + variable: result + collection: "$resp.results" + body: + - comment: + - First alternative is the most probable result + - define: alternative=result.alternatives[0] + - print: + - 'Transcript: %s' + - alternative.transcript + - id: speech_quickstart_beta + description: "Performs synchronous speech recognition on an audio file." + parameters: + defaults: + - config.encoding=MP3 + - config.sample_rate_hertz=44100 + - config.language_code="en-US" + - audio.uri="gs://cloud-samples-data/speech/brooklyn_bridge.mp3" + attributes: + - parameter: config.sample_rate_hertz + sample_argument_name: sample_rate_hertz + description: "Sample rate in Hertz of the audio data sent in all `RecognitionAudio` messages. Valid values are: 8000-48000." + - parameter: config.language_code + sample_argument_name: language_code + description: The language of the supplied audio. + - parameter: audio.uri + sample_argument_name: uri_path + description: Path to the audio file stored on GCS. + on_success: + - loop: + collection: $resp.results + variable: result + body: + - define: transcript=result.alternatives[0].transcript + - print: ["Transcript: %s", transcript] + - id: speech_adaptation_beta + description: "Performs synchronous speech recognition with speech adaptation." + parameters: + defaults: + - config.encoding=MP3 + - config.sample_rate_hertz=44100 + - config.language_code="en-US" + - config.speech_contexts[0].phrases[0]="Brooklyn Bridge" + - config.speech_contexts[0].boost=20 + - audio.uri="gs://cloud-samples-data/speech/brooklyn_bridge.mp3" + attributes: + - parameter: config.sample_rate_hertz + sample_argument_name: sample_rate_hertz + description: "Sample rate in Hertz of the audio data sent in all `RecognitionAudio` messages. Valid values are: 8000-48000." + - parameter: config.language_code + sample_argument_name: language_code + description: The language of the supplied audio. + - parameter: config.speech_contexts[0].phrases[0] + sample_argument_name: phrase + description: Phrase "hints" help Speech-to-Text API recognize the specified phrases from your audio data. + - parameter: config.speech_contexts[0].boost + sample_argument_name: boost + description: Positive value will increase the probability that a specific phrase will be recognized over other similar sounding phrases. + - parameter: audio.uri + sample_argument_name: uri_path + description: Path to the audio file stored on GCS. + on_success: + - loop: + variable: result + collection: "$resp.results" + body: + - comment: + - First alternative is the most probable result + - define: alternative=result.alternatives[0] + - print: + - 'Transcript: %s' + - alternative.transcript + - id: speech_contexts_classes_beta + description: "Performs synchronous speech recognition with static context classes." + parameters: + defaults: + - config.encoding=MP3 + - config.sample_rate_hertz=24000 + - config.language_code="en-US" + - config.speech_contexts[0].phrases[0]="$TIME" + - audio.uri="gs://cloud-samples-data/speech/time.mp3" + attributes: + - parameter: config.sample_rate_hertz + sample_argument_name: sample_rate_hertz + description: "Sample rate in Hertz of the audio data sent in all `RecognitionAudio` messages. Valid values are: 8000-48000." + - parameter: config.language_code + sample_argument_name: language_code + description: The language of the supplied audio. + - parameter: config.speech_contexts[0].phrases[0] + sample_argument_name: phrase + description: Phrase "hints" help Speech-to-Text API recognize the specified phrases from your audio data. In this sample we are using a static class phrase ($TIME). Classes represent groups of words that represent common concepts that occur in natural language. We recommend checking out the docs page for more info on static classes. + - parameter: audio.uri + sample_argument_name: uri_path + description: Path to the audio file stored on GCS. + on_success: + - loop: + variable: result + collection: "$resp.results" + body: + - comment: + - First alternative is the most probable result + - define: alternative=result.alternatives[0] + - print: + - 'Transcript: %s' + - alternative.transcript - name: LongRunningRecognize flattening: groups: @@ -152,8 +366,64 @@ interfaces: poll_delay_multiplier: 1.5 max_poll_delay_millis: 45000 total_poll_timeout_millis: 86400000 + samples: + standalone: + - region_tag: speech_transcribe_diarization_beta + value_sets: + - speech_transcribe_diarization_beta + sample_value_sets: + - id: speech_transcribe_diarization_beta + title: Separating different speakers (Local File) (LRO) (Beta) + description: | + Print confidence level for individual words in a transcription of a short audio file + Separating different speakers in an audio file recording + parameters: + defaults: + - audio.content = "resources/commercial_mono.wav" + - config.enable_speaker_diarization = True + - config.diarization_speaker_count = 2 + - config.language_code = "en-US" + attributes: + - parameter: audio.content + sample_argument_name: local_file_path + read_file: true + description: Path to local audio file, e.g. /path/audio.wav + - parameter: config.enable_speaker_diarization + description: | + If enabled, each word in the first alternative of each result will be + tagged with a speaker tag to identify the speaker. + - parameter: config.diarization_speaker_count + description: 'Optional. Specifies the estimated number of speakers in the + conversation. + +' + - parameter: config.language_code + description: The language of the supplied audio + on_success: + - loop: + collection: "$resp.results" + variable: result + body: + - comment: + - First alternative has words tagged with speakers + - define: alternative=result.alternatives[0] + - print: + - 'Transcript: %s' + - alternative.transcript + - comment: + - Print the %s of each word + - speaker_tag + - loop: + collection: alternative.words + variable: word + body: + - print: + - 'Word: %s' + - word.word + - print: + - 'Speaker tag: %s' + - word.speaker_tag - name: StreamingRecognize retry_codes_name: idempotent retry_params_name: default timeout_millis: 1000000 - diff --git a/lib/src/grpc_api/protos/google/cloud/talent/talent_v4beta1.yaml b/lib/src/grpc_api/protos/google/cloud/talent/talent_v4beta1.yaml index e91deb90..01a300b7 100644 --- a/lib/src/grpc_api/protos/google/cloud/talent/talent_v4beta1.yaml +++ b/lib/src/grpc_api/protos/google/cloud/talent/talent_v4beta1.yaml @@ -12,6 +12,10 @@ apis: - name: google.cloud.talent.v4beta1.ProfileService - name: google.cloud.talent.v4beta1.TenantService +types: +- name: google.cloud.talent.v4beta1.BatchOperationMetadata +- name: google.cloud.talent.v4beta1.JobOperationResult + documentation: summary: |- Cloud Talent Solution provides the capability to create, read, update, and @@ -22,85 +26,29 @@ documentation: Cloud Talent Solution provides hiring companies and job distributors with the capability to create and manage job postings and organizational information, and perform job search using field based queries. This site - contains all of the information you need to integrate Cloud Talent Solution, - create company entities that represent employers with intended access - control, post and manage jobs on Garage Jobs on behalf of employers, and - search jobs where access control permits. For a full list of supported API - methods, refer to the [Reference](rest/) section. + contains all of the information you need to integrate Cloud Talent + Solution, create company entities that represent employers with intended + access control, post and manage jobs on Garage Jobs on behalf of + employers, and search jobs where access control permits. For a full list + of supported API methods, refer to the [Reference](rest/) section. backend: rules: - - selector: google.longrunning.Operations.ListOperations - deadline: 30.0 - - selector: google.longrunning.Operations.GetOperation - deadline: 30.0 - - selector: google.longrunning.Operations.DeleteOperation - deadline: 30.0 - - selector: google.longrunning.Operations.CancelOperation - deadline: 30.0 - - selector: google.longrunning.Operations.WaitOperation - deadline: 30.0 - - selector: google.cloud.talent.v4beta1.ApplicationService.CreateApplication - deadline: 30.0 - - selector: google.cloud.talent.v4beta1.ApplicationService.GetApplication - deadline: 30.0 - - selector: google.cloud.talent.v4beta1.ApplicationService.UpdateApplication - deadline: 30.0 - - selector: google.cloud.talent.v4beta1.ApplicationService.DeleteApplication - deadline: 30.0 - - selector: google.cloud.talent.v4beta1.ApplicationService.ListApplications - deadline: 30.0 - - selector: google.cloud.talent.v4beta1.CompanyService.CreateCompany - deadline: 30.0 - - selector: google.cloud.talent.v4beta1.CompanyService.GetCompany - deadline: 30.0 - - selector: google.cloud.talent.v4beta1.CompanyService.UpdateCompany - deadline: 30.0 - - selector: google.cloud.talent.v4beta1.CompanyService.DeleteCompany + - selector: 'google.cloud.talent.v4beta1.ApplicationService.*' deadline: 30.0 - - selector: google.cloud.talent.v4beta1.CompanyService.ListCompanies + - selector: 'google.cloud.talent.v4beta1.CompanyService.*' deadline: 30.0 - selector: google.cloud.talent.v4beta1.Completion.CompleteQuery deadline: 30.0 - selector: google.cloud.talent.v4beta1.EventService.CreateClientEvent deadline: 30.0 - - selector: google.cloud.talent.v4beta1.JobService.CreateJob - deadline: 30.0 - - selector: google.cloud.talent.v4beta1.JobService.GetJob - deadline: 30.0 - - selector: google.cloud.talent.v4beta1.JobService.UpdateJob - deadline: 30.0 - - selector: google.cloud.talent.v4beta1.JobService.DeleteJob - deadline: 30.0 - - selector: google.cloud.talent.v4beta1.JobService.ListJobs - deadline: 30.0 - - selector: google.cloud.talent.v4beta1.JobService.BatchDeleteJobs - deadline: 30.0 - - selector: google.cloud.talent.v4beta1.JobService.SearchJobs - deadline: 30.0 - - selector: google.cloud.talent.v4beta1.JobService.SearchJobsForAlert - deadline: 30.0 - - selector: google.cloud.talent.v4beta1.ProfileService.ListProfiles - deadline: 30.0 - - selector: google.cloud.talent.v4beta1.ProfileService.CreateProfile - deadline: 30.0 - - selector: google.cloud.talent.v4beta1.ProfileService.GetProfile - deadline: 30.0 - - selector: google.cloud.talent.v4beta1.ProfileService.UpdateProfile - deadline: 30.0 - - selector: google.cloud.talent.v4beta1.ProfileService.DeleteProfile - deadline: 30.0 - - selector: google.cloud.talent.v4beta1.ProfileService.SearchProfiles - deadline: 30.0 - - selector: google.cloud.talent.v4beta1.TenantService.CreateTenant - deadline: 30.0 - - selector: google.cloud.talent.v4beta1.TenantService.GetTenant + - selector: 'google.cloud.talent.v4beta1.JobService.*' deadline: 30.0 - - selector: google.cloud.talent.v4beta1.TenantService.UpdateTenant + - selector: 'google.cloud.talent.v4beta1.ProfileService.*' deadline: 30.0 - - selector: google.cloud.talent.v4beta1.TenantService.DeleteTenant + - selector: 'google.cloud.talent.v4beta1.TenantService.*' deadline: 30.0 - - selector: google.cloud.talent.v4beta1.TenantService.ListTenants + - selector: 'google.longrunning.Operations.*' deadline: 30.0 authentication: diff --git a/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/application.proto b/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/application.proto index ceffb1a6..c09efae0 100644 --- a/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/application.proto +++ b/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/application.proto @@ -17,12 +17,11 @@ syntax = "proto3"; package google.cloud.talent.v4beta1; +import "google/api/annotations.proto"; import "google/cloud/talent/v4beta1/common.proto"; -import "google/cloud/talent/v4beta1/job.proto"; import "google/protobuf/timestamp.proto"; import "google/protobuf/wrappers.proto"; import "google/type/date.proto"; -import "google/api/annotations.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; option java_multiple_files = true; diff --git a/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/batch.proto b/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/batch.proto index fcfe2bed..5eeeff57 100644 --- a/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/batch.proto +++ b/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/batch.proto @@ -27,3 +27,95 @@ option java_multiple_files = true; option java_outer_classname = "BatchProto"; option java_package = "com.google.cloud.talent.v4beta1"; option objc_class_prefix = "CTS"; + +// Output only. +// +// Metadata used for long running operations returned by CTS batch APIs. +// It's used to replace +// [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]. +message BatchOperationMetadata { + enum State { + // Default value. + STATE_UNSPECIFIED = 0; + + // The batch operation is being prepared for processing. + INITIALIZING = 1; + + // The batch operation is actively being processed. + PROCESSING = 2; + + // The batch operation is processed, and at least one item has been + // successfully processed. + SUCCEEDED = 3; + + // The batch operation is done and no item has been successfully processed. + FAILED = 4; + + // The batch operation is in the process of cancelling after + // [google.longrunning.Operation.CancelOperation] is called. + CANCELLING = 5; + + // The batch operation is done after + // [google.longrunning.Operation.CancelOperation] is called. Any items + // processed before cancelling are returned in the response. + CANCELLED = 6; + } + + // The state of a long running operation. + State state = 1; + + // More detailed information about operation state. + string state_description = 2; + + // Count of successful item(s) inside an operation. + int32 success_count = 3; + + // Count of failed item(s) inside an operation. + int32 failure_count = 4; + + // Count of total item(s) inside an operation. + int32 total_count = 5; + + // The time when the batch operation is created. + google.protobuf.Timestamp create_time = 6; + + // The time when the batch operation status is updated. The metadata and the + // [update_time][google.cloud.talent.v4beta1.BatchOperationMetadata.update_time] + // is refreshed every minute otherwise cached data is returned. + google.protobuf.Timestamp update_time = 7; + + // The time when the batch operation is finished and + // [google.longrunning.Operation.done][google.longrunning.Operation.done] is + // set to `true`. + google.protobuf.Timestamp end_time = 8; +} + +// Output only. +// +// The result of [BatchCreateJobs][] or [BatchUpdateJobs][] APIs. It's used to +// replace +// [google.longrunning.Operation.response][google.longrunning.Operation.response] +// in case of success. +message JobOperationResult { + // Mutation result of a job. + message JobResult { + // Here [Job][google.cloud.talent.v4beta1.Job] only contains basic + // information including [name][google.cloud.talent.v4beta1.Job.name], + // [company][google.cloud.talent.v4beta1.Job.company], + // [language_code][google.cloud.talent.v4beta1.Job.language_code] and + // [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id], use + // getJob method to retrieve detailed information of the created/updated + // job. + Job job = 1; + + // The status of the job processed. This field is populated if the + // processing of the + // [job][google.cloud.talent.v4beta1.JobOperationResult.JobResult.job] + // fails. + google.rpc.Status status = 2; + } + + // List of job mutation results from a batch mutate operation. It can change + // until operation status is FINISHED, FAILED or CANCELLED. + repeated JobResult job_results = 1; +} diff --git a/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/common.proto b/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/common.proto index 04001c81..933ec28b 100644 --- a/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/common.proto +++ b/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/common.proto @@ -85,9 +85,11 @@ message Location { } // The type of a location, which corresponds to the address lines field of - // [PostalAddress][]. For example, "Downtown, Atlanta, GA, USA" has a type of - // [LocationType#NEIGHBORHOOD][], and "Kansas City, KS, USA" has a type of - // [LocationType#LOCALITY][]. + // [google.type.PostalAddress][google.type.PostalAddress]. For example, + // "Downtown, Atlanta, GA, USA" has a type of + // [LocationType.NEIGHBORHOOD][google.cloud.talent.v4beta1.Location.LocationType.NEIGHBORHOOD], + // and "Kansas City, KS, USA" has a type of + // [LocationType.LOCALITY][google.cloud.talent.v4beta1.Location.LocationType.LOCALITY]. LocationType location_type = 1; // Postal address of the location that includes human readable information, @@ -101,9 +103,9 @@ message Location { // Radius in miles of the job location. This value is derived from the // location bounding box in which a circle with the specified radius - // centered from [LatLng][] covers the area associated with the job location. - // For example, currently, "Mountain View, CA, USA" has a radius of - // 6.17 miles. + // centered from [google.type.LatLng][google.type.LatLng] covers the area + // associated with the job location. For example, currently, "Mountain View, + // CA, USA" has a radius of 6.17 miles. double radius_miles = 4; } @@ -254,7 +256,8 @@ enum EmploymentType { // The job is offered as a contracted position with the understanding // that it's converted into a full-time position at the end of the // contract. Jobs of this type are also returned by a search for - // [EmploymentType.CONTRACTOR][google.cloud.talent.v4beta1.EmploymentType.CONTRACTOR] jobs. + // [EmploymentType.CONTRACTOR][google.cloud.talent.v4beta1.EmploymentType.CONTRACTOR] + // jobs. CONTRACT_TO_HIRE = 4; // The job is offered as a temporary employment opportunity, usually @@ -414,10 +417,11 @@ enum PostingRegion { POSTING_REGION_UNSPECIFIED = 0; // In addition to exact location matching, job posting is returned when the - // [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in the search query is in the same administrative area - // as the returned job posting. For example, if a `ADMINISTRATIVE_AREA` job - // is posted in "CA, USA", it's returned if [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] has - // "Mountain View". + // [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in the search + // query is in the same administrative area as the returned job posting. For + // example, if a `ADMINISTRATIVE_AREA` job is posted in "CA, USA", it's + // returned if [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] + // has "Mountain View". // // Administrative area refers to top-level administrative subdivision of this // country. For example, US state, IT region, UK constituent nation and @@ -425,13 +429,15 @@ enum PostingRegion { ADMINISTRATIVE_AREA = 1; // In addition to exact location matching, job is returned when - // [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in search query is in the same country as this job. - // For example, if a `NATION_WIDE` job is posted in "USA", it's - // returned if [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] has 'Mountain View'. + // [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in search + // query is in the same country as this job. For example, if a `NATION_WIDE` + // job is posted in "USA", it's returned if + // [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] has 'Mountain + // View'. NATION = 2; // Job allows employees to work remotely (telecommute). - // If [locations][] are provided with this value, the job is + // If locations are provided with this value, the job is // considered as having a location, but telecommuting is allowed. TELECOMMUTE = 3; } @@ -510,7 +516,9 @@ enum CommuteMethod { // conducting the job search. This information is used to improve the // performance of the service. message RequestMetadata { - // Required if [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids] is unset or `false`. + // Required if + // [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids] + // is unset or `false`. // // The client-defined scope or source of the service call, which typically // is the domain on @@ -527,7 +535,9 @@ message RequestMetadata { // The maximum number of allowed characters is 255. string domain = 1; - // Required if [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids] is unset or `false`. + // Required if + // [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids] + // is unset or `false`. // // A unique session identification string. A session is defined as the // duration of an end user's interaction with the service over a certain @@ -541,7 +551,9 @@ message RequestMetadata { // The maximum number of allowed characters is 255. string session_id = 2; - // Required if [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids] is unset or `false`. + // Required if + // [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids] + // is unset or `false`. // // A unique user identification string, as determined by the client. // To have the strongest positive impact on search quality @@ -557,10 +569,16 @@ message RequestMetadata { // Optional. // - // If set to `true`, [domain][google.cloud.talent.v4beta1.RequestMetadata.domain], [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] are optional. - // Only set when any of these fields isn't available for some reason. It - // is highly recommended not to set this field and provide accurate - // [domain][google.cloud.talent.v4beta1.RequestMetadata.domain], [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] for the best service experience. + // If set to `true`, + // [domain][google.cloud.talent.v4beta1.RequestMetadata.domain], + // [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and + // [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] are + // optional. Only set when any of these fields isn't available for some + // reason. It is highly recommended not to set this field and provide accurate + // [domain][google.cloud.talent.v4beta1.RequestMetadata.domain], + // [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and + // [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] for the best + // service experience. bool allow_missing_ids = 4; // Optional. @@ -623,8 +641,10 @@ message DeviceInfo { // Custom attribute values that are either filterable or non-filterable. message CustomAttribute { - // Optional but exactly one of [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values] or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] must - // be specified. + // Optional but exactly one of + // [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values] + // or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] + // must be specified. // // This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or // `CASE_INSENSITIVE_MATCH`) search. @@ -636,13 +656,17 @@ message CustomAttribute { // Empty string isn't allowed. repeated string string_values = 1; - // Optional but exactly one of [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values] or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] must - // be specified. + // Optional but exactly one of + // [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values] + // or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] + // must be specified. // // This field is used to perform number range search. // (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`. // - // Currently at most 1 [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is supported. + // Currently at most 1 + // [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is + // supported. repeated int64 long_values = 2; // Optional. @@ -678,23 +702,33 @@ message CompensationInfo { // as base pay, bonus, or other compensation type. // // Annualization: One compensation entry can be annualized if - // - it contains valid [amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount] or [range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range]. - // - and its [expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year] is set or can be derived. - // Its annualized range is determined as ([amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount] or [range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range]) times + // - it contains valid + // [amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount] + // or + // [range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range]. + // - and its + // [expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year] + // is set or can be derived. Its annualized range is determined as + // ([amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount] + // or + // [range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range]) + // times // [expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year]. message CompensationEntry { // Optional. // // Compensation type. // - // Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][]. + // Default is + // [CompensationType.COMPENSATION_TYPE_UNSPECIFIED][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.COMPENSATION_TYPE_UNSPECIFIED]. CompensationType type = 1; // Optional. // // Frequency of the specified amount. // - // Default is [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT]. + // Default is + // [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED]. CompensationUnit unit = 2; // Optional. @@ -722,8 +756,10 @@ message CompensationInfo { // Optional. // // Expected number of units paid each year. If not specified, when - // [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types] is FULLTIME, a default value is inferred - // based on [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit]. Default values: + // [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types] + // is FULLTIME, a default value is inferred based on + // [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit]. + // Default values: // - HOURLY: 2080 // - DAILY: 260 // - WEEKLY: 52 @@ -753,19 +789,30 @@ message CompensationInfo { // The type of compensation. // // For compensation amounts specified in non-monetary amounts, - // describe the compensation scheme in the [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description]. + // describe the compensation scheme in the + // [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description]. // // For example, tipping format is described in - // [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description] (for example, "expect 15-20% tips based - // on customer bill.") and an estimate of the tips provided in - // [CompensationEntry.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount] or [CompensationEntry.range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range] ($10 per hour). + // [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description] + // (for example, "expect 15-20% tips based on customer bill.") and an estimate + // of the tips provided in + // [CompensationEntry.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount] + // or + // [CompensationEntry.range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range] + // ($10 per hour). // - // For example, equity is described in [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description] + // For example, equity is described in + // [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description] // (for example, "1% - 2% equity vesting over 4 years, 1 year cliff") and - // value estimated in [CompensationEntry.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount] or - // [CompensationEntry.range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range]. If no value estimate is possible, units are - // [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED] and then further - // clarified in [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description] field. + // value estimated in + // [CompensationEntry.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount] + // or + // [CompensationEntry.range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range]. + // If no value estimate is possible, units are + // [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED] + // and then further clarified in + // [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description] + // field. enum CompensationType { // Default value. COMPENSATION_TYPE_UNSPECIFIED = 0; @@ -830,22 +877,30 @@ message CompensationInfo { // Job compensation information. // // At most one entry can be of type - // [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE], which is - // referred as ** base compensation entry ** for the job. + // [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE], + // which is referred as **base compensation entry** for the job. repeated CompensationEntry entries = 1; // Output only. Annualized base compensation range. Computed as - // base compensation entry's [CompensationEntry.compensation][] times + // base compensation entry's + // [CompensationEntry.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount] + // times // [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year]. // - // See [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] for explanation on compensation annualization. + // See + // [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] + // for explanation on compensation annualization. CompensationRange annualized_base_compensation_range = 2; // Output only. Annualized total compensation range. Computed as - // all compensation entries' [CompensationEntry.compensation][] times + // all compensation entries' + // [CompensationEntry.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount] + // times // [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year]. // - // See [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] for explanation on compensation annualization. + // See + // [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] + // for explanation on compensation annualization. CompensationRange annualized_total_compensation_range = 3; } @@ -912,9 +967,11 @@ message Skill { // Number of characters allowed is 100,000. string context = 4; - // Output only. Skill name snippet shows how the [display_name][google.cloud.talent.v4beta1.Skill.display_name] is related - // to a search query. It's empty if the [display_name][google.cloud.talent.v4beta1.Skill.display_name] isn't related to the - // search query. + // Output only. Skill name snippet shows how the + // [display_name][google.cloud.talent.v4beta1.Skill.display_name] is related + // to a search query. It's empty if the + // [display_name][google.cloud.talent.v4beta1.Skill.display_name] isn't + // related to the search query. string skill_name_snippet = 5; } @@ -953,6 +1010,9 @@ enum SkillProficiencyLevel { // Default value. SKILL_PROFICIENCY_LEVEL_UNSPECIFIED = 0; + // Lacks any proficiency in this skill. + UNSKILLED = 6; + // Have a common knowledge or an understanding of basic techniques and // concepts. FUNDAMENTAL_AWARENESS = 1; diff --git a/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/company.proto b/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/company.proto index 199df88b..4c6712bd 100644 --- a/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/company.proto +++ b/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/company.proto @@ -17,8 +17,8 @@ syntax = "proto3"; package google.cloud.talent.v4beta1; -import "google/cloud/talent/v4beta1/common.proto"; import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/common.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; option java_multiple_files = true; @@ -33,7 +33,8 @@ message Company { // Derived details about the company. message DerivedInfo { // A structured headquarters location of the company, resolved from - // [Company.hq_location][] if provided. + // [Company.headquarters_address][google.cloud.talent.v4beta1.Company.headquarters_address] + // if provided. Location headquarters_location = 1; } @@ -73,7 +74,8 @@ message Company { // The street address of the company's main headquarters, which may be // different from the job location. The service attempts // to geolocate the provided address, and populates a more specific - // location wherever possible in [DerivedInfo.headquarters_location][google.cloud.talent.v4beta1.Company.DerivedInfo.headquarters_location]. + // location wherever possible in + // [DerivedInfo.headquarters_location][google.cloud.talent.v4beta1.Company.DerivedInfo.headquarters_location]. string headquarters_address = 5; // Optional. @@ -114,8 +116,9 @@ message Company { // Optional. // - // A list of keys of filterable [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes], whose - // corresponding `string_values` are used in keyword searches. Jobs with + // A list of keys of filterable + // [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes], + // whose corresponding `string_values` are used in keyword searches. Jobs with // `string_values` under these specified field keys are returned if any // of the values match the search keyword. Custom field values with // parenthesis, brackets and special symbols are not searchable as-is, diff --git a/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/completion_service.proto b/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/completion_service.proto index 139e1e8e..af7df1c4 100644 --- a/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/completion_service.proto +++ b/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/completion_service.proto @@ -33,9 +33,7 @@ service Completion { rpc CompleteQuery(CompleteQueryRequest) returns (CompleteQueryResponse) { option (google.api.http) = { get: "/v4beta1/{parent=projects/*/tenants/*}:complete" - additional_bindings { - get: "/v4beta1/{parent=projects/*}:complete" - } + additional_bindings { get: "/v4beta1/{parent=projects/*}:complete" } }; } } @@ -97,16 +95,25 @@ message CompleteQueryRequest { // For more information, see // [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). // - // For [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE] type, only open jobs with the same - // [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes] are returned. - // - // For [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME] type, - // only companies having open jobs with the same [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes] are - // returned. - // - // For [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED] type, only open jobs with the same - // [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes] or companies having open jobs with the same - // [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes] are returned. + // For + // [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE] + // type, only open jobs with the same + // [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes] + // are returned. + // + // For + // [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME] + // type, only companies having open jobs with the same + // [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes] + // are returned. + // + // For + // [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED] + // type, only open jobs with the same + // [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes] + // or companies having open jobs with the same + // [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes] + // are returned. // // The maximum number of allowed characters is 255. repeated string language_codes = 3; @@ -132,12 +139,14 @@ message CompleteQueryRequest { // Optional. // - // The scope of the completion. The defaults is [CompletionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC]. + // The scope of the completion. The defaults is + // [CompletionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC]. CompletionScope scope = 6; // Optional. // - // The completion topic. The default is [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]. + // The completion topic. The default is + // [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]. CompletionType type = 7; } @@ -155,7 +164,8 @@ message CompleteQueryResponse { // The completion topic. CompleteQueryRequest.CompletionType type = 2; - // The URI of the company image for [CompletionType.COMPANY_NAME][]. + // The URI of the company image for + // [COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]. string image_uri = 3; } diff --git a/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/event.proto b/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/event.proto index 74df4336..5d2f893d 100644 --- a/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/event.proto +++ b/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/event.proto @@ -32,7 +32,7 @@ option objc_class_prefix = "CTS"; // service to perform optimally. The number of events sent must be consistent // with other calls, such as job searches, issued to the service by the client. message ClientEvent { - // Required. + // Optional but highly recommended. // // A unique ID generated in the API responses. It can be found in // [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id]. @@ -107,7 +107,9 @@ message JobEvent { // submitted an application for a job with a single click without // entering information. If a job seeker performs this action, send only // this event to the service. Do not also send - // [JobEventType.APPLICATION_START][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_START] or [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_FINISH] + // [JobEventType.APPLICATION_START][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_START] + // or + // [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_FINISH] // events. APPLICATION_QUICK_SUBMISSION = 6; @@ -127,8 +129,12 @@ message JobEvent { // (without viewing the details of the job posting), and is redirected // to a different website to complete the application. If a candidate // performs this action, send only this event to the service. Do not also - // send [JobEventType.APPLICATION_START][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_START], - // [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_FINISH] or [JobEventType.VIEW][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] events. + // send + // [JobEventType.APPLICATION_START][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_START], + // [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_FINISH] + // or + // [JobEventType.VIEW][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] + // events. APPLICATION_REDIRECT_FROM_SEARCH = 9; // This event should be used when a company submits an application @@ -163,25 +169,38 @@ message JobEvent { // part of an application that was initiated by a search conducted through / // recommendation provided by the Cloud Talent Solution service. INTERVIEW_GRANTED = 15; - - // The job seeker or other entity interacting with the service showed - // no interest in the job. - NOT_INTERESTED = 16; } // Required. // - // The type of the event (see [JobEventType][google.cloud.talent.v4beta1.JobEvent.JobEventType]). + // The type of the event (see + // [JobEventType][google.cloud.talent.v4beta1.JobEvent.JobEventType]). JobEventType type = 1; // Required. // - // The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with this event. - // For example, if this is an [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION] event, - // this field contains the identifiers of all jobs shown to the job seeker. - // If this was a [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this field contains the - // identifier of the viewed job. + // The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with + // this event. For example, if this is an + // [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION] + // event, this field contains the identifiers of all jobs shown to the job + // seeker. If this was a + // [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this + // field contains the identifier of the viewed job. + // + // The format is + // "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for + // example, "projects/api-test-project/tenants/foo/jobs/1234". repeated string jobs = 2; + + // Optional. + // + // The [profile name][google.cloud.talent.v4beta1.Profile.name] associated + // with this client event. + // + // The format is + // "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", + // for example, "projects/api-test-project/tenants/foo/profiles/bar". + string profile = 3; } // An event issued when a profile searcher interacts with the application @@ -209,15 +228,21 @@ message ProfileEvent { // Required. // - // The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated with this client event. + // The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated + // with this client event. + // + // The format is + // "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", + // for example, "projects/api-test-project/tenants/foo/profiles/bar". repeated string profiles = 2; // Optional. // - // The job ID associated with this client event if there is one. Leave it - // empty if the event isn't associated with a job. + // The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with + // this client event. Leave it empty if the event isn't associated with a job. // - // The job ID should be consistent with the - // [JobApplication.job.requisition_id][] in the profile. + // The format is + // "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for + // example, "projects/api-test-project/tenants/foo/jobs/1234". repeated string jobs = 6; } diff --git a/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/filters.proto b/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/filters.proto index 1996f50c..d29fbcfd 100644 --- a/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/filters.proto +++ b/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/filters.proto @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.talent.v4beta1; +import "google/api/annotations.proto"; import "google/cloud/talent/v4beta1/application.proto"; import "google/cloud/talent/v4beta1/common.proto"; import "google/cloud/talent/v4beta1/job.proto"; @@ -27,7 +28,6 @@ import "google/protobuf/wrappers.proto"; import "google/type/date.proto"; import "google/type/latlng.proto"; import "google/type/timeofday.proto"; -import "google/api/annotations.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; option java_multiple_files = true; @@ -70,15 +70,17 @@ message JobQuery { // Optional. // // The location filter specifies geo-regions containing the jobs to - // search against. See [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more information. + // search against. See + // [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more + // information. // // If a location value isn't specified, jobs fitting the other search // criteria are retrieved regardless of where they're located. // // If multiple values are specified, jobs are retrieved from any of the // specified locations. If different values are specified for the - // [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] parameter, the maximum provided - // distance is used for all locations. + // [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] + // parameter, the maximum provided distance is used for all locations. // // At most 5 location filters are allowed. repeated LocationFilter location_filters = 3; @@ -86,7 +88,8 @@ message JobQuery { // Optional. // // The category filter specifies the categories of jobs to search against. - // See [Category][] for more information. + // See [JobCategory][google.cloud.talent.v4beta1.JobCategory] for more + // information. // // If a value isn't specified, jobs from any category are searched against. // @@ -97,17 +100,21 @@ message JobQuery { // Optional. // // Allows filtering jobs by commute time with different travel methods (for - // example, driving or public transit). Note: This only works with [COMMUTE - // MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is - // ignored. + // example, driving or public transit). + // + // Note: This only works when you specify a + // [CommuteMethod][google.cloud.talent.v4beta1.CommuteMethod]. In this case, + // [location_filters][google.cloud.talent.v4beta1.JobQuery.location_filters] + // is ignored. // // Currently we don't support sorting by commute time. CommuteFilter commute_filter = 5; // Optional. // - // This filter specifies the exact [company display - // name][Company.display_name] of the jobs to search against. + // This filter specifies the exact company + // [Company.display_name][google.cloud.talent.v4beta1.Company.display_name] of + // the jobs to search against. // // If a value isn't specified, jobs within the search results are // associated with any company. @@ -121,16 +128,17 @@ message JobQuery { // Optional. // // This search filter is applied only to - // [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info]. For example, if the filter is specified - // as "Hourly job with per-hour compensation > $15", only jobs meeting - // these criteria are searched. If a filter isn't defined, all open jobs - // are searched. + // [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info]. + // For example, if the filter is specified as "Hourly job with per-hour + // compensation > $15", only jobs meeting these criteria are searched. If a + // filter isn't defined, all open jobs are searched. CompensationFilter compensation_filter = 7; // Optional. // // This filter specifies a structured syntax to match against the - // [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes] marked as `filterable`. + // [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes] + // marked as `filterable`. // // The syntax for this expression is a subset of SQL syntax. // @@ -165,7 +173,8 @@ message JobQuery { // Optional. // // The employment type filter specifies the employment type of jobs to - // search against, such as [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME]. + // search against, such as + // [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME]. // // If a value isn't specified, jobs in the search results includes any // employment type. @@ -221,8 +230,9 @@ message ProfileQuery { // If a location filter isn't specified, profiles fitting the other search // criteria are retrieved regardless of where they're located. // - // If [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated] is specified, the result doesn't contain - // profiles from that location. + // If + // [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated] + // is specified, the result doesn't contain profiles from that location. // // For example, search for profiles with addresses in "New York City". repeated LocationFilter location_filters = 2; @@ -236,8 +246,9 @@ message ProfileQuery { // If multiple values are specified, profiles are retrieved with any of the // specified job titles. // - // If [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated] is specified, the result won't contain - // profiles with the job titles. + // If + // [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated] + // is specified, the result won't contain profiles with the job titles. // // For example, search for profiles with a job title "Product Manager". repeated JobTitleFilter job_title_filters = 3; @@ -252,8 +263,9 @@ message ProfileQuery { // If multiple employer filters are specified, profiles with any matching // employers are retrieved. // - // If [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated] is specified, the result won't contain - // profiles that match the employers. + // If + // [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated] + // is specified, the result won't contain profiles that match the employers. // // For example, search for profiles that have working experience at "Google // LLC". @@ -269,8 +281,9 @@ message ProfileQuery { // If multiple education filters are specified, profiles that match any // education filters are retrieved. // - // If [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated] is specified, the result won't contain - // profiles that match the educations. + // If + // [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated] + // is specified, the result won't contain profiles that match the educations. // // For example, search for profiles with a master degree. repeated EducationFilter education_filters = 5; @@ -284,8 +297,8 @@ message ProfileQuery { // If multiple skill filters are specified, profiles that match any skill // filters are retrieved. // - // If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated] is specified, the result won't contain profiles - // that match the skills. + // If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated] + // is specified, the result won't contain profiles that match the skills. // // For example, search for profiles that have "Java" and "Python" in skill // list. @@ -337,7 +350,8 @@ message ProfileQuery { // Optional. // // This filter specifies a structured syntax to match against the - // [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes] that are marked as `filterable`. + // [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes] + // that are marked as `filterable`. // // The syntax for this expression is a subset of Google SQL syntax. // @@ -417,12 +431,15 @@ message LocationFilter { // Allows the client to return jobs without a // set location, specifically, telecommuting jobs (telecomuting is considered // by the service as a special location. - // [Job.posting_region][google.cloud.talent.v4beta1.Job.posting_region] indicates if a job permits telecommuting. - // If this field is set to [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED], - // telecommuting jobs are searched, and [address][google.cloud.talent.v4beta1.LocationFilter.address] and [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are - // ignored. If not set or set to - // [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED], telecommute job are not - // searched. + // [Job.posting_region][google.cloud.talent.v4beta1.Job.posting_region] + // indicates if a job permits telecommuting. If this field is set to + // [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED], + // telecommuting jobs are searched, and + // [address][google.cloud.talent.v4beta1.LocationFilter.address] and + // [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are ignored. + // If not set or set to + // [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED], + // telecommute job are not searched. // // This filter can be used by itself to search exclusively for telecommuting // jobs, or it can be combined with another location @@ -452,30 +469,42 @@ message CompensationFilter { // Filter by `base compensation entry's` unit. A job is a match if and // only if the job contains a base CompensationEntry and the base - // CompensationEntry's unit matches provided [units][google.cloud.talent.v4beta1.CompensationFilter.units]. - // Populate one or more [units][google.cloud.talent.v4beta1.CompensationFilter.units]. + // CompensationEntry's unit matches provided + // [units][google.cloud.talent.v4beta1.CompensationFilter.units]. Populate + // one or more + // [units][google.cloud.talent.v4beta1.CompensationFilter.units]. // - // See [CompensationInfo.CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] for definition of - // base compensation entry. + // See + // [CompensationInfo.CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] + // for definition of base compensation entry. UNIT_ONLY = 1; // Filter by `base compensation entry's` unit and amount / range. A job // is a match if and only if the job contains a base CompensationEntry, and - // the base entry's unit matches provided [compensation_units][] and amount - // or range overlaps with provided [compensation_range][]. + // the base entry's unit matches provided + // [CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit] + // and amount or range overlaps with provided + // [CompensationRange][google.cloud.talent.v4beta1.CompensationInfo.CompensationRange]. // - // See [CompensationInfo.CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] for definition of - // base compensation entry. + // See + // [CompensationInfo.CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] + // for definition of base compensation entry. // - // Set exactly one [units][google.cloud.talent.v4beta1.CompensationFilter.units] and populate [range][google.cloud.talent.v4beta1.CompensationFilter.range]. + // Set exactly one + // [units][google.cloud.talent.v4beta1.CompensationFilter.units] and + // populate [range][google.cloud.talent.v4beta1.CompensationFilter.range]. UNIT_AND_AMOUNT = 2; // Filter by annualized base compensation amount and `base compensation - // entry's` unit. Populate [range][google.cloud.talent.v4beta1.CompensationFilter.range] and zero or more [units][google.cloud.talent.v4beta1.CompensationFilter.units]. + // entry's` unit. Populate + // [range][google.cloud.talent.v4beta1.CompensationFilter.range] and zero or + // more [units][google.cloud.talent.v4beta1.CompensationFilter.units]. ANNUALIZED_BASE_AMOUNT = 3; // Filter by annualized total compensation amount and `base compensation - // entry's` unit . Populate [range][google.cloud.talent.v4beta1.CompensationFilter.range] and zero or more [units][google.cloud.talent.v4beta1.CompensationFilter.units]. + // entry's` unit . Populate + // [range][google.cloud.talent.v4beta1.CompensationFilter.range] and zero or + // more [units][google.cloud.talent.v4beta1.CompensationFilter.units]. ANNUALIZED_TOTAL_AMOUNT = 4; } @@ -497,7 +526,8 @@ message CompensationFilter { // Optional. // - // Whether to include jobs whose compensation range is unspecified. + // If set to true, jobs with unspecified compensation range fields are + // included. bool include_jobs_with_unspecified_compensation_range = 4; } @@ -597,16 +627,19 @@ message SkillFilter { // // Employer filter of the search. message EmployerFilter { - // Enum indicating which set of [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records] to search - // against. + // Enum indicating which set of + // [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records] + // to search against. enum EmployerFilterMode { // Default value. EMPLOYER_FILTER_MODE_UNSPECIFIED = 0; - // Apply to all employers in [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records]. + // Apply to all employers in + // [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records]. ALL_EMPLOYMENT_RECORDS = 1; - // Apply only to current employer in [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records]. + // Apply only to current employer in + // [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records]. CURRENT_EMPLOYMENT_RECORDS_ONLY = 2; // Apply only to past (not current) employers in @@ -621,9 +654,12 @@ message EmployerFilter { // Optional. // - // Define set of [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord]s to search against. + // Define set of + // [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord]s to search + // against. // - // Defaults to [EmployerFilterMode.ALL_EMPLOYMENT_RECORDS][google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.ALL_EMPLOYMENT_RECORDS]. + // Defaults to + // [EmployerFilterMode.ALL_EMPLOYMENT_RECORDS][google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.ALL_EMPLOYMENT_RECORDS]. EmployerFilterMode mode = 2; // Optional. @@ -668,7 +704,10 @@ message EducationFilter { // Work experience filter. // // This filter is used to search for profiles with working experience length -// between [min_experience][google.cloud.talent.v4beta1.WorkExperienceFilter.min_experience] and [max_experience][google.cloud.talent.v4beta1.WorkExperienceFilter.max_experience]. +// between +// [min_experience][google.cloud.talent.v4beta1.WorkExperienceFilter.min_experience] +// and +// [max_experience][google.cloud.talent.v4beta1.WorkExperienceFilter.max_experience]. message WorkExperienceFilter { // Optional. // @@ -685,9 +724,13 @@ message WorkExperienceFilter { // // Application Date Range Filter. // -// The API matches profiles with [Application.application_date][google.cloud.talent.v4beta1.Application.application_date] between -// start date and end date (both boundaries are inclusive). The filter is -// ignored if both [start_date][google.cloud.talent.v4beta1.ApplicationDateFilter.start_date] and [end_date][google.cloud.talent.v4beta1.ApplicationDateFilter.end_date] are missing. +// The API matches profiles with +// [Application.application_date][google.cloud.talent.v4beta1.Application.application_date] +// between start date and end date (both boundaries are inclusive). The filter +// is ignored if both +// [start_date][google.cloud.talent.v4beta1.ApplicationDateFilter.start_date] +// and [end_date][google.cloud.talent.v4beta1.ApplicationDateFilter.end_date] +// are missing. message ApplicationDateFilter { // Optional. // @@ -709,14 +752,15 @@ message ApplicationOutcomeNotesFilter { // Required. // // User entered or selected outcome reason. The API does an exact match on the - // [Application.outcome_notes][google.cloud.talent.v4beta1.Application.outcome_notes] in profiles. + // [Application.outcome_notes][google.cloud.talent.v4beta1.Application.outcome_notes] + // in profiles. string outcome_notes = 1; // Optional. // // If true, The API excludes all candidates with any - // [Application.outcome_notes][google.cloud.talent.v4beta1.Application.outcome_notes] matching the outcome reason specified in - // the filter. + // [Application.outcome_notes][google.cloud.talent.v4beta1.Application.outcome_notes] + // matching the outcome reason specified in the filter. bool negated = 2; } @@ -727,19 +771,22 @@ message ApplicationJobFilter { // Optional. // // The job requisition id in the application. The API does an exact match on - // the [Job.requisistion_id][] of [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. + // the [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] of + // [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. string job_requisition_id = 2; // Optional. // // The job title in the application. The API does an exact match on the - // [Job.title][google.cloud.talent.v4beta1.Job.title] of [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. + // [Job.title][google.cloud.talent.v4beta1.Job.title] of + // [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. string job_title = 3; // Optional. // - // If true, the API excludes all profiles with any [Application.job][google.cloud.talent.v4beta1.Application.job] - // matching the filters. + // If true, the API excludes all profiles with any + // [Application.job][google.cloud.talent.v4beta1.Application.job] matching the + // filters. bool negated = 4; } @@ -777,6 +824,7 @@ message TimeFilter { // // Specifies which time field to filter profiles. // - // Defaults to [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME]. + // Defaults to + // [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME]. TimeField time_field = 3; } diff --git a/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/histogram.proto b/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/histogram.proto index a8caf39a..a4dfdd4e 100644 --- a/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/histogram.proto +++ b/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/histogram.proto @@ -17,8 +17,8 @@ syntax = "proto3"; package google.cloud.talent.v4beta1; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; option java_multiple_files = true; @@ -33,14 +33,19 @@ message HistogramQuery { // An expression specifies a histogram request against matching resources // (for example, jobs, profiles) for searches. // - // See [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries] and - // [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries] for details about syntax. + // See + // [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries] + // and + // [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries] + // for details about syntax. string histogram_query = 1; } // Output only. // -// Histogram result that matches [HistogramSpec][] specified in searches. +// Histogram result that matches +// [HistogramQuery][google.cloud.talent.v4beta1.HistogramQuery] specified in +// searches. message HistogramQueryResult { // Requested histogram expression. string histogram_query = 1; @@ -49,10 +54,11 @@ message HistogramQueryResult { // number of matching entries with corresponding value. // // The key format is: + // // * (for string histogram) string values stored in the field. // * (for named numeric bucket) name specified in `bucket()` function, like // for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`. // * (for anonymous numeric bucket) range formatted as `-`, for - // example, `0-1000`, `MIN-0`, and `0-MAX`. + // example, `0-1000`, `MIN-0`, and `0-MAX`. map histogram = 2; } diff --git a/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/job.proto b/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/job.proto index 106f3b8a..78aa03be 100644 --- a/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/job.proto +++ b/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/job.proto @@ -17,11 +17,11 @@ syntax = "proto3"; package google.cloud.talent.v4beta1; +import "google/api/annotations.proto"; import "google/cloud/talent/v4beta1/common.proto"; import "google/protobuf/timestamp.proto"; import "google/protobuf/wrappers.proto"; import "google/type/postal_address.proto"; -import "google/api/annotations.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; option java_multiple_files = true; @@ -30,8 +30,9 @@ option java_package = "com.google.cloud.talent.v4beta1"; option objc_class_prefix = "CTS"; // A Job resource represents a job posting (also referred to as a "job listing" -// or "job requisition"). A job belongs to a [Company][google.cloud.talent.v4beta1.Company], which is the hiring -// entity responsible for the job. +// or "job requisition"). A job belongs to a +// [Company][google.cloud.talent.v4beta1.Company], which is the hiring entity +// responsible for the job. message Job { // Application related details of a job posting. message ApplicationInfo { @@ -67,13 +68,18 @@ message Job { // // Derived details about the job posting. message DerivedInfo { - // Structured locations of the job, resolved from [Job.addresses][google.cloud.talent.v4beta1.Job.addresses]. + // Structured locations of the job, resolved from + // [Job.addresses][google.cloud.talent.v4beta1.Job.addresses]. // - // [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are exactly matched to [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same + // [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are + // exactly matched to + // [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same // order. repeated Location locations = 1; - // Job categories derived from [Job.title][google.cloud.talent.v4beta1.Job.title] and [Job.description][google.cloud.talent.v4beta1.Job.description]. + // Job categories derived from + // [Job.title][google.cloud.talent.v4beta1.Job.title] and + // [Job.description][google.cloud.talent.v4beta1.Job.description]. repeated JobCategory job_categories = 3; } @@ -100,7 +106,8 @@ message Job { // HTML tags in these fields may be stripped if sanitiazation isn't // disabled. // - // Defaults to [HtmlSanitization.SIMPLE_FORMATTING_ONLY][google.cloud.talent.v4beta1.HtmlSanitization.SIMPLE_FORMATTING_ONLY]. + // Defaults to + // [HtmlSanitization.SIMPLE_FORMATTING_ONLY][google.cloud.talent.v4beta1.HtmlSanitization.SIMPLE_FORMATTING_ONLY]. HtmlSanitization html_sanitization = 2; } @@ -117,7 +124,8 @@ message Job { // example, "projects/api-test-project/jobs/1234". // // Use of this field in job queries and API calls is preferred over the use of - // [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this value is unique. + // [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this + // value is unique. string name = 1; // Required. @@ -137,8 +145,10 @@ message Job { // The requisition ID, also referred to as the posting ID, is assigned by the // client to identify a job. This field is intended to be used by clients // for client identification and tracking of postings. A job isn't allowed - // to be created if there is another job with the same [company][google.cloud.talent.v4beta1.Job.name], - // [language_code][google.cloud.talent.v4beta1.Job.language_code] and [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]. + // to be created if there is another job with the same + // [company][google.cloud.talent.v4beta1.Job.name], + // [language_code][google.cloud.talent.v4beta1.Job.language_code] and + // [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]. // // The maximum number of allowed characters is 255. string requisition_id = 3; @@ -154,9 +164,10 @@ message Job { // // The description of the job, which typically includes a multi-paragraph // description of the company and related information. Separate fields are - // provided on the job object for [responsibilities][google.cloud.talent.v4beta1.Job.responsibilities], - // [qualifications][google.cloud.talent.v4beta1.Job.qualifications], and other job characteristics. Use of - // these separate job fields is recommended. + // provided on the job object for + // [responsibilities][google.cloud.talent.v4beta1.Job.responsibilities], + // [qualifications][google.cloud.talent.v4beta1.Job.qualifications], and other + // job characteristics. Use of these separate job fields is recommended. // // This field accepts and sanitizes HTML input, and also accepts // bold, italic, ordered list, and unordered list markup tags. @@ -173,12 +184,16 @@ message Job { // // At most 50 locations are allowed for best search performance. If a job has // more locations, it is suggested to split it into multiple jobs with unique - // [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g. 'ReqA' becomes 'ReqA-1', 'ReqA-2', and so on.) as - // multiple jobs with the same [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and - // [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not allowed. If the original [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must - // be preserved, a custom field should be used for storage. It is also - // suggested to group the locations that close to each other in the same job - // for better search experience. + // [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g. + // 'ReqA' becomes 'ReqA-1', 'ReqA-2', and so on.) as multiple jobs with the + // same [company][google.cloud.talent.v4beta1.Job.company], + // [language_code][google.cloud.talent.v4beta1.Job.language_code] and + // [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not + // allowed. If the original + // [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be + // preserved, a custom field should be used for storage. It is also suggested + // to group the locations that close to each other in the same job for better + // search experience. // // The maximum number of allowed characters is 500. repeated string addresses = 6; @@ -253,9 +268,11 @@ message Job { // [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){: // class="external" target="_blank" }. // - // If this field is unspecified and [Job.description][google.cloud.talent.v4beta1.Job.description] is present, detected - // language code based on [Job.description][google.cloud.talent.v4beta1.Job.description] is assigned, otherwise - // defaults to 'en_US'. + // If this field is unspecified and + // [Job.description][google.cloud.talent.v4beta1.Job.description] is present, + // detected language code based on + // [Job.description][google.cloud.talent.v4beta1.Job.description] is assigned, + // otherwise defaults to 'en_US'. string language_code = 15; // Optional. @@ -278,7 +295,8 @@ message Job { // // A description of the qualifications required to perform the // job. The use of this field is recommended - // as an alternative to using the more general [description][google.cloud.talent.v4beta1.Job.description] field. + // as an alternative to using the more general + // [description][google.cloud.talent.v4beta1.Job.description] field. // // This field accepts and sanitizes HTML input, and also accepts // bold, italic, ordered list, and unordered list markup tags. @@ -289,8 +307,8 @@ message Job { // Optional. // // A description of job responsibilities. The use of this field is - // recommended as an alternative to using the more general [description][google.cloud.talent.v4beta1.Job.description] - // field. + // recommended as an alternative to using the more general + // [description][google.cloud.talent.v4beta1.Job.description] field. // // This field accepts and sanitizes HTML input, and also accepts // bold, italic, ordered list, and unordered list markup tags. @@ -300,20 +318,25 @@ message Job { // Optional. // - // The job [PostingRegion][google.cloud.talent.v4beta1.PostingRegion] (for example, state, country) throughout - // which the job is available. If this field is set, a [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] - // in a search query within the job region finds this job posting if an - // exact location match isn't specified. If this field is set to - // [PostingRegion.NATION][google.cloud.talent.v4beta1.PostingRegion.NATION] or [PostingRegion.ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.PostingRegion.ADMINISTRATIVE_AREA], - // setting job [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] to the same location level as this field - // is strongly recommended. + // The job [PostingRegion][google.cloud.talent.v4beta1.PostingRegion] (for + // example, state, country) throughout which the job is available. If this + // field is set, a + // [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in a search + // query within the job region finds this job posting if an exact location + // match isn't specified. If this field is set to + // [PostingRegion.NATION][google.cloud.talent.v4beta1.PostingRegion.NATION] or + // [PostingRegion.ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.PostingRegion.ADMINISTRATIVE_AREA], + // setting job [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] to + // the same location level as this field is strongly recommended. PostingRegion posting_region = 20; // Optional. // // The visibility of the job. // - // Defaults to [Visibility.ACCOUNT_ONLY][google.cloud.talent.v4beta1.Visibility.ACCOUNT_ONLY] if not specified. + // Defaults to + // [Visibility.ACCOUNT_ONLY][google.cloud.talent.v4beta1.Visibility.ACCOUNT_ONLY] + // if not specified. Visibility visibility = 21; // Optional. @@ -340,12 +363,17 @@ message Job { // // The expiration timestamp of the job. After this timestamp, the // job is marked as expired, and it no longer appears in search results. The - // expired job can't be deleted or listed by the [DeleteJob][] and - // [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or - // updated with the [UpdateJob][] API. An expired job can be updated and - // opened again by using a future expiration timestamp. Updating an expired - // job fails if there is another existing open job with same - // [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]. + // expired job can't be deleted or listed by the + // [DeleteJob][google.cloud.talent.v4beta1.JobService.DeleteJob] and + // [ListJobs][google.cloud.talent.v4beta1.JobService.ListJobs] APIs, but it + // can be retrieved with the + // [GetJob][google.cloud.talent.v4beta1.JobService.GetJob] API or updated with + // the [UpdateJob][google.cloud.talent.v4beta1.JobService.UpdateJob] API. An + // expired job can be updated and opened again by using a future expiration + // timestamp. Updating an expired job fails if there is another existing open + // job with same [company][google.cloud.talent.v4beta1.Job.company], + // [language_code][google.cloud.talent.v4beta1.Job.language_code] and + // [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]. // // The expired jobs are retained in our system for 90 days. However, the // overall expired job count cannot exceed 3 times the maximum of open jobs @@ -364,10 +392,13 @@ message Job { // unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC. // // If this value isn't provided on job update, it depends on the field masks - // set by [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]. If the field masks include - // [expiry_time][], or the masks are empty meaning that every field is - // updated, the job posting expires after 30 days from the job's last - // update time. Otherwise the expiration date isn't updated. + // set by + // [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]. + // If the field masks include + // [job_end_time][google.cloud.talent.v4beta1.Job.job_end_time], or the masks + // are empty meaning that every field is updated, the job posting expires + // after 30 days from the job's last update time. Otherwise the expiration + // date isn't updated. google.protobuf.Timestamp posting_expire_time = 25; // Output only. The timestamp when this job posting was created. diff --git a/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/job_service.proto b/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/job_service.proto index 314ac129..1fb605e4 100644 --- a/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/job_service.proto +++ b/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/job_service.proto @@ -18,6 +18,7 @@ syntax = "proto3"; package google.cloud.talent.v4beta1; import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/batch.proto"; import "google/cloud/talent/v4beta1/common.proto"; import "google/cloud/talent/v4beta1/filters.proto"; import "google/cloud/talent/v4beta1/histogram.proto"; @@ -55,9 +56,7 @@ service JobService { rpc GetJob(GetJobRequest) returns (Job) { option (google.api.http) = { get: "/v4beta1/{name=projects/*/tenants/*/jobs/*}" - additional_bindings { - get: "/v4beta1/{name=projects/*/jobs/*}" - } + additional_bindings { get: "/v4beta1/{name=projects/*/jobs/*}" } }; } @@ -83,9 +82,7 @@ service JobService { rpc DeleteJob(DeleteJobRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v4beta1/{name=projects/*/tenants/*/jobs/*}" - additional_bindings { - delete: "/v4beta1/{name=projects/*/jobs/*}" - } + additional_bindings { delete: "/v4beta1/{name=projects/*/jobs/*}" } }; } @@ -93,9 +90,7 @@ service JobService { rpc ListJobs(ListJobsRequest) returns (ListJobsResponse) { option (google.api.http) = { get: "/v4beta1/{parent=projects/*/tenants/*}/jobs" - additional_bindings { - get: "/v4beta1/{parent=projects/*}/jobs" - } + additional_bindings { get: "/v4beta1/{parent=projects/*}/jobs" } }; } @@ -110,11 +105,13 @@ service JobService { }; } - // Searches for jobs using the provided [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. + // Searches for jobs using the provided + // [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. // - // This call constrains the [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs - // present in the database, and only returns jobs that the caller has - // permission to search against. + // This call constrains the + // [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs present in + // the database, and only returns jobs that the caller has permission to + // search against. rpc SearchJobs(SearchJobsRequest) returns (SearchJobsResponse) { option (google.api.http) = { post: "/v4beta1/{parent=projects/*/tenants/*}/jobs:search" @@ -126,16 +123,18 @@ service JobService { }; } - // Searches for jobs using the provided [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. + // Searches for jobs using the provided + // [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. // // This API call is intended for the use case of targeting passive job // seekers (for example, job seekers who have signed up to receive email // alerts about potential job opportunities), and has different algorithmic // adjustments that are targeted to passive job seekers. // - // This call constrains the [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs - // present in the database, and only returns jobs the caller has - // permission to search against. + // This call constrains the + // [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs present in + // the database, and only returns jobs the caller has permission to search + // against. rpc SearchJobsForAlert(SearchJobsRequest) returns (SearchJobsResponse) { option (google.api.http) = { post: "/v4beta1/{parent=projects/*/tenants/*}/jobs:searchForAlert" @@ -146,6 +145,32 @@ service JobService { } }; } + + // Begins executing a batch create jobs operation. + rpc BatchCreateJobs(BatchCreateJobsRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v4beta1/{parent=projects/*/tenants/*}/jobs:batchCreate" + body: "*" + additional_bindings { + post: "/v4beta1/{parent=projects/*}/jobs:batchCreate" + body: "*" + } + }; + } + + // Begins executing a batch update jobs operation. + rpc BatchUpdateJobs(BatchUpdateJobsRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v4beta1/{parent=projects/*/tenants/*}/jobs:batchUpdate" + body: "*" + additional_bindings { + post: "/v4beta1/{parent=projects/*}/jobs:batchUpdate" + body: "*" + } + }; + } } // Input only. @@ -198,8 +223,10 @@ message UpdateJobRequest { // Optional but strongly recommended to be provided for the best service // experience. // - // If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask] is provided, only the specified fields in - // [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated. Otherwise all the fields are updated. + // If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask] + // is provided, only the specified fields in + // [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated. + // Otherwise all the fields are updated. // // A field mask to restrict the fields that are updated. Only // top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported. @@ -300,8 +327,11 @@ message ListJobsRequest { // // The maximum number of jobs to be returned per page of results. // - // If [job_view][google.cloud.talent.v4beta1.ListJobsRequest.job_view] is set to [JobView.JOB_VIEW_ID_ONLY][google.cloud.talent.v4beta1.JobView.JOB_VIEW_ID_ONLY], the maximum allowed - // page size is 1000. Otherwise, the maximum allowed page size is 100. + // If [job_view][google.cloud.talent.v4beta1.ListJobsRequest.job_view] is set + // to + // [JobView.JOB_VIEW_ID_ONLY][google.cloud.talent.v4beta1.JobView.JOB_VIEW_ID_ONLY], + // the maximum allowed page size is 1000. Otherwise, the maximum allowed page + // size is 100. // // Default is 100 if empty or a number < 1 is specified. int32 page_size = 4; @@ -309,31 +339,44 @@ message ListJobsRequest { // Optional. // // The desired job attributes returned for jobs in the - // search response. Defaults to [JobView.JOB_VIEW_FULL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_FULL] if no value is - // specified. + // search response. Defaults to + // [JobView.JOB_VIEW_FULL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_FULL] + // if no value is specified. JobView job_view = 5; } // An enum that specifies the job attributes that are returned in the -// [MatchingJob.Job][] in [SearchJobsResponse][google.cloud.talent.v4beta1.SearchJobsResponse] or [Job][google.cloud.talent.v4beta1.Job] objects in -// [ListJobsResponse][google.cloud.talent.v4beta1.ListJobsResponse]. +// [MatchingJob.job][google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.job] +// or [ListJobsResponse.jobs][google.cloud.talent.v4beta1.ListJobsResponse.jobs] +// fields. enum JobView { // Default value. JOB_VIEW_UNSPECIFIED = 0; // A ID only view of job, with following attributes: - // [Job.name][google.cloud.talent.v4beta1.Job.name], [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id], [Job.language_code][google.cloud.talent.v4beta1.Job.language_code]. + // [Job.name][google.cloud.talent.v4beta1.Job.name], + // [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id], + // [Job.language_code][google.cloud.talent.v4beta1.Job.language_code]. JOB_VIEW_ID_ONLY = 1; // A minimal view of the job, with the following attributes: - // [Job.name][google.cloud.talent.v4beta1.Job.name], [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id], [Job.job_title][], - // [Job.company][google.cloud.talent.v4beta1.Job.company], [Job.DerivedInfo.locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations], [Job.language_code][google.cloud.talent.v4beta1.Job.language_code]. + // [Job.name][google.cloud.talent.v4beta1.Job.name], + // [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id], + // [Job.title][google.cloud.talent.v4beta1.Job.title], + // [Job.company][google.cloud.talent.v4beta1.Job.company], + // [Job.DerivedInfo.locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations], + // [Job.language_code][google.cloud.talent.v4beta1.Job.language_code]. JOB_VIEW_MINIMAL = 2; // A small view of the job, with the following attributes in the search - // results: [Job.name][google.cloud.talent.v4beta1.Job.name], [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id], [Job.job_title][], - // [Job.company][google.cloud.talent.v4beta1.Job.company], [Job.DerivedInfo.locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations], [Job.visibility][google.cloud.talent.v4beta1.Job.visibility], - // [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], [Job.description][google.cloud.talent.v4beta1.Job.description]. + // results: [Job.name][google.cloud.talent.v4beta1.Job.name], + // [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id], + // [Job.title][google.cloud.talent.v4beta1.Job.title], + // [Job.company][google.cloud.talent.v4beta1.Job.company], + // [Job.DerivedInfo.locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations], + // [Job.visibility][google.cloud.talent.v4beta1.Job.visibility], + // [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], + // [Job.description][google.cloud.talent.v4beta1.Job.description]. JOB_VIEW_SMALL = 3; // All available attributes are included in the search results. @@ -364,9 +407,11 @@ message ListJobsResponse { message SearchJobsRequest { // Input only. // - // Custom ranking information for [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. + // Custom ranking information for + // [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. message CustomRankingInfo { - // The importance level for [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression]. + // The importance level for + // [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression]. enum ImportanceLevel { // Default value if the importance level isn't specified. IMPORTANCE_LEVEL_UNSPECIFIED = 0; @@ -405,8 +450,8 @@ message SearchJobsRequest { // Required. // // Controls over how important the score of - // [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression] gets applied to job's final - // ranking position. + // [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression] + // gets applied to job's final ranking position. // // An error is thrown if not specified. ImportanceLevel importance_level = 1; @@ -420,8 +465,10 @@ message SearchJobsRequest { // The syntax for this expression is a subset of Google SQL syntax. // // Supported operators are: +, -, *, /, where the left and right side of - // the operator is either a numeric [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes] key, - // integer/double value or an expression that can be evaluated to a number. + // the operator is either a numeric + // [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes] + // key, integer/double value or an expression that can be evaluated to a + // number. // // Parenthesis are supported to adjust calculation precedence. The // expression must be < 100 characters in length. @@ -485,7 +532,8 @@ message SearchJobsRequest { // // Mode of a search. // - // Defaults to [SearchMode.JOB_SEARCH][google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB_SEARCH]. + // Defaults to + // [SearchMode.JOB_SEARCH][google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB_SEARCH]. SearchMode search_mode = 2; // Required. @@ -556,75 +604,98 @@ message SearchJobsRequest { // // Job histogram facets: // - // * company_id: histogram by [Job.distributor_company_id][]. - // * company_display_name: histogram by [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name]. - // * employment_type: histogram by [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types], for example, - // "FULL_TIME", "PART_TIME". - // * company_size: histogram by [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example, "SMALL", - // "MEDIUM", "BIG". - // * publish_time_in_month: histogram by the [Job.publish_time][] in months. - // Must specify list of numeric buckets in spec. - // * publish_time_in_year: histogram by the [Job.publish_time][] in years. - // Must specify list of numeric buckets in spec. - // * degree_type: histogram by the [Job.degree_type][], for example, - // "Bachelors", "Masters". - // * job_level: histogram by the [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example, "Entry - // Level". + // * company_display_name: histogram by + // [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name]. + // * employment_type: histogram by + // [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types], + // for example, + // "FULL_TIME", "PART_TIME". + // * company_size: histogram by + // [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example, + // "SMALL", "MEDIUM", "BIG". + // * publish_time_in_month: histogram by the + // [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time] + // in months. + // Must specify list of numeric buckets in spec. + // * publish_time_in_year: histogram by the + // [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time] + // in years. + // Must specify list of numeric buckets in spec. + // * degree_types: histogram by the + // [Job.degree_types][google.cloud.talent.v4beta1.Job.degree_types], for + // example, + // "Bachelors", "Masters". + // * job_level: histogram by the + // [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example, + // "Entry + // Level". // * country: histogram by the country code of jobs, for example, "US", "FR". // * admin1: histogram by the admin1 code of jobs, which is a global - // placeholder referring to the state, province, or the particular term a - // country uses to define the geographic structure below the country level, - // for example, "CA", "IL". + // placeholder referring to the state, province, or the particular term a + // country uses to define the geographic structure below the country level, + // for example, "CA", "IL". // * city: histogram by a combination of the "city name, admin1 code". For - // example, "Mountain View, CA", "New York, NY". + // example, "Mountain View, CA", "New York, NY". // * admin1_country: histogram by a combination of the "admin1 code, country", - // for example, "CA, US", "IL, US". + // for example, "CA, US", "IL, US". // * city_coordinate: histogram by the city center's GPS coordinates (latitude - // and longitude), for example, 37.4038522,-122.0987765. Since the coordinates - // of a city center can change, customers may need to refresh them - // periodically. - // * locale: histogram by the [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for example, "en-US", - // "fr-FR". - // * language: histogram by the language subtag of the [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], - // for example, "en", "fr". - // * category: histogram by the [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example, - // "COMPUTER_AND_IT", "HEALTHCARE". - // * base_compensation_unit: histogram by the [CompensationUnit][] of base - // salary, for example, "WEEKLY", "MONTHLY". + // and longitude), for example, 37.4038522,-122.0987765. Since the + // coordinates of a city center can change, customers may need to refresh + // them periodically. + // * locale: histogram by the + // [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for + // example, "en-US", + // "fr-FR". + // * language: histogram by the language subtag of the + // [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], + // for example, "en", "fr". + // * category: histogram by the + // [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example, + // "COMPUTER_AND_IT", "HEALTHCARE". + // * base_compensation_unit: histogram by the + // [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit] + // of base salary, for example, "WEEKLY", "MONTHLY". // * base_compensation: histogram by the base salary. Must specify list of - // numeric buckets to group results by. + // numeric buckets to group results by. // * annualized_base_compensation: histogram by the base annualized salary. - // Must specify list of numeric buckets to group results by. + // Must specify list of numeric buckets to group results by. // * annualized_total_compensation: histogram by the total annualized salary. - // Must specify list of numeric buckets to group results by. - // * string_custom_attribute: histogram by string [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]. - // Values can be accessed via square bracket notations like - // string_custom_attribute["key1"]. - // * numeric_custom_attribute: histogram by numeric [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]. - // Values can be accessed via square bracket notations like - // numeric_custom_attribute["key1"]. Must specify list of numeric buckets to - // group results by. + // Must specify list of numeric buckets to group results by. + // * string_custom_attribute: histogram by string + // [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]. + // Values can be accessed via square bracket notations like + // string_custom_attribute["key1"]. + // * numeric_custom_attribute: histogram by numeric + // [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]. + // Values can be accessed via square bracket notations like + // numeric_custom_attribute["key1"]. Must specify list of numeric buckets to + // group results by. // // Example expressions: - // * count(admin1) - // * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000), - // bucket(100000, MAX)]) - // * count(string_custom_attribute["some-string-custom-attribute"]) - // * count(numeric_custom_attribute["some-numeric-custom-attribute"], - // [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"]) + // + // * `count(admin1)` + // * `count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000), + // bucket(100000, MAX)])` + // * `count(string_custom_attribute["some-string-custom-attribute"])` + // * `count(numeric_custom_attribute["some-numeric-custom-attribute"], + // [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])` repeated HistogramQuery histogram_queries = 7; // Optional. // - // The desired job attributes returned for jobs in the - // search response. Defaults to [JobView.SMALL][] if no value is specified. + // The desired job attributes returned for jobs in the search response. + // Defaults to + // [JobView.JOB_VIEW_SMALL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_SMALL] + // if no value is specified. JobView job_view = 8; // Optional. // // An integer that specifies the current offset (that is, starting result // location, amongst the jobs deemed by the API as relevant) in search - // results. This field is only considered if [page_token][google.cloud.talent.v4beta1.SearchJobsRequest.page_token] is unset. + // results. This field is only considered if + // [page_token][google.cloud.talent.v4beta1.SearchJobsRequest.page_token] is + // unset. // // For example, 0 means to return results starting from the first matching // job, and 10 means to return from the 11th job. This can be used for @@ -642,8 +713,9 @@ message SearchJobsRequest { // Optional. // // The token specifying the current offset within - // search results. See [SearchJobsResponse.next_page_token][google.cloud.talent.v4beta1.SearchJobsResponse.next_page_token] for - // an explanation of how to obtain the next set of query results. + // search results. See + // [SearchJobsResponse.next_page_token][google.cloud.talent.v4beta1.SearchJobsResponse.next_page_token] + // for an explanation of how to obtain the next set of query results. string page_token = 11; // Optional. @@ -654,48 +726,51 @@ message SearchJobsRequest { // Supported options are: // // * "relevance desc": By relevance descending, as determined by the API - // algorithms. Relevance thresholding of query results is only available - // with this ordering. - // * "posting`_`publish`_`time desc": By [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time] - // descending. - // * "posting`_`update`_`time desc": By [Job.posting_update_time][google.cloud.talent.v4beta1.Job.posting_update_time] - // descending. + // algorithms. Relevance thresholding of query results is only available + // with this ordering. + // * "posting`_`publish`_`time desc": By + // [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time] + // descending. + // * "posting`_`update`_`time desc": By + // [Job.posting_update_time][google.cloud.talent.v4beta1.Job.posting_update_time] + // descending. // * "title": By [Job.title][google.cloud.talent.v4beta1.Job.title] ascending. - // * "title desc": By [Job.title][google.cloud.talent.v4beta1.Job.title] descending. + // * "title desc": By [Job.title][google.cloud.talent.v4beta1.Job.title] + // descending. // * "annualized`_`base`_`compensation": By job's - // [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range] ascending. Jobs - // whose annualized base compensation is unspecified are put at the end of - // search results. + // [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range] + // ascending. Jobs whose annualized base compensation is unspecified are put + // at the end of search results. // * "annualized`_`base`_`compensation desc": By job's - // [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range] descending. Jobs - // whose annualized base compensation is unspecified are put at the end of - // search results. + // [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range] + // descending. Jobs whose annualized base compensation is unspecified are + // put at the end of search results. // * "annualized`_`total`_`compensation": By job's - // [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range] ascending. Jobs - // whose annualized base compensation is unspecified are put at the end of - // search results. + // [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range] + // ascending. Jobs whose annualized base compensation is unspecified are put + // at the end of search results. // * "annualized`_`total`_`compensation desc": By job's - // [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range] descending. Jobs - // whose annualized base compensation is unspecified are put at the end of - // search results. + // [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range] + // descending. Jobs whose annualized base compensation is unspecified are + // put at the end of search results. // * "custom`_`ranking desc": By the relevance score adjusted to the - // [SearchJobsRequest.custom_ranking_info.ranking_expression][] with weight - // factor assigned by - // [SearchJobsRequest.custom_ranking_info.importance_level][] in descending - // order. + // [SearchJobsRequest.CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression] + // with weight factor assigned by + // [SearchJobsRequest.CustomRankingInfo.importance_level][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.importance_level] + // in descending order. // * "location`_`distance": By the distance between the location on jobs and - // locations specified in the - // [SearchJobsRequest.job_query.location_filters][]. - // When this order is selected, the - // [SearchJobsRequest.job_query.location_filters][] must not be empty. When - // a job has multiple locations, the location closest to one of the locations - // specified in the location filter will be used to calculate location - // distance. Distance is calculated by the distance between two lat/long - // coordinates, with a precision of 10e-4 degrees (11.3 meters). - // Jobs that don't have locations specified will be ranked below jobs having - // locations. - // Diversification strategy is still applied unless explicitly disabled in - // [SearchJobsRequest.diversification_level][google.cloud.talent.v4beta1.SearchJobsRequest.diversification_level]. + // locations specified in the + // [JobQuery.location_filters][google.cloud.talent.v4beta1.JobQuery.location_filters]. + // When this order is selected, the + // [JobQuery.location_filters][google.cloud.talent.v4beta1.JobQuery.location_filters] + // must not be empty. When a job has multiple locations, the location + // closest to one of the locations specified in the location filter will be + // used to calculate location distance. Distance is calculated by the + // distance between two lat/long coordinates, with a precision of 10e-4 + // degrees (11.3 meters). Jobs that don't have locations specified will be + // ranked below jobs having locations. Diversification strategy is still + // applied unless explicitly disabled in + // [SearchJobsRequest.diversification_level][google.cloud.talent.v4beta1.SearchJobsRequest.diversification_level]. string order_by = 12; // Optional. @@ -707,8 +782,9 @@ message SearchJobsRequest { // displayed to the job seeker higher up in the results, with the other jobs // being displayed lower down in the results. // - // Defaults to [DiversificationLevel.SIMPLE][google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.SIMPLE] if no value - // is specified. + // Defaults to + // [DiversificationLevel.SIMPLE][google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.SIMPLE] + // if no value is specified. DiversificationLevel diversification_level = 13; // Optional. @@ -719,23 +795,28 @@ message SearchJobsRequest { // Optional. // - // Controls whether to disable exact keyword match on [Job.job_title][], - // [Job.description][google.cloud.talent.v4beta1.Job.description], [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name], [Job.locations][0], - // [Job.qualifications][google.cloud.talent.v4beta1.Job.qualifications]. When disable keyword match is turned off, a - // keyword match returns jobs that do not match given category filters when - // there are matching keywords. For example, for the query "program manager," - // a result is returned even if the job posting has the title "software - // developer," which doesn't fall into "program manager" ontology, but does - // have "program manager" appearing in its description. + // Controls whether to disable exact keyword match on + // [Job.title][google.cloud.talent.v4beta1.Job.title], + // [Job.description][google.cloud.talent.v4beta1.Job.description], + // [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name], + // [Job.addresses][google.cloud.talent.v4beta1.Job.addresses], + // [Job.qualifications][google.cloud.talent.v4beta1.Job.qualifications]. When + // disable keyword match is turned off, a keyword match returns jobs that do + // not match given category filters when there are matching keywords. For + // example, for the query "program manager," a result is returned even if the + // job posting has the title "software developer," which doesn't fall into + // "program manager" ontology, but does have "program manager" appearing in + // its description. // // For queries like "cloud" that don't contain title or // location specific ontology, jobs with "cloud" keyword matches are returned // regardless of this flag's value. // - // Please use [Company.keyword_searchable_custom_fields][] or - // [Company.keyword_searchable_custom_attributes][] if company specific - // globally matched custom field/attribute string values is needed. Enabling - // keyword match improves recall of subsequent search requests. + // Use + // [Company.keyword_searchable_job_custom_attributes][google.cloud.talent.v4beta1.Company.keyword_searchable_job_custom_attributes] + // if company-specific globally matched custom field/attribute string values + // are needed. Enabling keyword match improves recall of subsequent search + // requests. // // Defaults to false. bool disable_keyword_match = 16; @@ -747,24 +828,29 @@ message SearchJobsRequest { message SearchJobsResponse { // Output only. // - // Job entry with metadata inside [SearchJobsResponse][google.cloud.talent.v4beta1.SearchJobsResponse]. + // Job entry with metadata inside + // [SearchJobsResponse][google.cloud.talent.v4beta1.SearchJobsResponse]. message MatchingJob { - // Job resource that matches the specified [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. + // Job resource that matches the specified + // [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. Job job = 1; // A summary of the job with core information that's displayed on the search // results listing page. string job_summary = 2; - // Contains snippets of text from the [Job.job_title][] field most - // closely matching a search query's keywords, if available. The matching - // query keywords are enclosed in HTML bold tags. + // Contains snippets of text from the + // [Job.title][google.cloud.talent.v4beta1.Job.title] field most closely + // matching a search query's keywords, if available. The matching query + // keywords are enclosed in HTML bold tags. string job_title_snippet = 3; - // Contains snippets of text from the [Job.description][google.cloud.talent.v4beta1.Job.description] and similar - // fields that most closely match a search query's keywords, if available. - // All HTML tags in the original fields are stripped when returned in this - // field, and matching query keywords are enclosed in HTML bold tags. + // Contains snippets of text from the + // [Job.description][google.cloud.talent.v4beta1.Job.description] and + // similar fields that most closely match a search query's keywords, if + // available. All HTML tags in the original fields are stripped when + // returned in this field, and matching query keywords are enclosed in HTML + // bold tags. string search_text_snippet = 4; // Commute information which is generated based on specified @@ -786,7 +872,8 @@ message SearchJobsResponse { google.protobuf.Duration travel_duration = 2; } - // The Job entities that match the specified [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. + // The Job entities that match the specified + // [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. repeated MatchingJob matching_jobs = 1; // The histogram results that match with specified @@ -798,19 +885,23 @@ message SearchJobsResponse { string next_page_token = 3; // The location filters that the service applied to the specified query. If - // any filters are lat-lng based, the [JobLocation.location_type][] is - // [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][]. + // any filters are lat-lng based, the + // [Location.location_type][google.cloud.talent.v4beta1.Location.location_type] + // is + // [Location.LocationType.LOCATION_TYPE_UNSPECIFIED][google.cloud.talent.v4beta1.Location.LocationType.LOCATION_TYPE_UNSPECIFIED]. repeated Location location_filters = 4; // An estimation of the number of jobs that match the specified query. // // This number isn't guaranteed to be accurate. For accurate results, - // see [enable_precise_result_size][]. + // see + // [SearchJobsRequest.require_precise_result_size][google.cloud.talent.v4beta1.SearchJobsRequest.require_precise_result_size]. int32 estimated_total_size = 5; // The precise result count, which is available only if the client set - // [enable_precise_result_size][] to `true`, or if the response - // is the last page of results. Otherwise, the value is `-1`. + // [SearchJobsRequest.require_precise_result_size][google.cloud.talent.v4beta1.SearchJobsRequest.require_precise_result_size] + // to `true`, or if the response is the last page of results. Otherwise, the + // value is `-1`. int32 total_size = 6; // Additional information for the API invocation, such as the request @@ -829,3 +920,61 @@ message SearchJobsResponse { // The spell checking result, and correction. SpellingCorrection spell_correction = 9; } + +// Request to create a batch of jobs. +message BatchCreateJobsRequest { + // Required. + // + // The resource name of the tenant under which the job is created. + // + // The format is "projects/{project_id}/tenants/{tenant_id}", for example, + // "projects/api-test-project/tenant/foo". + // + // Tenant id is optional and a default tenant is created if unspecified, for + // example, "projects/api-test-project". + string parent = 1; + + // Required. + // + // The jobs to be created. + repeated Job jobs = 2; +} + +// Request to update a batch of jobs. +message BatchUpdateJobsRequest { + // Required. + // + // The resource name of the tenant under which the job is created. + // + // The format is "projects/{project_id}/tenants/{tenant_id}", for example, + // "projects/api-test-project/tenant/foo". + // + // Tenant id is optional and the default tenant is used if unspecified, for + // example, "projects/api-test-project". + string parent = 1; + + // Required. + // + // The jobs to be updated. + repeated Job jobs = 2; + + // Optional but strongly recommended to be provided for the best service + // experience, also increase latency when checking status of batch operation. + // + // If + // [update_mask][google.cloud.talent.v4beta1.BatchUpdateJobsRequest.update_mask] + // is provided, only the specified fields in + // [Job][google.cloud.talent.v4beta1.Job] are updated. Otherwise all the + // fields are updated. + // + // A field mask to restrict the fields that are updated. Only + // top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported. + // + // If + // [update_mask][google.cloud.talent.v4beta1.BatchUpdateJobsRequest.update_mask] + // is provided, The [Job][google.cloud.talent.v4beta1.Job] inside + // [JobResult][] will only contains fields that is updated, plus the Id of the + // Job. Otherwise, [Job][google.cloud.talent.v4beta1.Job] will include all + // fields, which can yield a very large response. + google.protobuf.FieldMask update_mask = 3; +} diff --git a/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/profile.proto b/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/profile.proto index 1878cdbc..ea5113b3 100644 --- a/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/profile.proto +++ b/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/profile.proto @@ -36,8 +36,9 @@ option objc_class_prefix = "CTS"; // Cloud Profile Discovery API definition // A resource that represents the profile for a job candidate (also referred to -// as a "single-source profile"). A profile belongs to a [Company][google.cloud.talent.v4beta1.Company], which is -// the company/organization that owns the profile. +// as a "single-source profile"). A profile belongs to a +// [Company][google.cloud.talent.v4beta1.Company], which is the +// company/organization that owns the profile. message Profile { // Required during profile update. // @@ -84,8 +85,9 @@ message Profile { // a client has a candidate with two profiles, where one was created recently // and the other one was created 5 years ago. These two profiles may be very // different. The clients can create the first profile and get a generated - // [group_id][google.cloud.talent.v4beta1.Profile.group_id], and assign it when the second profile is created, - // indicating these two profiles are referring to the same candidate. + // [group_id][google.cloud.talent.v4beta1.Profile.group_id], and assign it + // when the second profile is created, indicating these two profiles are + // referring to the same candidate. string group_id = 5; // Optional. @@ -137,8 +139,12 @@ message Profile { // Optional. // - // Available contact information besides [addresses][google.cloud.talent.v4beta1.Profile.addresses], [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses], - // [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For example, Hang-out, Skype. + // Available contact information besides + // [addresses][google.cloud.talent.v4beta1.Profile.addresses], + // [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses], + // [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and + // [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For + // example, Hang-out, Skype. repeated AdditionalContactInfo additional_contact_info = 16; // Optional. @@ -152,8 +158,10 @@ message Profile { // change is. // For example, only job title is changed from "software engineer" to "senior // software engineer". - // * Provide [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current] for the current employment if - // possible. If not, it's inferred from user inputs. + // * Provide + // [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current] + // for the current employment if possible. If not, it's inferred from user + // inputs. repeated EmploymentRecord employment_records = 17; // Optional. @@ -166,8 +174,10 @@ message Profile { // * List each education type separately, no matter how minor the change is. // For example, the profile contains the education experience from the same // school but different degrees. - // * Provide [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current] for the current education if - // possible. If not, it's inferred from user inputs. + // * Provide + // [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current] + // for the current education if possible. If not, it's inferred from user + // inputs. repeated EducationRecord education_records = 18; // Optional. @@ -180,7 +190,8 @@ message Profile { // // The individual or collaborative activities which the candidate has // participated in, for example, open-source projects, class assignments that - // aren't listed in [employment_records][google.cloud.talent.v4beta1.Profile.employment_records]. + // aren't listed in + // [employment_records][google.cloud.talent.v4beta1.Profile.employment_records]. repeated Activity activities = 20; // Optional. @@ -208,7 +219,8 @@ message Profile { // // A map of fields to hold both filterable and non-filterable custom profile // attributes that aren't covered by the provided structured fields. See - // [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more details. + // [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more + // details. // // At most 100 filterable and at most 100 unfilterable keys are supported. If // limit is exceeded, an error is thrown. Custom attributes are `unfilterable` @@ -230,7 +242,8 @@ message Profile { bool processed = 27; // Output only. Keyword snippet shows how the search result is related to a - // search query. This is only returned in [SearchProfilesResponse][google.cloud.talent.v4beta1.SearchProfilesResponse]. + // search query. This is only returned in + // [SearchProfilesResponse][google.cloud.talent.v4beta1.SearchProfilesResponse]. string keyword_snippet = 28; } @@ -252,11 +265,14 @@ message Resume { // Optional. // - // Users can create a profile with only this field field, if [resume_type][google.cloud.talent.v4beta1.Resume.resume_type] - // is [HRXML][]. For example, the API parses this field and creates a profile - // with all structured fields populated, for example. [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord], - // [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], and so on. An error is thrown if this field cannot be - // parsed. + // Users can create a profile with only this field field, if + // [resume_type][google.cloud.talent.v4beta1.Resume.resume_type] is + // [HRXML][google.cloud.talent.v4beta1.Resume.ResumeType.HRXML]. For example, + // the API parses this field and creates a profile with all structured fields + // populated, for example. + // [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord], + // [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], and so on. + // An error is thrown if this field cannot be parsed. // // If this field is provided during profile creation or update, // any other structured data provided in the profile is ignored. The @@ -265,7 +281,8 @@ message Resume { // Optional. // - // The format of [structured_resume][google.cloud.talent.v4beta1.Resume.structured_resume]. + // The format of + // [structured_resume][google.cloud.talent.v4beta1.Resume.structured_resume]. ResumeType resume_type = 2; } @@ -277,7 +294,9 @@ message PersonName { // // Given/first name. // - // It's derived from [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name] if not provided. + // It's derived from + // [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name] + // if not provided. // // Number of characters allowed is 100. string given_name = 1; @@ -293,7 +312,9 @@ message PersonName { // // Middle initial. // - // It's derived from [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name] if not provided. + // It's derived from + // [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name] + // if not provided. // // Number of characters allowed is 20. string middle_initial = 2; @@ -302,7 +323,9 @@ message PersonName { // // Family/last name. // - // It's derived from [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name] if not provided. + // It's derived from + // [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name] + // if not provided. // // Number of characters allowed is 100. string family_name = 3; @@ -322,8 +345,9 @@ message PersonName { repeated string prefixes = 5; } - // The name of a person. It can be one of [formatted_name][] or - // [structured_name][]. + // The name of a person. It can be one of + // [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name] or + // [structured_name][google.cloud.talent.v4beta1.PersonName.structured_name]. oneof person_name { // Optional. // @@ -341,7 +365,8 @@ message PersonName { // Optional. // - // Preferred name for the person. This field is ignored if [structured_name][google.cloud.talent.v4beta1.PersonName.structured_name] + // Preferred name for the person. This field is ignored if + // [structured_name][google.cloud.talent.v4beta1.PersonName.structured_name] // is provided. // // Number of characters allowed is 100. @@ -355,8 +380,10 @@ message Address { // The usage of the address. For example, SCHOOL, WORK, PERSONAL. ContactInfoUsage usage = 1; - // The address of a person. It can be one of [unstructured_address][] or - // [structured_address][]. + // The address of a person. It can be one of + // [unstructured_address][google.cloud.talent.v4beta1.Address.unstructured_address] + // or + // [structured_address][google.cloud.talent.v4beta1.Address.structured_address]. oneof address { // Optional. // @@ -424,9 +451,10 @@ message Phone { // A virtual telephone number is a number that can be routed to another // number and managed by the user via Web, SMS, IVR, and so on. It is // associated with a particular person, and may be routed to either a MOBILE - // or LANDLINE number. The phone usage (see ContactInfoUsage above) should - // be set to PERSONAL for these phone types. Some more information can be - // found here: http://en.wikipedia.org/wiki/Personal_Numbers + // or LANDLINE number. The [phone + // usage][google.cloud.talent.v4beta1.ContactInfoUsage] should be set to + // PERSONAL for these phone types. Some more information can be found here: + // http://en.wikipedia.org/wiki/Personal_Numbers VIRTUAL = 7; // Voice over IP numbers. This includes TSoIP (Telephony Service over IP). @@ -568,19 +596,25 @@ message EmploymentRecord { // If this employment is current. google.protobuf.BoolValue is_current = 10; - // Output only. The job title snippet shows how the [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] is related - // to a search query. It's empty if the [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] isn't related to the - // search query. + // Output only. The job title snippet shows how the + // [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] is + // related to a search query. It's empty if the + // [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] isn't + // related to the search query. string job_title_snippet = 11; - // Output only. The job description snippet shows how the [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description] - // is related to a search query. It's empty if the [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description] isn't - // related to the search query. + // Output only. The job description snippet shows how the + // [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description] + // is related to a search query. It's empty if the + // [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description] + // isn't related to the search query. string job_description_snippet = 12; - // Output only. The employer name snippet shows how the [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name] is - // related to a search query. It's empty if the [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name] isn't - // related to the search query. + // Output only. The employer name snippet shows how the + // [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name] + // is related to a search query. It's empty if the + // [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name] + // isn't related to the search query. string employer_name_snippet = 13; } @@ -615,8 +649,10 @@ message EducationRecord { // The physical address of the education institution. Address address = 5; - // The degree information. It can be one of [degree_description][] or - // [structured_degree][]. + // The degree information. It can be one of + // [degree_description][google.cloud.talent.v4beta1.EducationRecord.degree_description] + // or + // [structured_degree][google.cloud.talent.v4beta1.EducationRecord.structured_degree]. oneof degree { // Optional. // @@ -645,14 +681,18 @@ message EducationRecord { // If this education is current. google.protobuf.BoolValue is_current = 9; - // Output only. The school name snippet shows how the [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] is + // Output only. The school name snippet shows how the + // [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] is // related to a search query in search result. It's empty if the - // [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] isn't related to the search query. + // [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] + // isn't related to the search query. string school_name_snippet = 10; - // Output only. The job description snippet shows how the [degree][google.cloud.talent.v4beta1.degree] is - // related to a search query in search result. It's empty if the [degree][google.cloud.talent.v4beta1.degree] - // isn't related to the search query. + // Output only. The job description snippet shows how the + // [Degree][google.cloud.talent.v4beta1.Degree] is related to a search query + // in search result. It's empty if the + // [Degree][google.cloud.talent.v4beta1.Degree] isn't related to the search + // query. string degree_snippet = 11; } @@ -729,19 +769,25 @@ message Activity { // A list of skills used in this activity. repeated Skill skills_used = 7; - // Output only. Activity name snippet shows how the [display_name][google.cloud.talent.v4beta1.Activity.display_name] is - // related to a search query. It's empty if the [display_name][google.cloud.talent.v4beta1.Activity.display_name] isn't related - // to the search query. + // Output only. Activity name snippet shows how the + // [display_name][google.cloud.talent.v4beta1.Activity.display_name] is + // related to a search query. It's empty if the + // [display_name][google.cloud.talent.v4beta1.Activity.display_name] isn't + // related to the search query. string activity_name_snippet = 8; // Output only. Activity description snippet shows how the - // [description][google.cloud.talent.v4beta1.Activity.description] is related to a search query. It's empty if the - // [description][google.cloud.talent.v4beta1.Activity.description] isn't related to the search query. + // [description][google.cloud.talent.v4beta1.Activity.description] is related + // to a search query. It's empty if the + // [description][google.cloud.talent.v4beta1.Activity.description] isn't + // related to the search query. string activity_description_snippet = 9; // Output only. Skill used snippet shows how the corresponding - // [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related to a search query. It's empty if the - // corresponding [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not related to the search query. + // [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related + // to a search query. It's empty if the corresponding + // [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not + // related to the search query. repeated string skills_used_snippet = 10; } diff --git a/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/profile_service.proto b/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/profile_service.proto index 21469399..cc6f5ee2 100644 --- a/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/profile_service.proto +++ b/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/profile_service.proto @@ -78,7 +78,9 @@ service ProfileService { // For example, search by raw queries "software engineer in Mountain View" or // search by structured filters (location filter, education filter, etc.). // - // See [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest] for more information. + // See + // [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest] + // for more information. rpc SearchProfiles(SearchProfilesRequest) returns (SearchProfilesResponse) { option (google.api.http) = { post: "/v4beta1/{parent=projects/*/tenants/*}:search" @@ -101,8 +103,9 @@ message ListProfilesRequest { // // The token that specifies the current offset (that is, starting result). // - // Please set the value to [ListProfilesResponse.next_page_token][google.cloud.talent.v4beta1.ListProfilesResponse.next_page_token] to - // continue the list. + // Please set the value to + // [ListProfilesResponse.next_page_token][google.cloud.talent.v4beta1.ListProfilesResponse.next_page_token] + // to continue the list. string page_token = 2; // Optional. @@ -233,7 +236,8 @@ message SearchProfilesRequest { // Optional. // - // Search query to execute. See [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details. + // Search query to execute. See + // [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details. ProfileQuery profile_query = 3; // Optional. @@ -249,16 +253,18 @@ message SearchProfilesRequest { // The pageToken, similar to offset enables users of the API to paginate // through the search results. To retrieve the first page of results, set the // pageToken to empty. The search response includes a - // [nextPageToken][google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token] field that can be - // used to populate the pageToken field for the next page of results. Using - // pageToken instead of offset increases the performance of the API, - // especially compared to larger offset values. + // [nextPageToken][google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token] + // field that can be used to populate the pageToken field for the next page of + // results. Using pageToken instead of offset increases the performance of the + // API, especially compared to larger offset values. string page_token = 5; // Optional. // // An integer that specifies the current offset (that is, starting result) in - // search results. This field is only considered if [page_token][google.cloud.talent.v4beta1.SearchProfilesRequest.page_token] is unset. + // search results. This field is only considered if + // [page_token][google.cloud.talent.v4beta1.SearchProfilesRequest.page_token] + // is unset. // // The maximum allowed value is 5000. Otherwise an error is thrown. // @@ -284,18 +290,28 @@ message SearchProfilesRequest { // // * "relevance desc": By descending relevance, as determined by the API // algorithms. - // * "update_date desc": Sort by [Profile.update_date][] in descending order + // * "update_time desc": Sort by + // [Profile.update_time][google.cloud.talent.v4beta1.Profile.update_time] in + // descending order // (recently updated profiles first). - // * "create_date desc": Sort by [Profile.create_date][] in descending order + // * "create_time desc": Sort by + // [Profile.create_time][google.cloud.talent.v4beta1.Profile.create_time] in + // descending order // (recently created profiles first). - // * "first_name": Sort by [PersonStrcuturedName.given_name][] in ascending - // order. - // * "first_name desc": Sort by [PersonStrcuturedName.given_name][] in - // descending order. - // * "last_name": Sort by [PersonStrcuturedName.family_name][] in ascending - // order. - // * "last_name desc": Sort by [PersonStrcuturedName.family_name][] in + // * "first_name": Sort by + // [PersonName.PersonStructuredName.given_name][google.cloud.talent.v4beta1.PersonName.PersonStructuredName.given_name] + // in // ascending order. + // * "first_name desc": Sort by + // [PersonName.PersonStructuredName.given_name][google.cloud.talent.v4beta1.PersonName.PersonStructuredName.given_name] + // in descending order. + // * "last_name": Sort by + // [PersonName.PersonStructuredName.family_name][google.cloud.talent.v4beta1.PersonName.PersonStructuredName.family_name] + // in + // ascending order. + // * "last_name desc": Sort by + // [PersonName.PersonStructuredName.family_name][google.cloud.talent.v4beta1.PersonName.PersonStructuredName.family_name] + // in ascending order. string order_by = 8; // Optional. @@ -308,7 +324,8 @@ message SearchProfilesRequest { // Optional. // // A list of expressions specifies histogram requests against matching - // profiles for [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest]. + // profiles for + // [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest]. // // The expression syntax looks like a function definition with optional // parameters. @@ -361,13 +378,19 @@ message SearchProfilesRequest { // * experience_in_months: experience in months. 0 means 0 month to 1 month // (exclusive). // * application_date: The application date specifies application start dates. - // See [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] for more details. + // See + // [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] + // for more details. // * application_outcome_notes: The application outcome reason specifies the // reasons behind the outcome of the job application. - // See [ApplicationOutcomeNotesFilter][google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter] for more details. + // See + // [ApplicationOutcomeNotesFilter][google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter] + // for more details. // * application_job_title: The application job title specifies the job // applied for in the application. - // See [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter] for more details. + // See + // [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter] + // for more details. // * hirable_status: Hirable status specifies the profile's hirable status. // * string_custom_attribute: String custom attributes. Values can be accessed // via square bracket notation like string_custom_attribute["key1"]. @@ -407,23 +430,27 @@ message SearchProfilesResponse { // [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]. repeated HistogramQueryResult histogram_query_results = 5; - // The profile entities that match the specified [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest]. + // The profile entities that match the specified + // [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest]. repeated SummarizedProfile summarized_profiles = 6; } // Output only. // -// Profile entry with metadata inside [SearchProfilesResponse][google.cloud.talent.v4beta1.SearchProfilesResponse]. +// Profile entry with metadata inside +// [SearchProfilesResponse][google.cloud.talent.v4beta1.SearchProfilesResponse]. message SummarizedProfile { - // A list of profiles that are linked by [Profile.cluster_id][]. + // A list of profiles that are linked by + // [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id]. repeated Profile profiles = 1; // A profile summary shows the profile summary and how the profile matches the // search query. // - // In profile summary, the profiles with the same [Profile.cluster_id][] are - // merged together. Among profiles, same education/employment records may be - // slightly different but they are merged into one with best efforts. + // In profile summary, the profiles with the same + // [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id] are merged + // together. Among profiles, same education/employment records may be slightly + // different but they are merged into one with best efforts. // // For example, in one profile the school name is "UC Berkeley" and the field // study is "Computer Science" and in another one the school name is diff --git a/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/talent_gapic.yaml b/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/talent_gapic.yaml index f1552479..0075ce4e 100644 --- a/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/talent_gapic.yaml +++ b/lib/src/grpc_api/protos/google/cloud/talent/v4beta1/talent_gapic.yaml @@ -1216,6 +1216,48 @@ interfaces: field_name_patterns: parent: tenant_or_project timeout_millis: 30000 + - name: BatchCreateJobs + flattening: + groups: + - parameters: + - parent + - jobs + required_fields: + - parent + - jobs + retry_codes_name: non_idempotent + retry_params_name: default + field_name_patterns: + parent: tenant + long_running: + return_type: google.cloud.talent.v4beta1.JobOperationResult + metadata_type: google.cloud.talent.v4beta1.BatchOperationMetadata + initial_poll_delay_millis: 500 + poll_delay_multiplier: 1.5 + max_poll_delay_millis: 5000 + total_poll_timeout_millis: 300000 + timeout_millis: 60000 + - name: BatchUpdateJobs + flattening: + groups: + - parameters: + - parent + - jobs + required_fields: + - parent + - jobs + retry_codes_name: non_idempotent + retry_params_name: default + field_name_patterns: + parent: tenant + long_running: + return_type: google.cloud.talent.v4beta1.JobOperationResult + metadata_type: google.cloud.talent.v4beta1.BatchOperationMetadata + initial_poll_delay_millis: 500 + poll_delay_multiplier: 1.5 + max_poll_delay_millis: 5000 + total_poll_timeout_millis: 300000 + timeout_millis: 60000 # The fully qualified name of the API interface. - name: google.cloud.talent.v4beta1.ProfileService # Definition for retryable codes. diff --git a/lib/src/grpc_api/protos/google/cloud/videointelligence/v1/video_intelligence.proto b/lib/src/grpc_api/protos/google/cloud/videointelligence/v1/video_intelligence.proto index 09b51f5d..3d00a0d6 100644 --- a/lib/src/grpc_api/protos/google/cloud/videointelligence/v1/video_intelligence.proto +++ b/lib/src/grpc_api/protos/google/cloud/videointelligence/v1/video_intelligence.proto @@ -108,6 +108,9 @@ message VideoContext { // Config for TEXT_DETECTION. TextDetectionConfig text_detection_config = 8; + + // Config for OBJECT_TRACKING. + ObjectTrackingConfig object_tracking_config = 13; } // Config for LABEL_DETECTION. @@ -126,6 +129,22 @@ message LabelDetectionConfig { // Supported values: "builtin/stable" (the default if unset) and // "builtin/latest". string model = 3; + + // The confidence threshold we perform filtering on the labels from + // frame-level detection. If not set, it is set to 0.4 by default. The valid + // range for this threshold is [0.1, 0.9]. Any value set outside of this + // range will be clipped. + // Note: for best results please follow the default threshold. We will update + // the default threshold everytime when we release a new model. + float frame_confidence_threshold = 4; + + // The confidence threshold we perform filtering on the labels from + // video-level and shot-level detections. If not set, it is set to 0.3 by + // default. The valid range for this threshold is [0.1, 0.9]. Any value set + // outside of this range will be clipped. + // Note: for best results please follow the default threshold. We will update + // the default threshold everytime when we release a new model. + float video_confidence_threshold = 5; } // Config for SHOT_CHANGE_DETECTION. @@ -155,6 +174,14 @@ message FaceDetectionConfig { bool include_bounding_boxes = 2; } +// Config for OBJECT_TRACKING. +message ObjectTrackingConfig { + // Model to use for object tracking. + // Supported values: "builtin/stable" (the default if unset) and + // "builtin/latest". + string model = 1; +} + // Config for TEXT_DETECTION. message TextDetectionConfig { // Language hint can be specified if the language to be detected is known a @@ -163,6 +190,11 @@ message TextDetectionConfig { // // Automatic language detection is performed if no hint is provided. repeated string language_hints = 1; + + // Model to use for text detection. + // Supported values: "builtin/stable" (the default if unset) and + // "builtin/latest". + string model = 2; } // Video segment. diff --git a/lib/src/grpc_api/protos/google/cloud/videointelligence/v1p3beta1/video_intelligence.proto b/lib/src/grpc_api/protos/google/cloud/videointelligence/v1p3beta1/video_intelligence.proto index dc65a651..763413b1 100644 --- a/lib/src/grpc_api/protos/google/cloud/videointelligence/v1p3beta1/video_intelligence.proto +++ b/lib/src/grpc_api/protos/google/cloud/videointelligence/v1p3beta1/video_intelligence.proto @@ -109,8 +109,14 @@ message VideoContext { // Config for EXPLICIT_CONTENT_DETECTION. ExplicitContentDetectionConfig explicit_content_detection_config = 4; + // Config for SPEECH_TRANSCRIPTION. + SpeechTranscriptionConfig speech_transcription_config = 6; + // Config for TEXT_DETECTION. TextDetectionConfig text_detection_config = 8; + + // Config for OBJECT_TRACKING. + ObjectTrackingConfig object_tracking_config = 13; } // Config for LABEL_DETECTION. @@ -129,6 +135,22 @@ message LabelDetectionConfig { // Supported values: "builtin/stable" (the default if unset) and // "builtin/latest". string model = 3; + + // The confidence threshold we perform filtering on the labels from + // frame-level detection. If not set, it is set to 0.4 by default. The valid + // range for this threshold is [0.1, 0.9]. Any value set outside of this + // range will be clipped. + // Note: for best results please follow the default threshold. We will update + // the default threshold everytime when we release a new model. + float frame_confidence_threshold = 4; + + // The confidence threshold we perform filtering on the labels from + // video-level and shot-level detections. If not set, it is set to 0.3 by + // default. The valid range for this threshold is [0.1, 0.9]. Any value set + // outside of this range will be clipped. + // Note: for best results please follow the default threshold. We will update + // the default threshold everytime when we release a new model. + float video_confidence_threshold = 5; } // Config for SHOT_CHANGE_DETECTION. @@ -139,6 +161,14 @@ message ShotChangeDetectionConfig { string model = 1; } +// Config for OBJECT_TRACKING. +message ObjectTrackingConfig { + // Model to use for object tracking. + // Supported values: "builtin/stable" (the default if unset) and + // "builtin/latest". + string model = 1; +} + // Config for EXPLICIT_CONTENT_DETECTION. message ExplicitContentDetectionConfig { // Model to use for explicit content detection. @@ -155,6 +185,11 @@ message TextDetectionConfig { // // Automatic language detection is performed if no hint is provided. repeated string language_hints = 1; + + // Model to use for text detection. + // Supported values: "builtin/stable" (the default if unset) and + // "builtin/latest". + string model = 2; } // Video segment. @@ -254,6 +289,51 @@ message NormalizedBoundingBox { float bottom = 4; } +// For tracking related features, such as LOGO_RECOGNITION, FACE_DETECTION, +// CELEBRITY_RECOGNITION, PERSON_DETECTION. +// An object at time_offset with attributes, and located with +// normalized_bounding_box. +message TimestampedObject { + // Normalized Bounding box in a frame, where the object is located. + NormalizedBoundingBox normalized_bounding_box = 1; + + // Time-offset, relative to the beginning of the video, + // corresponding to the video frame for this object. + google.protobuf.Duration time_offset = 2; + + // Optional. The attributes of the object in the bounding box. + repeated DetectedAttribute attributes = 3; +} + +// A track of an object instance. +message Track { + // Video segment of a track. + VideoSegment segment = 1; + + // The object with timestamp and attributes per frame in the track. + repeated TimestampedObject timestamped_objects = 2; + + // Optional. Attributes in the track level. + repeated DetectedAttribute attributes = 3; + + // Optional. The confidence score of the tracked object. + float confidence = 4; +} + +// A generic detected attribute represented by name in string format. +message DetectedAttribute { + // The name of the attribute, i.e. glasses, dark_glasses, mouth_open etc. + // A full list of supported type names will be provided in the document. + string name = 1; + + // Detected attribute confidence. Range [0, 1]. + float confidence = 2; + + // Text value of the detection result. For example, the value for "HairColor" + // can be "black", "blonde", etc. + string value = 3; +} + // Annotation results for a single video. message VideoAnnotationResults { // Video file location in @@ -278,6 +358,9 @@ message VideoAnnotationResults { // Explicit content annotation. ExplicitContentAnnotation explicit_annotation = 7; + // Speech transcription. + repeated SpeechTranscription speech_transcriptions = 11; + // OCR text detection and tracking. // Annotations for list of detected text snippets. Each will have list of // frame information associated with it. @@ -286,6 +369,9 @@ message VideoAnnotationResults { // Annotations for list of objects detected and tracked in video. repeated ObjectTrackingAnnotation object_annotations = 14; + // Annotations for list of logos detected, tracked and recognized in video. + repeated LogoRecognitionAnnotation logo_recognition_annotations = 19; + // If set, indicates an error. Note that for a single `AnnotateVideoRequest` // some videos may succeed and some may fail. google.rpc.Status error = 9; @@ -324,6 +410,142 @@ message AnnotateVideoProgress { repeated VideoAnnotationProgress annotation_progress = 1; } +// Config for SPEECH_TRANSCRIPTION. +message SpeechTranscriptionConfig { + // *Required* The language of the supplied audio as a + // [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. + // Example: "en-US". + // See [Language Support](https://cloud.google.com/speech/docs/languages) + // for a list of the currently supported language codes. + string language_code = 1; + + // *Optional* Maximum number of recognition hypotheses to be returned. + // Specifically, the maximum number of `SpeechRecognitionAlternative` messages + // within each `SpeechTranscription`. The server may return fewer than + // `max_alternatives`. Valid values are `0`-`30`. A value of `0` or `1` will + // return a maximum of one. If omitted, will return a maximum of one. + int32 max_alternatives = 2; + + // *Optional* If set to `true`, the server will attempt to filter out + // profanities, replacing all but the initial character in each filtered word + // with asterisks, e.g. "f***". If set to `false` or omitted, profanities + // won't be filtered out. + bool filter_profanity = 3; + + // *Optional* A means to provide context to assist the speech recognition. + repeated SpeechContext speech_contexts = 4; + + // *Optional* If 'true', adds punctuation to recognition result hypotheses. + // This feature is only available in select languages. Setting this for + // requests in other languages has no effect at all. The default 'false' value + // does not add punctuation to result hypotheses. NOTE: "This is currently + // offered as an experimental service, complimentary to all users. In the + // future this may be exclusively available as a premium feature." + bool enable_automatic_punctuation = 5; + + // *Optional* For file formats, such as MXF or MKV, supporting multiple audio + // tracks, specify up to two tracks. Default: track 0. + repeated int32 audio_tracks = 6; + + // *Optional* If 'true', enables speaker detection for each recognized word in + // the top alternative of the recognition result using a speaker_tag provided + // in the WordInfo. + // Note: When this is true, we send all the words from the beginning of the + // audio for the top alternative in every consecutive responses. + // This is done in order to improve our speaker tags as our models learn to + // identify the speakers in the conversation over time. + bool enable_speaker_diarization = 7; + + // *Optional* + // If set, specifies the estimated number of speakers in the conversation. + // If not set, defaults to '2'. + // Ignored unless enable_speaker_diarization is set to true. + int32 diarization_speaker_count = 8; + + // *Optional* If `true`, the top result includes a list of words and the + // confidence for those words. If `false`, no word-level confidence + // information is returned. The default is `false`. + bool enable_word_confidence = 9; +} + +// Provides "hints" to the speech recognizer to favor specific words and phrases +// in the results. +message SpeechContext { + // *Optional* A list of strings containing words and phrases "hints" so that + // the speech recognition is more likely to recognize them. This can be used + // to improve the accuracy for specific words and phrases, for example, if + // specific commands are typically spoken by the user. This can also be used + // to add additional words to the vocabulary of the recognizer. See + // [usage limits](https://cloud.google.com/speech/limits#content). + repeated string phrases = 1; +} + +// A speech recognition result corresponding to a portion of the audio. +message SpeechTranscription { + // May contain one or more recognition hypotheses (up to the maximum specified + // in `max_alternatives`). These alternatives are ordered in terms of + // accuracy, with the top (first) alternative being the most probable, as + // ranked by the recognizer. + repeated SpeechRecognitionAlternative alternatives = 1; + + // Output only. The + // [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the + // language in this result. This language code was detected to have the most + // likelihood of being spoken in the audio. + string language_code = 2; +} + +// Alternative hypotheses (a.k.a. n-best list). +message SpeechRecognitionAlternative { + // Transcript text representing the words that the user spoke. + string transcript = 1; + + // The confidence estimate between 0.0 and 1.0. A higher number + // indicates an estimated greater likelihood that the recognized words are + // correct. This field is typically provided only for the top hypothesis, and + // only for `is_final=true` results. Clients should not rely on the + // `confidence` field as it is not guaranteed to be accurate or consistent. + // The default of 0.0 is a sentinel value indicating `confidence` was not set. + float confidence = 2; + + // A list of word-specific information for each recognized word. + repeated WordInfo words = 3; +} + +// Word-specific information for recognized words. Word information is only +// included in the response when certain request parameters are set, such +// as `enable_word_time_offsets`. +message WordInfo { + // Time offset relative to the beginning of the audio, and + // corresponding to the start of the spoken word. This field is only set if + // `enable_word_time_offsets=true` and only in the top hypothesis. This is an + // experimental feature and the accuracy of the time offset can vary. + google.protobuf.Duration start_time = 1; + + // Time offset relative to the beginning of the audio, and + // corresponding to the end of the spoken word. This field is only set if + // `enable_word_time_offsets=true` and only in the top hypothesis. This is an + // experimental feature and the accuracy of the time offset can vary. + google.protobuf.Duration end_time = 2; + + // The word corresponding to this set of information. + string word = 3; + + // Output only. The confidence estimate between 0.0 and 1.0. A higher number + // indicates an estimated greater likelihood that the recognized words are + // correct. This field is set only for the top alternative. + // This field is not guaranteed to be accurate and users should not rely on it + // to be always provided. + // The default of 0.0 is a sentinel value indicating `confidence` was not set. + float confidence = 4; + + // Output only. A distinct integer value is assigned for every speaker within + // the audio. This field specifies which one of those speakers was detected to + // have spoken this word. Value ranges from 1 up to diarization_speaker_count, + // and is only set if speaker diarization is enabled. + int32 speaker_tag = 5; +} + // A vertex represents a 2D point in the image. // NOTE: the normalized vertex coordinates are relative to the original image // and range from 0 to 1. @@ -432,6 +654,21 @@ message ObjectTrackingAnnotation { } } +// Annotation corresponding to one detected, tracked and recognized logo class. +message LogoRecognitionAnnotation { + // Entity category information to specify the logo class that all the logo + // tracks within this LogoRecognitionAnnotation are recognized as. + Entity entity = 1; + + // All logo tracks where the recognized logo appears. Each track corresponds + // to one logo instance appearing in consecutive frames. + repeated Track tracks = 2; + + // All video segments where the recognized logo appears. There might be + // multiple instances of the same logo class appearing in one VideoSegment. + repeated VideoSegment segments = 3; +} + // The top-level message sent by the client for the `StreamingAnnotateVideo` // method. Multiple `StreamingAnnotateVideoRequest` messages are sent. // The first message must only contain a `StreamingVideoConfig` message. @@ -450,6 +687,8 @@ message StreamingAnnotateVideoRequest { // `StreamingAnnotateVideoRequest` message containing only // `video_config`, all subsequent `AnnotateStreamingVideoRequest` // messages must only contain `input_content` field. + // Note: as with all bytes fields, protobuffers use a pure binary + // representation (not base64). bytes input_content = 2; } } @@ -458,7 +697,7 @@ message StreamingAnnotateVideoRequest { // by `StreamingAnnotateVideo`. A series of zero or more // `StreamingAnnotateVideoResponse` messages are streamed back to the client. message StreamingAnnotateVideoResponse { - // If set, returns a [google.rpc.Status][] message that + // If set, returns a [google.rpc.Status][google.rpc.Status] message that // specifies the error for the operation. google.rpc.Status error = 1; @@ -522,7 +761,7 @@ message StreamingVideoAnnotationResults { // Label annotation results. repeated LabelAnnotation label_annotations = 2; - // Explicit content detection results. + // Explicit content annotation results. ExplicitContentAnnotation explicit_annotation = 3; // Object tracking results. @@ -537,10 +776,10 @@ message StreamingVideoConfig { // Config for requested annotation feature. oneof streaming_config { - // Config for SHOT_CHANGE_DETECTION. + // Config for STREAMING_SHOT_CHANGE_DETECTION. StreamingShotChangeDetectionConfig shot_change_detection_config = 2; - // Config for LABEL_DETECTION. + // Config for STREAMING_LABEL_DETECTION. StreamingLabelDetectionConfig label_detection_config = 3; // Config for STREAMING_EXPLICIT_CONTENT_DETECTION. @@ -569,11 +808,17 @@ enum Feature { // Explicit content detection. EXPLICIT_CONTENT_DETECTION = 3; + // Speech transcription. + SPEECH_TRANSCRIPTION = 6; + // OCR text detection and tracking. TEXT_DETECTION = 7; // Object detection and tracking. OBJECT_TRACKING = 9; + + // Logo detection, tracking, and recognition. + LOGO_RECOGNITION = 12; } // Label detection mode. diff --git a/lib/src/grpc_api/protos/google/cloud/vision/v1/BUILD.bazel b/lib/src/grpc_api/protos/google/cloud/vision/v1/BUILD.bazel index 6a572ddc..049cd628 100644 --- a/lib/src/grpc_api/protos/google/cloud/vision/v1/BUILD.bazel +++ b/lib/src/grpc_api/protos/google/cloud/vision/v1/BUILD.bazel @@ -161,3 +161,35 @@ go_gapic_assembly_pkg( ":vision_go_proto", ], ) + +############################################################################## +# C++ +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "cc_grpc_library", + "cc_proto_library", + "cc_gapic_library", +) + +cc_proto_library( + name = "vision_cc_proto", + deps = [":vision_proto"], +) + +cc_grpc_library( + name = "vision_cc_grpc", + srcs = [":vision_proto"], + deps = [":vision_cc_proto"], + grpc_only = True, +) + +cc_gapic_library( + name = "vision_cc_gapic", + src = ":vision_proto_with_info", + package = "google.cloud.vision.v1", + deps = [ + ":vision_cc_grpc", + ":vision_cc_proto", + ], +) \ No newline at end of file diff --git a/lib/src/grpc_api/protos/google/cloud/vision/v1/product_search.proto b/lib/src/grpc_api/protos/google/cloud/vision/v1/product_search.proto index 8e096fd2..9d981ff7 100644 --- a/lib/src/grpc_api/protos/google/cloud/vision/v1/product_search.proto +++ b/lib/src/grpc_api/protos/google/cloud/vision/v1/product_search.proto @@ -45,7 +45,10 @@ message ProductSearchParams { // The list of product categories to search in. Currently, we only consider // the first category, and either "homegoods-v2", "apparel-v2", or "toys-v2" // should be specified. The legacy categories "homegoods", "apparel", and - // "toys" are still supported, but these should not be used for new products. + // "toys" are still supported but will be deprecated. For new products, please + // use "homegoods-v2", "apparel-v2", or "toys-v2" for better product search + // accuracy. It is recommended to migrate existing products to these + // categories as well. repeated string product_categories = 7; // The filtering expression. This can be used to restrict search results based diff --git a/lib/src/grpc_api/protos/google/cloud/vision/v1/product_search_service.proto b/lib/src/grpc_api/protos/google/cloud/vision/v1/product_search_service.proto index ae36bf15..5b36591c 100644 --- a/lib/src/grpc_api/protos/google/cloud/vision/v1/product_search_service.proto +++ b/lib/src/grpc_api/protos/google/cloud/vision/v1/product_search_service.proto @@ -338,8 +338,10 @@ message Product { // The category for the product identified by the reference image. This should // be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories - // "homegoods", "apparel", and "toys" are still supported, but these should - // not be used for new products. + // "homegoods", "apparel", and "toys" are still supported but will be + // deprecated. For new products, please use "homegoods-v2", "apparel-v2", or + // "toys-v2" for better product search accuracy. It is recommended to migrate + // existing products to these categories as well. // // This field is immutable. string product_category = 4; diff --git a/lib/src/grpc_api/protos/google/cloud/vision/v1p4beta1/product_search.proto b/lib/src/grpc_api/protos/google/cloud/vision/v1p4beta1/product_search.proto index f006dd46..1caf3019 100644 --- a/lib/src/grpc_api/protos/google/cloud/vision/v1p4beta1/product_search.proto +++ b/lib/src/grpc_api/protos/google/cloud/vision/v1p4beta1/product_search.proto @@ -45,9 +45,11 @@ message ProductSearchParams { // The list of product categories to search in. Currently, we only consider // the first category, and either "homegoods-v2", "apparel-v2", "toys-v2", or - // "packagedgoods" should be specified. The legacy categories "homegoods", - // "apparel", and "toys" are still supported, but these should not be used for - // new products. + // "packagedgoods-v1" should be specified. The legacy categories "homegoods", + // "apparel", and "toys" are still supported but will be deprecated. For new + // products, please use "homegoods-v2", "apparel-v2", or "toys-v2" for better + // product search accuracy. It is recommended to migrate existing products to + // these categories as well. repeated string product_categories = 7; // The filtering expression. This can be used to restrict search results based diff --git a/lib/src/grpc_api/protos/google/cloud/vision/v1p4beta1/product_search_service.proto b/lib/src/grpc_api/protos/google/cloud/vision/v1p4beta1/product_search_service.proto index 74bd86bc..3cbc5357 100644 --- a/lib/src/grpc_api/protos/google/cloud/vision/v1p4beta1/product_search_service.proto +++ b/lib/src/grpc_api/protos/google/cloud/vision/v1p4beta1/product_search_service.proto @@ -355,9 +355,12 @@ message Product { string description = 3; // The category for the product identified by the reference image. This should - // be either "homegoods-v2", "apparel-v2", "toys-v2", or "packagedgoods". The - // legacy categories "homegoods", "apparel", and "toys" are still supported, - // but these should not be used for new products. + // be either "homegoods-v2", "apparel-v2", "toys-v2", or "packagedgoods-v1". + // The legacy categories "homegoods", "apparel", and "toys" are still + // supported but will be deprecated. For new products, please use + // "homegoods-v2", "apparel-v2", or "toys-v2" for better product search + // accuracy. It is recommended to migrate existing products to these + // categories as well. // // This field is immutable. string product_category = 4; diff --git a/lib/src/grpc_api/protos/google/home/graph/v1/device.proto b/lib/src/grpc_api/protos/google/home/graph/v1/device.proto index 2c959951..78a480ec 100644 --- a/lib/src/grpc_api/protos/google/home/graph/v1/device.proto +++ b/lib/src/grpc_api/protos/google/home/graph/v1/device.proto @@ -58,6 +58,15 @@ message Device { // Custom JSON data provided by the manufacturer and attached to QUERY and // EXECUTE requests in AoG. string custom_data = 10; + + // IDs of other devices associated with this device. This is used to + // represent a device group (e.g. bonded zone) or "facets" synced + // through different flows (e.g. Google Nest Hub Max with a Nest Camera). + // + // This may also be used to pass in alternate IDs used to identify a cloud + // synced device for local execution (i.e. local verification). If used for + // local verification, this field is synced from the cloud. + repeated AgentOtherDeviceId other_device_ids = 11; } // Different names for the device. @@ -87,3 +96,12 @@ message DeviceInfo { // Device software version. string sw_version = 4; } + +// Identifies a device in the third party or first party system. +message AgentOtherDeviceId { + // The agent's ID. Generally it is the agent's AoG project id. + string agent_id = 1; + + // Device ID defined by the agent. The device_id must be unique. + string device_id = 2; +} diff --git a/lib/src/grpc_api/protos/google/longrunning/BUILD.bazel b/lib/src/grpc_api/protos/google/longrunning/BUILD.bazel index f7d15d44..c9d7ff4e 100644 --- a/lib/src/grpc_api/protos/google/longrunning/BUILD.bazel +++ b/lib/src/grpc_api/protos/google/longrunning/BUILD.bazel @@ -89,3 +89,24 @@ go_gapic_assembly_pkg( ":longrunning_go_proto", ], ) + +############################################################################## +# C++ +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "cc_grpc_library", + "cc_proto_library", +) + +cc_proto_library( + name = "longrunning_cc_proto", + deps = [":operations_proto"], +) + +cc_grpc_library( + name = "longrunning_cc_grpc", + srcs = [":operations_proto"], + deps = [":longrunning_cc_proto"], + grpc_only = True, +) diff --git a/lib/src/grpc_api/protos/google/privacy/dlp/v2/dlp.proto b/lib/src/grpc_api/protos/google/privacy/dlp/v2/dlp.proto index 3a5dde11..b9c5f6a5 100644 --- a/lib/src/grpc_api/protos/google/privacy/dlp/v2/dlp.proto +++ b/lib/src/grpc_api/protos/google/privacy/dlp/v2/dlp.proto @@ -18,7 +18,7 @@ syntax = "proto3"; package google.privacy.dlp.v2; import "google/api/annotations.proto"; -import "google/api/resource.proto"; +import "google/api/client.proto"; import "google/privacy/dlp/v2/storage.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/empty.proto"; @@ -46,6 +46,8 @@ option php_namespace = "Google\\Cloud\\Dlp\\V2"; // To learn more about concepts and find how-to guides see // https://cloud.google.com/dlp/docs/. service DlpService { + option (google.api.default_host) = "dlp.googleapis.com"; + // Finds potentially sensitive info in content. // This method has limits on input size, processing time, and output size. // @@ -85,7 +87,8 @@ service DlpService { // When no InfoTypes or CustomInfoTypes are specified in this request, the // system will automatically choose what detectors to run. By default this may // be all types, but may change over time as detectors are updated. - rpc DeidentifyContent(DeidentifyContentRequest) returns (DeidentifyContentResponse) { + rpc DeidentifyContent(DeidentifyContentRequest) + returns (DeidentifyContentResponse) { option (google.api.http) = { post: "/v2/{parent=projects/*}/content:deidentify" body: "*" @@ -96,7 +99,8 @@ service DlpService { // See // https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example // to learn more. - rpc ReidentifyContent(ReidentifyContentRequest) returns (ReidentifyContentResponse) { + rpc ReidentifyContent(ReidentifyContentRequest) + returns (ReidentifyContentResponse) { option (google.api.http) = { post: "/v2/{parent=projects/*}/content:reidentify" body: "*" @@ -115,7 +119,8 @@ service DlpService { // Creates an InspectTemplate for re-using frequently used configuration // for inspecting content, images, and storage. // See https://cloud.google.com/dlp/docs/creating-templates to learn more. - rpc CreateInspectTemplate(CreateInspectTemplateRequest) returns (InspectTemplate) { + rpc CreateInspectTemplate(CreateInspectTemplateRequest) + returns (InspectTemplate) { option (google.api.http) = { post: "/v2/{parent=organizations/*}/inspectTemplates" body: "*" @@ -128,7 +133,8 @@ service DlpService { // Updates the InspectTemplate. // See https://cloud.google.com/dlp/docs/creating-templates to learn more. - rpc UpdateInspectTemplate(UpdateInspectTemplateRequest) returns (InspectTemplate) { + rpc UpdateInspectTemplate(UpdateInspectTemplateRequest) + returns (InspectTemplate) { option (google.api.http) = { patch: "/v2/{name=organizations/*/inspectTemplates/*}" body: "*" @@ -144,31 +150,27 @@ service DlpService { rpc GetInspectTemplate(GetInspectTemplateRequest) returns (InspectTemplate) { option (google.api.http) = { get: "/v2/{name=organizations/*/inspectTemplates/*}" - additional_bindings { - get: "/v2/{name=projects/*/inspectTemplates/*}" - } + additional_bindings { get: "/v2/{name=projects/*/inspectTemplates/*}" } }; } // Lists InspectTemplates. // See https://cloud.google.com/dlp/docs/creating-templates to learn more. - rpc ListInspectTemplates(ListInspectTemplatesRequest) returns (ListInspectTemplatesResponse) { + rpc ListInspectTemplates(ListInspectTemplatesRequest) + returns (ListInspectTemplatesResponse) { option (google.api.http) = { get: "/v2/{parent=organizations/*}/inspectTemplates" - additional_bindings { - get: "/v2/{parent=projects/*}/inspectTemplates" - } + additional_bindings { get: "/v2/{parent=projects/*}/inspectTemplates" } }; } // Deletes an InspectTemplate. // See https://cloud.google.com/dlp/docs/creating-templates to learn more. - rpc DeleteInspectTemplate(DeleteInspectTemplateRequest) returns (google.protobuf.Empty) { + rpc DeleteInspectTemplate(DeleteInspectTemplateRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v2/{name=organizations/*/inspectTemplates/*}" - additional_bindings { - delete: "/v2/{name=projects/*/inspectTemplates/*}" - } + additional_bindings { delete: "/v2/{name=projects/*/inspectTemplates/*}" } }; } @@ -176,7 +178,8 @@ service DlpService { // for de-identifying content, images, and storage. // See https://cloud.google.com/dlp/docs/creating-templates-deid to learn // more. - rpc CreateDeidentifyTemplate(CreateDeidentifyTemplateRequest) returns (DeidentifyTemplate) { + rpc CreateDeidentifyTemplate(CreateDeidentifyTemplateRequest) + returns (DeidentifyTemplate) { option (google.api.http) = { post: "/v2/{parent=organizations/*}/deidentifyTemplates" body: "*" @@ -190,7 +193,8 @@ service DlpService { // Updates the DeidentifyTemplate. // See https://cloud.google.com/dlp/docs/creating-templates-deid to learn // more. - rpc UpdateDeidentifyTemplate(UpdateDeidentifyTemplateRequest) returns (DeidentifyTemplate) { + rpc UpdateDeidentifyTemplate(UpdateDeidentifyTemplateRequest) + returns (DeidentifyTemplate) { option (google.api.http) = { patch: "/v2/{name=organizations/*/deidentifyTemplates/*}" body: "*" @@ -204,31 +208,30 @@ service DlpService { // Gets a DeidentifyTemplate. // See https://cloud.google.com/dlp/docs/creating-templates-deid to learn // more. - rpc GetDeidentifyTemplate(GetDeidentifyTemplateRequest) returns (DeidentifyTemplate) { + rpc GetDeidentifyTemplate(GetDeidentifyTemplateRequest) + returns (DeidentifyTemplate) { option (google.api.http) = { get: "/v2/{name=organizations/*/deidentifyTemplates/*}" - additional_bindings { - get: "/v2/{name=projects/*/deidentifyTemplates/*}" - } + additional_bindings { get: "/v2/{name=projects/*/deidentifyTemplates/*}" } }; } // Lists DeidentifyTemplates. // See https://cloud.google.com/dlp/docs/creating-templates-deid to learn // more. - rpc ListDeidentifyTemplates(ListDeidentifyTemplatesRequest) returns (ListDeidentifyTemplatesResponse) { + rpc ListDeidentifyTemplates(ListDeidentifyTemplatesRequest) + returns (ListDeidentifyTemplatesResponse) { option (google.api.http) = { get: "/v2/{parent=organizations/*}/deidentifyTemplates" - additional_bindings { - get: "/v2/{parent=projects/*}/deidentifyTemplates" - } + additional_bindings { get: "/v2/{parent=projects/*}/deidentifyTemplates" } }; } // Deletes a DeidentifyTemplate. // See https://cloud.google.com/dlp/docs/creating-templates-deid to learn // more. - rpc DeleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest) returns (google.protobuf.Empty) { + rpc DeleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v2/{name=organizations/*/deidentifyTemplates/*}" additional_bindings { @@ -266,7 +269,8 @@ service DlpService { // Lists job triggers. // See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. - rpc ListJobTriggers(ListJobTriggersRequest) returns (ListJobTriggersResponse) { + rpc ListJobTriggers(ListJobTriggersRequest) + returns (ListJobTriggersResponse) { option (google.api.http) = { get: "/v2/{parent=projects/*}/jobTriggers" }; @@ -274,7 +278,8 @@ service DlpService { // Deletes a job trigger. // See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. - rpc DeleteJobTrigger(DeleteJobTriggerRequest) returns (google.protobuf.Empty) { + rpc DeleteJobTrigger(DeleteJobTriggerRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v2/{name=projects/*/jobTriggers/*}" }; @@ -347,7 +352,8 @@ service DlpService { // Creates a pre-built stored infoType to be used for inspection. // See https://cloud.google.com/dlp/docs/creating-stored-infotypes to // learn more. - rpc CreateStoredInfoType(CreateStoredInfoTypeRequest) returns (StoredInfoType) { + rpc CreateStoredInfoType(CreateStoredInfoTypeRequest) + returns (StoredInfoType) { option (google.api.http) = { post: "/v2/{parent=organizations/*}/storedInfoTypes" body: "*" @@ -362,7 +368,8 @@ service DlpService { // will continue to be used until the new version is ready. // See https://cloud.google.com/dlp/docs/creating-stored-infotypes to // learn more. - rpc UpdateStoredInfoType(UpdateStoredInfoTypeRequest) returns (StoredInfoType) { + rpc UpdateStoredInfoType(UpdateStoredInfoTypeRequest) + returns (StoredInfoType) { option (google.api.http) = { patch: "/v2/{name=organizations/*/storedInfoTypes/*}" body: "*" @@ -379,33 +386,29 @@ service DlpService { rpc GetStoredInfoType(GetStoredInfoTypeRequest) returns (StoredInfoType) { option (google.api.http) = { get: "/v2/{name=organizations/*/storedInfoTypes/*}" - additional_bindings { - get: "/v2/{name=projects/*/storedInfoTypes/*}" - } + additional_bindings { get: "/v2/{name=projects/*/storedInfoTypes/*}" } }; } // Lists stored infoTypes. // See https://cloud.google.com/dlp/docs/creating-stored-infotypes to // learn more. - rpc ListStoredInfoTypes(ListStoredInfoTypesRequest) returns (ListStoredInfoTypesResponse) { + rpc ListStoredInfoTypes(ListStoredInfoTypesRequest) + returns (ListStoredInfoTypesResponse) { option (google.api.http) = { get: "/v2/{parent=organizations/*}/storedInfoTypes" - additional_bindings { - get: "/v2/{parent=projects/*}/storedInfoTypes" - } + additional_bindings { get: "/v2/{parent=projects/*}/storedInfoTypes" } }; } // Deletes a stored infoType. // See https://cloud.google.com/dlp/docs/creating-stored-infotypes to // learn more. - rpc DeleteStoredInfoType(DeleteStoredInfoTypeRequest) returns (google.protobuf.Empty) { + rpc DeleteStoredInfoType(DeleteStoredInfoTypeRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v2/{name=organizations/*/storedInfoTypes/*}" - additional_bindings { - delete: "/v2/{name=projects/*/storedInfoTypes/*}" - } + additional_bindings { delete: "/v2/{name=projects/*/storedInfoTypes/*}" } }; } } @@ -423,18 +426,6 @@ message ExcludeInfoTypes { repeated InfoType info_types = 1; } -// Options describing which parts of the provided content should be scanned. -enum ContentOption { - // Includes entire content of a file or a data stream. - CONTENT_UNSPECIFIED = 0; - - // Text content within the data, excluding any metadata. - CONTENT_TEXT = 1; - - // Images found in the data. - CONTENT_IMAGE = 2; -} - // The rule that specifies conditions when findings of infoTypes specified in // `InspectionRuleSet` are removed from results. message ExclusionRule { @@ -453,6 +444,18 @@ message ExclusionRule { MatchingType matching_type = 4; } +// Options describing which parts of the provided content should be scanned. +enum ContentOption { + // Includes entire content of a file or a data stream. + CONTENT_UNSPECIFIED = 0; + + // Text content within the data, excluding any metadata. + CONTENT_TEXT = 1; + + // Images found in the data. + CONTENT_IMAGE = 2; +} + // A single inspection rule to be applied to infoTypes, specified in // `InspectionRuleSet`. message InspectionRule { @@ -1364,7 +1367,8 @@ message AnalyzeDataSourceRiskDetails { } // Histogram of value frequencies in the column. - repeated CategoricalStatsHistogramBucket value_frequency_histogram_buckets = 5; + repeated CategoricalStatsHistogramBucket value_frequency_histogram_buckets = + 5; } // Result of the k-anonymity computation. @@ -1442,7 +1446,8 @@ message AnalyzeDataSourceRiskDetails { } // Histogram of l-diversity equivalence class sensitive value frequencies. - repeated LDiversityHistogramBucket sensitive_value_frequency_histogram_buckets = 5; + repeated LDiversityHistogramBucket + sensitive_value_frequency_histogram_buckets = 5; } // Result of the reidentifiability analysis. Note that these results are an @@ -1548,7 +1553,8 @@ message AnalyzeDataSourceRiskDetails { // {min_probability: 0.3, max_probability: 0.4, frequency: 99} // mean that there are no record with an estimated probability in [0.1, 0.2) // nor larger or equal to 0.4. - repeated DeltaPresenceEstimationHistogramBucket delta_presence_estimation_histogram = 1; + repeated DeltaPresenceEstimationHistogramBucket + delta_presence_estimation_histogram = 1; } // Privacy metric to compute. @@ -1782,16 +1788,12 @@ message ReplaceValueConfig { } // Replace each matching finding with the name of the info_type. -message ReplaceWithInfoTypeConfig { - -} +message ReplaceWithInfoTypeConfig {} // Redact a given value. For example, if used with an `InfoTypeTransformation` // transforming PHONE_NUMBER, and input 'My phone number is 206-555-0123', the // output would be 'My phone number is '. -message RedactConfig { - -} +message RedactConfig {} // Characters to skip when doing deidentification of a value. These will be left // alone and skipped. @@ -2447,7 +2449,10 @@ message Action { OutputStorageConfig output_config = 1; } - // Publish the results of a DlpJob to a pub sub channel. + // Publish a message into given Pub/Sub topic when DlpJob has completed. The + // message contains a single field, `DlpJobName`, which is equal to the + // finished job's + // [`DlpJob.name`](/dlp/docs/reference/rest/v2/projects.dlpJobs#DlpJob). // Compatible with: Inspect, Risk message PublishToPubSub { // Cloud Pub/Sub topic to send notifications to. The topic must have given @@ -2467,15 +2472,11 @@ message Action { // service-specific policy, see https://cloud.google.com/terms/service-terms // Only a single instance of this action can be specified. // Compatible with: Inspect - message PublishSummaryToCscc { - - } + message PublishSummaryToCscc {} // Enable email notification to project owners and editors on jobs's // completion/failure. - message JobNotificationEmails { - - } + message JobNotificationEmails {} oneof action { // Save resulting findings in a provided location. @@ -2728,8 +2729,7 @@ message InspectJobConfig { // template. string inspect_template_name = 3; - // Actions to execute at the completion of the job. Are executed in the order - // provided. + // Actions to execute at the completion of the job. repeated Action actions = 4; } @@ -2837,8 +2837,12 @@ message ListDlpJobsRequest { // - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED // - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY // - `trigger_name` - The resource name of the trigger that created job. + // - 'end_time` - Corresponds to time the job finished. + // - 'start_time` - Corresponds to time the job finished. // * Supported fields for risk analysis jobs: // - `state` - RUNNING|CANCELED|FINISHED|FAILED + // - 'end_time` - Corresponds to time the job finished. + // - 'start_time` - Corresponds to time the job finished. // * The operator must be `=` or `!=`. // // Examples: @@ -2846,6 +2850,7 @@ message ListDlpJobsRequest { // * inspected_storage = cloud_storage AND state = done // * inspected_storage = cloud_storage OR inspected_storage = bigquery // * inspected_storage = cloud_storage AND (state = done OR state = canceled) + // * end_time > \"2017-12-12T00:00:00+00:00\" // // The length of this field should be no more than 500 characters. string filter = 1; @@ -3005,6 +3010,12 @@ message LargeCustomDictionaryConfig { } } +// Summary statistics of a custom dictionary. +message LargeCustomDictionaryStats { + // Approximate number of distinct phrases in the dictionary. + int64 approx_num_phrases = 1; +} + // Configuration for a StoredInfoType. message StoredInfoTypeConfig { // Display name of the StoredInfoType (max 256 characters). @@ -3019,6 +3030,14 @@ message StoredInfoTypeConfig { } } +// Statistics for a StoredInfoType. +message StoredInfoTypeStats { + oneof type { + // StoredInfoType where findings are defined by a dictionary of phrases. + LargeCustomDictionaryStats large_custom_dictionary = 1; + } +} + // Version of a StoredInfoType, including the configuration used to build it, // create timestamp, and current state. message StoredInfoTypeVersion { @@ -3045,6 +3064,9 @@ message StoredInfoTypeVersion { // storedInfoType to continue using it, reusing the same `config` if it was // not the source of the error. repeated Error errors = 4; + + // Statistics about this storedInfoType version. + StoredInfoTypeStats stats = 5; } // StoredInfoType resource message that contains information about the current diff --git a/lib/src/grpc_api/protos/google/privacy/dlp/v2/storage.proto b/lib/src/grpc_api/protos/google/privacy/dlp/v2/storage.proto index 12b42840..846205f0 100644 --- a/lib/src/grpc_api/protos/google/privacy/dlp/v2/storage.proto +++ b/lib/src/grpc_api/protos/google/privacy/dlp/v2/storage.proto @@ -18,7 +18,6 @@ syntax = "proto3"; package google.privacy.dlp.v2; import "google/api/annotations.proto"; -import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Dlp.V2"; @@ -135,9 +134,7 @@ message CustomInfoType { // output. This should be used in conjunction with a field on the // transformation such as `surrogate_info_type`. This CustomInfoType does // not support the use of `detection_rules`. - message SurrogateType { - - } + message SurrogateType {} // Rule for modifying a CustomInfoType to alter behavior under certain // circumstances, depending on the specific details of the rule. Not supported diff --git a/lib/src/grpc_api/protos/google/protobuf/descriptor.proto b/lib/src/grpc_api/protos/google/protobuf/descriptor.proto index a7d070ad..a2102d7a 100644 --- a/lib/src/grpc_api/protos/google/protobuf/descriptor.proto +++ b/lib/src/grpc_api/protos/google/protobuf/descriptor.proto @@ -428,6 +428,7 @@ message FileOptions { // determining the ruby package. optional string ruby_package = 45; + // The parser stores options it doesn't recognize here. // See the documentation for the "Options" section above. repeated UninterpretedOption uninterpreted_option = 999; diff --git a/lib/src/grpc_api/protos/google/pubsub/v1/pubsub_gapic.yaml b/lib/src/grpc_api/protos/google/pubsub/v1/pubsub_gapic.yaml index ba2be34b..59354746 100644 --- a/lib/src/grpc_api/protos/google/pubsub/v1/pubsub_gapic.yaml +++ b/lib/src/grpc_api/protos/google/pubsub/v1/pubsub_gapic.yaml @@ -432,19 +432,19 @@ interfaces: - name: default initial_retry_delay_millis: 100 retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 # 60 seconds - initial_rpc_timeout_millis: 60000 # 60 seconds + max_retry_delay_millis: 60000 # 60 seconds + initial_rpc_timeout_millis: 60000 # 60 seconds rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 60000 # 60 seconds - total_timeout_millis: 600000 # 10 minutes + max_rpc_timeout_millis: 60000 # 60 seconds + total_timeout_millis: 600000 # 10 minutes - name: messaging initial_retry_delay_millis: 100 retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 # 60 seconds - initial_rpc_timeout_millis: 12000 # 12 seconds + max_retry_delay_millis: 60000 # 60 seconds + initial_rpc_timeout_millis: 25000 # 25 seconds rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 30000 # 30 seconds - total_timeout_millis: 600000 # 10 minutes + max_rpc_timeout_millis: 30000 # 30 seconds + total_timeout_millis: 600000 # 10 minutes methods: - name: CreateTopic flattening: diff --git a/lib/src/grpc_api/protos/google/rpc/BUILD.bazel b/lib/src/grpc_api/protos/google/rpc/BUILD.bazel index bd8850df..1daaf649 100644 --- a/lib/src/grpc_api/protos/google/rpc/BUILD.bazel +++ b/lib/src/grpc_api/protos/google/rpc/BUILD.bazel @@ -62,3 +62,26 @@ go_proto_library( importpath = "google.golang.org/genproto/googleapis/rpc/status", protos = [":status_proto"], ) + +############################################################################## +# C++ +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "cc_proto_library", +) + +cc_proto_library( + name = "code_cc_proto", + deps = [":code_proto"], +) + +cc_proto_library( + name = "error_details_cc_proto", + deps = [":error_details_proto"], +) + +cc_proto_library( + name = "status_cc_proto", + deps = [":status_proto"], +) diff --git a/lib/src/grpc_api/protos/google/type/BUILD.bazel b/lib/src/grpc_api/protos/google/type/BUILD.bazel index 3ad40d97..df40256a 100644 --- a/lib/src/grpc_api/protos/google/type/BUILD.bazel +++ b/lib/src/grpc_api/protos/google/type/BUILD.bazel @@ -154,3 +154,66 @@ go_proto_library( importpath = "google.golang.org/genproto/googleapis/type/timeofday", protos = [":timeofday_proto"], ) + +############################################################################## +# C++ +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "cc_proto_library", +) + +cc_proto_library( + name = "calendar_period_cc_proto", + deps = [":calendar_period_proto"], +) + +cc_proto_library( + name = "color_cc_proto", + deps = [":color_proto"], +) + +cc_proto_library( + name = "date_cc_proto", + deps = [":date_proto"], +) + +cc_proto_library( + name = "dayofweek_cc_proto", + deps = [":dayofweek_proto"], +) + +cc_proto_library( + name = "expr_cc_proto", + deps = [":expr_proto"], +) + +cc_proto_library( + name = "fraction_cc_proto", + deps = [":fraction_proto"], +) + +cc_proto_library( + name = "latlng_cc_proto", + deps = [":latlng_proto"], +) + +cc_proto_library( + name = "money_cc_proto", + deps = [":money_proto"], +) + +cc_proto_library( + name = "postal_address_cc_proto", + deps = [":postal_address_proto"], +) + +cc_proto_library( + name = "quaternion_cc_proto", + deps = [":quaternion_proto"], +) + +cc_proto_library( + name = "timeofday_cc_proto", + deps = [":timeofday_proto"], +)